]> git.saurik.com Git - wxWidgets.git/blob - samples/memcheck/makefile.unx
Makefile fixes
[wxWidgets.git] / samples / memcheck / makefile.unx
1 #
2 # File: makefile.unx
3 # Author: Julian Smart
4 # Created: 1993
5 # Updated:
6 # Copyright: (c) 1993, AIAI, University of Edinburgh
7 #
8 # "%W% %G%"
9 #
10 # Makefile for memcheck example (UNIX).
11
12 WXDIR = ../..
13
14 # All common UNIX compiler flags and options are now in
15 # this central makefile.
16 include $(WXDIR)/src/make.env
17
18 OBJECTS = $(OBJDIR)/memcheck.$(OBJSUFF)
19
20 .SUFFIXES:
21
22 all: $(OBJDIR) memcheck$(GUISUFFIX)
23
24 wxmotif:
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=
27
28
29 motif: wxmotif
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=
32
33 xview:
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)'
37
38 hp:
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)'
42
43 $(OBJDIR):
44 mkdir $(OBJDIR)
45
46 memcheck$(GUISUFFIX): $(OBJDIR)/memcheck.$(OBJSUFF) $(WXLIB)
47 $(CC) $(LDFLAGS) -o memcheck$(GUISUFFIX) $(OBJDIR)/memcheck.$(OBJSUFF) $(XVIEW_LINK) $(LDLIBS)
48
49 $(OBJDIR)/memcheck.$(OBJSUFF): memcheck.$(SRCSUFF)
50 $(CC) -c $(CPPFLAGS) -o $@ memcheck.$(SRCSUFF)
51
52 clean_motif:
53 $(MAKE) -f makefile.unx GUISUFFIX=_motif cleanany
54
55 clean_ol:
56 $(MAKE) -f makefile.unx GUISUFFIX=_ol cleanany
57
58 clean_hp:
59 $(MAKE) -f makefile.unx GUISUFFIX=_hp cleanany
60
61 cleanany:
62 rm -f $(OBJECTS) memcheck$(GUISUFFIX) core