]>
Commit | Line | Data |
---|---|---|
6a1120ad JS |
1 | # |
2 | # File: makefile.nt | |
3 | # Author: Julian Smart | |
4 | # Created: 1993 | |
7ac4c237 | 5 | # Updated: |
6a1120ad JS |
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 | |
87b501f0 | 18 | EXTRALIBS=$(WXDIR)\lib\glcanvas$(LIBEXT).lib |
6a1120ad JS |
19 | DOCDIR=$(WXDIR)\docs |
20 | LOCALDOCDIR=$(WXDIR)\utils\glcanvas\docs | |
21 | ||
6a1120ad | 22 | |
7ac4c237 | 23 | !include $(WXDIR)\src\makevc.env |
6a1120ad | 24 | |
7ac4c237 RD |
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) | |
6a1120ad | 42 | $(cc) @<< |
7ac4c237 | 43 | $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF) |
6a1120ad JS |
44 | << |
45 | ||
7ac4c237 | 46 | |
1d2a5b31 RD |
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 | ||
7ac4c237 RD |
58 | |
59 | ||
6a1120ad JS |
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 |