]> git.saurik.com Git - wxWidgets.git/blob - utils/glcanvas/win/makefile.vc
077cb4032410667792e1f0dcd548aefb1baaf2de
[wxWidgets.git] / utils / glcanvas / win / makefile.vc
1 #
2 # File: makefile.nt
3 # Author: Julian Smart
4 # Created: 1993
5 # Updated:
6 # Copyright: (c) 1993, AIAI, University of Edinburgh
7 #
8 # "%W% %G%"
9 #
10 # Makefile : Builds GLCanvas class library (MS VC++).
11 # Use FINAL=1 argument to nmake to build final version with no debugging
12 # info
13
14 # Set WXDIR for your system
15 WXDIR = $(WXWIN)
16 GLDIR = $(WXDIR)\utils\glcanvas
17 THISDIR = $(GLDIR)\win
18 EXTRALIBS=$(WXDIR)\lib\glcanvas.lib
19 DOCDIR=$(WXDIR)\docs
20 LOCALDOCDIR=$(WXDIR)\utils\glcanvas\docs
21
22
23 !include $(WXDIR)\src\makevc.env
24
25 LIBTARGET=$(WXDIR)\lib\glcanvas$(LIBEXT).lib
26 OBJECTS = $(D)\glcanvas.obj
27
28 all: $(D) $(LIBTARGET)
29
30 $(D) :
31 mkdir $(D)
32
33 $(LIBTARGET): $(OBJECTS)
34 -erase $(LIBTARGET)
35 $(implib) @<<
36 -out:$(LIBTARGET)
37 -machine:$(CPU)
38 $(OBJECTS)
39 <<
40
41 $(D)\glcanvas.obj: glcanvas.h glcanvas.$(SRCSUFF) $(DUMMYOBJ)
42 $(cc) @<<
43 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
44 <<
45
46
47 clean:
48 -erase $(D)\*.obj
49 -erase *.sbr
50 -erase *.exe
51 -erase *.res
52 -erase *.map
53 -erase *.pdb
54 -erase $(LIBTARGET)
55
56
57
58
59
60 DOCSOURCES=$(LOCALDOCDIR)\manual.tex $(LOCALDOCDIR)\classes.tex
61
62 html: $(DOCDIR)\html\glcanvas\glcanvas.htm
63 hlp: $(DOCDIR)\winhelp\glcanvas.hlp
64 ps: $(WXDIR)\docs\ps\glcanvas.ps
65
66 $(DOCDIR)\winhelp\glcanvas.hlp: $(LOCALDOCDIR)\glcanvas.rtf $(LOCALDOCDIR)\glcanvas.hpj
67 cd $(LOCALDOCDIR)
68 -erase glcanvas.ph
69 hc glcanvas
70 move glcanvas.hlp $(DOCDIR)\winhelp\glcanvas.hlp
71 move glcanvas.cnt $(DOCDIR)\winhelp\glcanvas.cnt
72 cd $(THISDIR)
73
74 $(LOCALDOCDIR)\glcanvas.rtf: $(DOCSOURCES)
75 cd $(LOCALDOCDIR)
76 -start /w tex2rtf $(LOCALDOCDIR)\manual.tex $(LOCALDOCDIR)\glcanvas.rtf -twice -winhelp
77 cd $(THISDIR)
78
79 $(DOCDIR)\html\glcanvas\glcanvas.htm: $(DOCSOURCES)
80 cd $(LOCALDOCDIR)
81 -mkdir $(DOCDIR)\html\glcanvas
82 -start /w tex2rtf $(LOCALDOCDIR)\manual.tex $(DOCDIR)\html\glcanvas\glcanvas.htm -twice -html
83 -erase $(DOCDIR)\html\glcanvas\*.con
84 -erase $(DOCDIR)\html\glcanvas\*.ref
85 cd $(THISDIR)
86
87 $(LOCALDOCDIR)\manual.dvi: $(DOCSOURCES)
88 cd $(LOCALDOCDIR)
89 -latex manual
90 -latex manual
91 -makeindx manual
92 -bibtex manual
93 -latex manual
94 -latex manual
95 cd $(THISDIR)
96
97 $(WXDIR)\docs\ps\glcanvas.ps: $(LOCALDOCDIR)\manual.dvi
98 cd $(LOCALDOCDIR)
99 -dvips32 -o glcanvas.ps manual
100 move glcanvas.ps $(WXDIR)\docs\ps\glcanvas.ps
101 cd $(THISDIR)
102
103