6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile for memcheck example (UNIX).
14 # All common UNIX compiler flags and options are now in
15 # this central makefile.
16 include $(WXDIR)/src/make.env
18 OBJECTS = $(OBJDIR)/memcheck.$(OBJSUFF)
22 all: $(OBJDIR) memcheck$(GUISUFFIX)
25 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx motif GUISUFFIX=_motif GUI=-Dwx_motif GUISUFFIX=_motif OPT='$(OPT)' LDLIBS='$(MOTIFLDLIBS)' WXLIB=$(WXDIR)/lib/libwx_motif.a OPTIONS='$(OPTIONS)'\
26 DEBUG='$(DEBUG)' DEBUGFLAGS='$(DEBUGFLAGS)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)' XVIEW_LINK=
30 $(MAKE) -f makefile.unx GUISUFFIX=_motif GUI=-Dwx_motif GUISUFFIX=_motif OPT='$(OPT)' LDLIBS='$(MOTIFLDLIBS)' WXLIB=$(WXDIR)/lib/libwx_motif.a OPTIONS='$(OPTIONS)'\
31 DEBUG='$(DEBUG)' DEBUGFLAGS='$(DEBUGFLAGS)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)' XVIEW_LINK=
34 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx xview
35 $(MAKE) -f makefile.unx GUI=-Dwx_xview GUISUFFIX=_ol CC=$(CC) OPTIONS='$(OPTIONS)'\
36 DEBUG='$(DEBUG)' DEBUGFLAGS='$(DEBUGFLAGS)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)'
39 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx hp
40 $(MAKE) -f makefile.unx GUI=-Dwx_motif GUISUFFIX=_hp CC=CC DEBUG='$(DEBUG)' DEBUGFLAGS='' WARN='-w' \
41 XINCLUDE='$(HPXINCLUDE)' XLIB='$(HPXLIB)' XVIEW_LINK='' LDLIBS='$(HPLDLIBS)'
46 memcheck$(GUISUFFIX): $(OBJDIR)/memcheck.$(OBJSUFF) $(WXLIB)
47 $(CC) $(LDFLAGS) -o memcheck$(GUISUFFIX) $(OBJDIR)/memcheck.$(OBJSUFF) $(XVIEW_LINK) $(LDLIBS)
49 $(OBJDIR)/memcheck.$(OBJSUFF): memcheck.$(SRCSUFF)
50 $(CC) -c $(CPPFLAGS) -o $@ memcheck.$(SRCSUFF)
53 $(MAKE) -f makefile.unx GUISUFFIX=_motif cleanany
56 $(MAKE) -f makefile.unx GUISUFFIX=_ol cleanany
59 $(MAKE) -f makefile.unx GUISUFFIX=_hp cleanany
62 rm -f $(OBJECTS) memcheck$(GUISUFFIX) core