]>
Commit | Line | Data |
---|---|---|
1c005ff7 RR |
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 | # | |
447daba1 | 10 | # Makefile for controls example (UNIX). |
1c005ff7 RR |
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 | ||
447daba1 | 18 | OBJECTS = $(OBJDIR)/controls.$(OBJSUFF) |
1c005ff7 RR |
19 | |
20 | .SUFFIXES: | |
21 | ||
447daba1 | 22 | all: $(OBJDIR) controls$(GUISUFFIX) |
1c005ff7 RR |
23 | |
24 | wx: | |
25 | ||
26 | ||
27 | motif: | |
28 | $(MAKE) -f makefile.unx GUISUFFIX=_motif GUI=-Dwx_motif GUISUFFIX=_motif OPT='$(OPT)' LDLIBS='$(MOTIFLDLIBS)' WXLIB=$(WXDIR)/lib/libwx_motif.a OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)' XVIEW_LINK= | |
29 | ||
30 | xview: | |
31 | cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx xview | |
32 | $(MAKE) -f makefile.unx GUI=-Dwx_xview GUISUFFIX=_ol CC=$(CC) OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)' | |
33 | ||
34 | hp: | |
35 | cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx hp | |
36 | $(MAKE) -f makefile.unx GUI=-Dwx_motif GUISUFFIX=_hp CC=CC DEBUG='$(DEBUG)' WARN='-w' \ | |
37 | XINCLUDE='$(HPXINCLUDE)' XLIB='$(HPXLIB)' XVIEW_LINK='' LDLIBS='$(HPLDLIBS)' | |
38 | ||
39 | $(OBJDIR): | |
40 | mkdir $(OBJDIR) | |
41 | ||
447daba1 JS |
42 | controls$(GUISUFFIX): $(OBJDIR)/controls.$(OBJSUFF) $(WXLIB) |
43 | $(CC) $(LDFLAGS) -o controls$(GUISUFFIX) $(OBJDIR)/controls.$(OBJSUFF) $(XVIEW_LINK) $(LDLIBS) | |
1c005ff7 | 44 | |
447daba1 JS |
45 | $(OBJDIR)/controls.$(OBJSUFF): controls.$(SRCSUFF) |
46 | $(CC) -c $(CPPFLAGS) -o $@ controls.$(SRCSUFF) | |
1c005ff7 RR |
47 | |
48 | clean_motif: | |
49 | $(MAKE) -f makefile.unx GUISUFFIX=_motif cleanany | |
50 | ||
51 | clean_ol: | |
52 | $(MAKE) -f makefile.unx GUISUFFIX=_ol cleanany | |
53 | ||
54 | clean_hp: | |
55 | $(MAKE) -f makefile.unx GUISUFFIX=_hp cleanany | |
56 | ||
57 | cleanany: | |
447daba1 | 58 | rm -f $(OBJECTS) controls$(GUISUFFIX) core |