]> git.saurik.com Git - wxWidgets.git/blob - utils/glcanvas/win/makefile.nt
make install
[wxWidgets.git] / utils / glcanvas / win / makefile.nt
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 !include $(WXDIR)\src\ntwxwin.mak
23
24 PROGRAM=test
25
26 OBJECTS = glcanvas.obj
27 LIBTARGET=$(WXDIR)\lib\glcanvas.lib
28
29 all: $(LIBTARGET)
30
31 wx:
32 cd $(WXDIR)\src\msw
33 nmake -f makefile.nt FINAL=$(FINAL)
34 cd $(THISDIR)
35
36 wxclean:
37 cd $(WXDIR)\src\msw
38 nmake -f makefile.nt clean
39 cd $(THISDIR)
40
41 $(LIBTARGET): $(OBJECTS)
42 -erase $(LIBTARGET)
43 $(implib) @<<
44 -out:$(LIBTARGET)
45 -machine:$(CPU)
46 $(OBJECTS)
47 <<
48
49 glcanvas.obj: glcanvas.h glcanvas.$(SRCSUFF) $(DUMMYOBJ)
50 $(cc) @<<
51 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
52 <<
53
54 clean:
55 -erase *.obj
56 -erase *.sbr
57 -erase *.exe
58 -erase *.res
59 -erase *.map
60 -erase *.pdb
61 -erase $(LIBTARGET)
62
63 DOCSOURCES=$(LOCALDOCDIR)\manual.tex $(LOCALDOCDIR)\classes.tex
64
65 html: $(DOCDIR)\html\glcanvas\glcanvas.htm
66 hlp: $(DOCDIR)\winhelp\glcanvas.hlp
67 ps: $(WXDIR)\docs\ps\glcanvas.ps
68
69 $(DOCDIR)\winhelp\glcanvas.hlp: $(LOCALDOCDIR)\glcanvas.rtf $(LOCALDOCDIR)\glcanvas.hpj
70 cd $(LOCALDOCDIR)
71 -erase glcanvas.ph
72 hc glcanvas
73 move glcanvas.hlp $(DOCDIR)\winhelp\glcanvas.hlp
74 move glcanvas.cnt $(DOCDIR)\winhelp\glcanvas.cnt
75 cd $(THISDIR)
76
77 $(LOCALDOCDIR)\glcanvas.rtf: $(DOCSOURCES)
78 cd $(LOCALDOCDIR)
79 -start /w tex2rtf $(LOCALDOCDIR)\manual.tex $(LOCALDOCDIR)\glcanvas.rtf -twice -winhelp
80 cd $(THISDIR)
81
82 $(DOCDIR)\html\glcanvas\glcanvas.htm: $(DOCSOURCES)
83 cd $(LOCALDOCDIR)
84 -mkdir $(DOCDIR)\html\glcanvas
85 -start /w tex2rtf $(LOCALDOCDIR)\manual.tex $(DOCDIR)\html\glcanvas\glcanvas.htm -twice -html
86 -erase $(DOCDIR)\html\glcanvas\*.con
87 -erase $(DOCDIR)\html\glcanvas\*.ref
88 cd $(THISDIR)
89
90 $(LOCALDOCDIR)\manual.dvi: $(DOCSOURCES)
91 cd $(LOCALDOCDIR)
92 -latex manual
93 -latex manual
94 -makeindx manual
95 -bibtex manual
96 -latex manual
97 -latex manual
98 cd $(THISDIR)
99
100 $(WXDIR)\docs\ps\glcanvas.ps: $(LOCALDOCDIR)\manual.dvi
101 cd $(LOCALDOCDIR)
102 -dvips32 -o glcanvas.ps manual
103 move glcanvas.ps $(WXDIR)\docs\ps\glcanvas.ps
104 cd $(THISDIR)
105
106