]> git.saurik.com Git - wxWidgets.git/blob - utils/ogl/src/makefile.unx
OGL improvements
[wxWidgets.git] / utils / ogl / src / makefile.unx
1 #
2 # File: makefile.unx
3 # Author: Julian Smart
4 # Created: 1996
5 # Updated:
6 # Copyright: (c) 1996 Julian Smart
7 #
8 # "%W% %G%"
9 #
10 # Makefile for object graphics library (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 PRODIR = $(WXDIR)/utils/prologio
19 PROINC = $(PRODIR)/src
20 PROLIB = $(PRODIR)/lib/libproio$(GUISUFFIX).a
21
22 MFDIR = $(WXDIR)/utils/mfutils
23 MFINC = $(MFDIR)/src
24
25 OGLDIR = $(WXDIR)/utils/ogl
26 OGLLIB = $(OGLDIR)/lib/libogl$(GUISUFFIX).a
27
28 OBJECTS = $(OBJDIR)/basic.o $(OBJDIR)/basic2.o $(OBJDIR)/canvas.o $(OBJDIR)/lines.o $(OBJDIR)/misc.o\
29 $(OBJDIR)/divided.o $(OBJDIR)/constrnt.o $(OBJDIR)/composit.o $(OBJDIR)/drawn.o\
30 $(OBJDIR)/bitmap.o $(OBJDIR)/ogldiag.o
31
32 CPPFLAGS = -I$(PROINC) -I$(MFINC) $(XINCLUDE) $(INC) $(GUI) -DDEBUG='$(DEBUG)' $(DEBUGFLAGS) $(WARN) $(OPTIONS) -DPROLOGIO
33
34 all: $(OBJDIR) $(OGLLIB)
35
36 .SUFFIXES:
37
38 wx:
39 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx OPT=$(OPT) GUI=$(GUI)
40
41 motif:
42 $(MAKE) -f makefile.unx GUI=-Dwx_motif OPT=$(OPT) GUISUFFIX=_motif LDLIBS='$(MOTIFLDLIBS)' XVIEW_LINK=
43
44 xview:
45 $(MAKE) -f makefile.unx GUI=-Dwx_xview OPT=$(OPT) GUISUFFIX=_ol
46
47 hp:
48 $(MAKE) -f makefile.unx GUI=-Dwx_motif GUISUFFIX=_hp CC=CC DEBUG='$(DEBUG)' DEBUGFLAGS='-g' OPT='' WARN='-w' \
49 XINCLUDE='$(HPXINCLUDE)' XLIB='$(HPXLIB)' XVIEW_LINK='' \
50 LDLIBS='$(HPLDLIBS)'
51
52 $(OBJDIR):
53 mkdir $(OBJDIR)
54
55 $(OGLLIB): $(OBJECTS)
56 rm -f $@
57 ar $(AROPTIONS) $@ $(OBJECTS)
58 $(RANLIB) $@
59
60 $(OBJDIR)/basic.o: basic.$(SRCSUFF) basic.h lines.h misc.h canvas.h
61 $(CC) -c $(CPPFLAGS) -o $@ basic.$(SRCSUFF)
62
63 $(OBJDIR)/basic2.o: basic2.$(SRCSUFF) basic.h lines.h misc.h canvas.h
64 $(CC) -c $(CPPFLAGS) -o $@ basic2.$(SRCSUFF)
65
66 $(OBJDIR)/canvas.o: canvas.$(SRCSUFF) basic.h misc.h canvas.h
67 $(CC) -c $(CPPFLAGS) -o $@ canvas.$(SRCSUFF)
68
69 $(OBJDIR)/lines.o: lines.$(SRCSUFF) basic.h misc.h canvas.h lines.h
70 $(CC) -c $(CPPFLAGS) -o $@ lines.$(SRCSUFF)
71
72 $(OBJDIR)/misc.o: misc.$(SRCSUFF) basic.h misc.h constrnt.h
73 $(CC) -c $(CPPFLAGS) -o $@ misc.$(SRCSUFF)
74
75 $(OBJDIR)/divided.o: divided.$(SRCSUFF) basic.h misc.h canvas.h divided.h
76 $(CC) -c $(CPPFLAGS) -o $@ divided.$(SRCSUFF)
77
78 $(OBJDIR)/constrnt.o: constrnt.$(SRCSUFF) basic.h constrnt.h
79 $(CC) -c $(CPPFLAGS) -o $@ constrnt.$(SRCSUFF)
80
81 $(OBJDIR)/composit.o: composit.$(SRCSUFF) basic.h misc.h canvas.h constrnt.h composit.h
82 $(CC) -c $(CPPFLAGS) -o $@ composit.$(SRCSUFF)
83
84 $(OBJDIR)/drawn.o: drawn.$(SRCSUFF) basic.h misc.h canvas.h drawn.h drawnp.h
85 $(CC) -c $(CPPFLAGS) -o $@ drawn.$(SRCSUFF)
86
87 $(OBJDIR)/bitmap.o: bitmap.$(SRCSUFF) basic.h misc.h canvas.h bitmap.h
88 $(CC) -c $(CPPFLAGS) -o $@ bitmap.$(SRCSUFF)
89
90 $(OBJDIR)/ogldiag.o: ogldiag.$(SRCSUFF) basic.h misc.h canvas.h bitmap.h ogldiag.h
91 $(CC) -c $(CPPFLAGS) -o $@ ogldiag.$(SRCSUFF)
92
93 HTMLDIR=/home/hardy/html/wx/manuals
94
95 docs: ps xlp
96 ps: $(OGLDIR)/docs/ogl.ps
97 xlp: $(OGLDIR)/docs/ogl.xlp
98 html: $(HTMLDIR)/ogl/ogl_contents.html
99
100 $(OGLDIR)/docs/ogl.xlp: $(OGLDIR)/docs/classes.tex $(OGLDIR)/docs/ogl.tex $(OGLDIR)/docs/topics.tex $(OGLDIR)/docs/changes.tex $(OGLDIR)/docs/intro.tex
101 cd ../docs; tex2rtf ogl.tex tmp.xlp -xlp -twice
102 sed -e "s/WXHELPCONTENTS/OGL Manual/g" < $(OGLDIR)/docs/tmp.xlp > $(OGLDIR)/docs/ogl.xlp
103 /bin/rm -f $(OGLDIR)/docs/tmp.xlp
104
105 $(HTMLDIR)/ogl/ogl_contents.html: $(OGLDIR)/docs/classes.tex $(OGLDIR)/docs/ogl.tex $(OGLDIR)/docs/topics.tex $(OGLDIR)/docs/changes.tex $(OGLDIR)/docs/intro.tex
106 cd ../docs; tex2rtf ogl.tex $(HTMLDIR)/ogl/ogl -twice -html
107
108 $(OGLDIR)/docs/ogl.dvi: $(OGLDIR)/docs/ogl.tex $(OGLDIR)/docs/classes.tex $(OGLDIR)/docs/topics.tex $(OGLDIR)/docs/changes.tex $(OGLDIR)/docs/intro.tex
109 cd $(OGLDIR)/docs; latex ogl; latex ogl; makeindex ogl; latex ogl; \
110
111 $(OGLDIR)/docs/ogl.ps: $(OGLDIR)/docs/ogl.dvi
112 cd $(OGLDIR)/docs; dvips -f -r < ogl.dvi > ogl.ps
113
114 cleaneach:
115 rm -f $(OBJECTS) $(OGLLIB) core
116
117 clean_motif:
118 $(MAKE) -f makefile.unx GUISUFFIX=_motif cleaneach
119
120 clean_ol:
121 $(MAKE) -f makefile.unx GUISUFFIX=_ol cleaneach
122
123 clean_hp:
124 $(MAKE) -f makefile.unx GUISUFFIX=_hp cleaneach
125