]> git.saurik.com Git - wxWidgets.git/blame - utils/dialoged/src/makefile.unx
Fixed various wxMSW compile problems that came down the telephone line...
[wxWidgets.git] / utils / dialoged / src / makefile.unx
CommitLineData
457814b5
JS
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
12WXDIR = ../../..
13
14# All common UNIX compiler flags and options are now in
15# this central makefile.
16include $(WXDIR)/src/make.env
17
18WXPROPDIR = $(WXDIR)/utils/wxprop
19WXPROPINC = $(WXDIR)/utils/wxprop/src
20WXPROPLIB = $(WXDIR)/utils/wxprop/lib
21
22DIALOGEDDIR = $(WXDIR)/utils/dialoged
23
24OBJECTS = $(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
27INC = $(COMPPATHS) -I$(WXDIR)/include/x -I$(WXDIR)/include/base -I$(WXPROPINC)
28
29XVIEWLDLIBS = -lwxprop_ol -lwx_ol -lxview -lolgx -lX11 -lm $(COMPLIBS)
30MOTIFLDLIBS = -lwxprop_motif -lwx_motif -lXm -lXt -lX11 -lm $(COMPLIBS)
31HPLDLIBS = -lwxprop_hp -lwx_hp -lXm -lXt -lX11 -lm $(HPCOMPLIBS)
32# Default
33LDLIBS=$(XVIEWLDLIBS)
34
35CPPFLAGS = $(XINCLUDE) $(INC) $(OPTIONS) $(GUI) -DDEBUG='$(DEBUG)' $(DEBUGFLAGS) $(WARN) $(OPT)
36LDFLAGS = $(XLIB) -L$(WXDIR)/lib -L$(WXPROPLIB)
37
38.SUFFIXES:
39
40all: $(OBJDIR) dialoged$(GUISUFFIX)
41
42wx_ol:
43 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx xview
44
45wx_motif:
46 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx motif
47
48motif:
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
52xview:
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
56hp:
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
63dialoged$(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
84wxprop_motif:
85 cd $(WXPROPDIR)/src; $(MAKE) -f makefile.unx motif OPT='$(OPT)'
86
87wxprop_ol:
88 cd $(WXPROPDIR)/src
89 $(MAKE) -f makefile.unx xview OPT='$(OPT)'
90
91clean_motif:
92 $(MAKE) -f makefile.unx GUISUFFIX=_motif cleanany
93
94clean_ol:
95 $(MAKE) -f makefile.unx GUISUFFIX=_ol cleanany
96
97clean_hp:
98 $(MAKE) -f makefile.unx GUISUFFIX=_hp cleanany
99
100cleanany:
101 rm -f $(OBJECTS) $(TESTOBJECTS) test$(GUISUFFIX) dialoged$(GUISUFFIX) core
102
103HTMLDIR=/home/hardy/html/wx/manuals
104docs: ps xlp
105ps: $(DIALOGEDDIR)/docs/dialoged.ps
106xlp: $(DIALOGEDDIR)/docs/dialoged.xlp
107html: $(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