]>
Commit | Line | Data |
---|---|---|
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 dialoged 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 | WXPROPDIR = $(WXDIR)/utils/wxprop | |
19 | WXPROPINC = $(WXDIR)/utils/wxprop/src | |
20 | WXPROPLIB = $(WXDIR)/utils/wxprop/lib | |
21 | ||
22 | DIALOGEDDIR = $(WXDIR)/utils/dialoged | |
23 | ||
24 | OBJECTS = $(OBJDIR)/dialoged.o $(OBJDIR)/wx_repal.o $(OBJDIR)/wx_resed.o $(OBJDIR)/wx_rdlg.o $(OBJDIR)/wx_reswr.o $(OBJDIR)/wx_rprop.o | |
25 | ||
26 | ||
27 | INC = $(COMPPATHS) -I$(WXDIR)/include/x -I$(WXDIR)/include/base -I$(WXPROPINC) | |
28 | ||
29 | XVIEWLDLIBS = -lwxprop_ol -lwx_ol -lxview -lolgx -lX11 -lm $(COMPLIBS) | |
30 | MOTIFLDLIBS = -lwxprop_motif -lwx_motif -lXm -lXt -lX11 -lm $(COMPLIBS) | |
31 | HPLDLIBS = -lwxprop_hp -lwx_hp -lXm -lXt -lX11 -lm $(HPCOMPLIBS) | |
32 | # Default | |
33 | LDLIBS=$(XVIEWLDLIBS) | |
34 | ||
35 | CPPFLAGS = $(XINCLUDE) $(INC) $(OPTIONS) $(GUI) -DDEBUG='$(DEBUG)' $(DEBUGFLAGS) $(WARN) $(OPT) | |
36 | LDFLAGS = $(XLIB) -L$(WXDIR)/lib -L$(WXPROPLIB) | |
37 | ||
38 | .SUFFIXES: | |
39 | ||
40 | all: $(OBJDIR) dialoged$(GUISUFFIX) | |
41 | ||
42 | wx_ol: | |
43 | cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx xview | |
44 | ||
45 | wx_motif: | |
46 | cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx motif | |
47 | ||
48 | motif: | |
49 | $(MAKE) -f makefile.unx dialoged_motif GUISUFFIX=_motif GUI=-Dwx_motif GUISUFFIX=_motif OPT='$(OPT)' LDLIBS='$(MOTIFLDLIBS)'\ | |
50 | OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' DEBUGFLAGS='$(DEBUGFLAGS)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)' XVIEW_LINK= | |
51 | ||
52 | xview: | |
53 | $(MAKE) -f makefile.unx dialoged_ol GUI=-Dwx_xview GUISUFFIX=_ol CC=$(CC) OPTIONS='$(OPTIONS)'\ | |
54 | DEBUG='$(DEBUG)' DEBUGFLAGS='$(DEBUGFLAGS)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)' | |
55 | ||
56 | hp: | |
57 | $(MAKE) -f makefile.unx GUI=-Dwx_motif GUISUFFIX=_hp CC=CC DEBUG='$(DEBUG)' DEBUGFLAGS='$(DEBUGFLAGS)' WARN='-w' \ | |
58 | XINCLUDE='$(HPXINCLUDE)' XLIB='$(HPXLIB)' XVIEW_LINK='' LDLIBS='$(HPLDLIBS)' | |
59 | ||
60 | $(OBJDIR): | |
61 | mkdir $(OBJDIR) | |
62 | ||
63 | dialoged$(GUISUFFIX): $(OBJECTS) $(WXLIB) | |
64 | $(CC) $(LDFLAGS) -o dialoged$(GUISUFFIX) $(OBJECTS) $(XVIEW_LINK) $(LDLIBS) | |
65 | ||
66 | $(OBJDIR)/dialoged.o: dialoged.$(SRCSUFF) dialoged.h | |
67 | $(CC) -c $(CPPFLAGS) -o $@ dialoged.$(SRCSUFF) | |
68 | ||
69 | $(OBJDIR)/wx_rprop.o: wx_rprop.$(SRCSUFF) | |
70 | $(CC) -c $(CPPFLAGS) -o $@ wx_rprop.$(SRCSUFF) | |
71 | ||
72 | $(OBJDIR)/wx_resed.o: wx_resed.$(SRCSUFF) wx_resed.h | |
73 | $(CC) -c $(CPPFLAGS) -o $@ wx_resed.$(SRCSUFF) | |
74 | ||
75 | $(OBJDIR)/wx_rdlg.o: wx_rdlg.$(SRCSUFF) wx_resed.h | |
76 | $(CC) -c $(CPPFLAGS) -o $@ wx_rdlg.$(SRCSUFF) | |
77 | ||
78 | $(OBJDIR)/wx_repal.o: wx_repal.$(SRCSUFF) wx_repal.h | |
79 | $(CC) -c $(CPPFLAGS) -o $@ wx_repal.$(SRCSUFF) | |
80 | ||
81 | $(OBJDIR)/wx_reswr.o: wx_reswr.$(SRCSUFF) wx_resed.h | |
82 | $(CC) -c $(CPPFLAGS) -o $@ wx_reswr.$(SRCSUFF) | |
83 | ||
84 | wxprop_motif: | |
85 | cd $(WXPROPDIR)/src; $(MAKE) -f makefile.unx motif OPT='$(OPT)' | |
86 | ||
87 | wxprop_ol: | |
88 | cd $(WXPROPDIR)/src | |
89 | $(MAKE) -f makefile.unx xview OPT='$(OPT)' | |
90 | ||
91 | clean_motif: | |
92 | $(MAKE) -f makefile.unx GUISUFFIX=_motif cleanany | |
93 | ||
94 | clean_ol: | |
95 | $(MAKE) -f makefile.unx GUISUFFIX=_ol cleanany | |
96 | ||
97 | clean_hp: | |
98 | $(MAKE) -f makefile.unx GUISUFFIX=_hp cleanany | |
99 | ||
100 | cleanany: | |
101 | rm -f $(OBJECTS) $(TESTOBJECTS) test$(GUISUFFIX) dialoged$(GUISUFFIX) core | |
102 | ||
103 | HTMLDIR=/home/hardy/html/wx/manuals | |
104 | docs: ps xlp | |
105 | ps: $(DIALOGEDDIR)/docs/dialoged.ps | |
106 | xlp: $(DIALOGEDDIR)/docs/dialoged.xlp | |
107 | html: $(HTMLDIR)/dialoged/dialoged_contents.html | |
108 | ||
109 | $(DIALOGEDDIR)/docs/dialoged.xlp: $(DIALOGEDDIR)/docs/dialoged.tex $(DIALOGEDDIR)/docs/classes.tex $(DIALOGEDDIR)/docs/body.tex $(DIALOGEDDIR)/docs/tech.tex | |
110 | cd ../docs; tex2rtf dialoged.tex tmp.xlp -xlp -twice | |
111 | sed -e "s/WXHELPCONTENTS/wxChart Manual/g" < $(DIALOGEDDIR)/docs/tmp.xlp > $(DIALOGEDDIR)/docs/dialoged.xlp | |
112 | /bin/rm -f $(DIALOGEDDIR)/docs/tmp.xlp | |
113 | ||
114 | $(HTMLDIR)/dialoged/dialoged_contents.html: $(DIALOGEDDIR)/docs/dialoged.tex $(DIALOGEDDIR)/docs/body.tex $(DIALOGEDDIR)/docs/tech.tex | |
115 | cd ../docs; tex2rtf dialoged.tex $(HTMLDIR)/dialoged/dialoged.html -html -twice | |
116 | ||
117 | $(DIALOGEDDIR)/docs/dialoged.dvi: $(DIALOGEDDIR)/docs/dialoged.tex $(DIALOGEDDIR)/docs/classes.tex | |
118 | cd $(DIALOGEDDIR)/docs; latex dialoged; latex dialoged; makeindex dialoged; latex dialoged; latex dialoged | |
119 | ||
120 | # makeindex dialoged; bibtex dialoged; latex dialoged; latex dialoged | |
121 | ||
122 | $(DIALOGEDDIR)/docs/dialoged.ps: $(DIALOGEDDIR)/docs/dialoged.dvi | |
123 | cd $(DIALOGEDDIR)/docs; dvips -f -r < dialoged.dvi > dialoged.ps |