]>
Commit | Line | Data |
---|---|---|
bbf1f0e5 KB |
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 resource 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)/resource.$(OBJSUFF) | |
19 | ||
20 | .SUFFIXES: | |
21 | ||
22 | all: $(OBJDIR) resource$(GUISUFFIX) | |
23 | ||
24 | wxmotif: | |
25 | cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx motif | |
26 | ||
27 | wxxview: | |
28 | cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx xview | |
29 | ||
30 | wxhp: | |
31 | cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx hp | |
32 | ||
33 | # For SGI, include -lPW on your LDLIBS | |
34 | motif: wxmotif | |
35 | $(MAKE) -f makefile.unx all 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= | |
36 | ||
37 | xview: wxxview | |
38 | $(MAKE) -f makefile.unx GUI=-Dwx_xview GUISUFFIX=_ol CC=$(CC) OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)' LDLIBS='$(XVIEWLDLIBS)' | |
39 | ||
40 | hp: wxhp | |
41 | $(MAKE) -f makefile.unx GUI=-Dwx_motif GUISUFFIX=_hp CC=CC OPT='' DEBUG='$(DEBUG)' WARN='-w' \ | |
42 | XINCLUDE='$(HPXINCLUDE)' \ | |
43 | XLIB='$(HPXLIB)' \ | |
44 | XVIEW_LINK='' \ | |
45 | LDLIBS='$(HPLDLIBS)' | |
46 | ||
47 | $(OBJDIR): | |
48 | mkdir $(OBJDIR) | |
49 | ||
50 | resource$(GUISUFFIX): $(OBJDIR)/resource.$(OBJSUFF) $(WXLIB) | |
51 | $(CC) $(LDFLAGS) -o resource$(GUISUFFIX) $(OBJDIR)/resource.$(OBJSUFF) $(XVIEW_LINK) $(LDLIBS) | |
52 | ||
53 | $(OBJDIR)/resource.$(OBJSUFF): resource.$(SRCSUFF) resource.h | |
54 | $(CC) -c $(CPPFLAGS) -o $@ resource.$(SRCSUFF) | |
55 | ||
56 | clean_motif: | |
57 | $(MAKE) -f makefile.unx GUISUFFIX=_motif cleanany | |
58 | ||
59 | clean_ol: | |
60 | $(MAKE) -f makefile.unx GUISUFFIX=_ol cleanany | |
61 | ||
62 | clean_hp: | |
63 | $(MAKE) -f makefile.unx GUISUFFIX=_hp cleanany | |
64 | ||
65 | cleanany: | |
66 | rm -f $(OBJECTS) resource$(GUISUFFIX) core | |
67 | ||
68 | wxclean_ol: | |
69 | cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx clean_ol | |
70 | ||
71 | wxclean_motif: | |
72 | cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx clean_motif | |
73 | ||
74 | wxclean_hp: | |
75 | cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx clean_hp | |
76 |