6 # Copyright: (c) 2001, Julian Smart
10 # Makefile : Builds net class library (MS VC++).
11 # Use FINAL=1 argument to nmake to build final version with no debugging
15 # Set WXDIR for your system
17 GIZMOSDIR = $(WXDIR)\contrib\src\net
18 GIZMOSINC = $(WXDIR)\contrib\include\wx\net
19 THISDIR = $(WXDIR)\contrib\src\net
20 DOCDIR=$(WXDIR)\contrib\docs
21 LOCALDOCDIR=$(WXDIR)\contrib\docs\latex\net
23 !include $(WXDIR)\src\makevc.env
25 OBJECTS = $(D)\smapi.obj $(D)\email.obj $(D)\web.obj
27 LIBTARGET=$(WXDIR)\lib\net$(LIBEXT).lib
29 all: $(D) $(LIBTARGET)
36 nmake -f makefile.vc FINAL=$(FINAL)
41 nmake -f makefile.vc clean
44 $(LIBTARGET): $(OBJECTS)
52 $(D)\net.obj: net.$(SRCSUFF)
54 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
66 DOCSOURCES=$(LOCALDOCDIR)\net.tex \
67 $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\
68 $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\intro.tex\
69 $(LOCALDOCDIR)\topics.tex $(LOCALDOCDIR)\sample.tex
71 html: $(DOCDIR)\html\net\net.htm
72 htmlhelp: $(DOCDIR)\htmlhelp\net.chm
73 htb: $(DOCDIR)\htb\net.htb
74 hlp: $(DOCDIR)\winhelp\net.hlp
75 pdfrtf: $(DOCDIR)\pdf\net.rtf
76 ps: $(DOCDIR)\ps\net.ps
79 touch $(LOCALDOCDIR)\net.tex
82 $(DOCDIR)\winhelp\net.hlp: $(LOCALDOCDIR)\net.rtf $(LOCALDOCDIR)\net.hpj
86 move net.hlp $(DOCDIR)\winhelp\net.hlp
87 move net.cnt $(DOCDIR)\winhelp\net.cnt
90 $(LOCALDOCDIR)\net.rtf: $(DOCSOURCES)
92 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\net.tex $(LOCALDOCDIR)\net.rtf -twice -winhelp
95 $(DOCDIR)\pdf\net.rtf: $(DOCSOURCES)
97 -copy *.bmp $(DOCDIR)\pdf
98 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\net.tex $(DOCDIR)\pdf\net.rtf -twice -rtf
101 $(DOCDIR)\html\net\net.htm: $(DOCSOURCES)
103 -mkdir $(DOCDIR)\html\net
104 copy *.gif $(DOCDIR)\html\net
105 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\net.tex $(DOCDIR)\html\net\net.htm -twice -html
106 -erase $(DOCDIR)\html\net\*.con
108 -erase $(DOCDIR)\html\net\*.ref
111 $(DOCDIR)\htmlhelp\net.chm: $(DOCDIR)\html\net\net.htm $(DOCDIR)\html\net\net.hhp
112 cd $(DOCDIR)\html\net
114 move net.chm $(DOCDIR)\htmlhelp\net.chm
117 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
118 # files, renamed to htb.
119 # This can then be used with e.g. helpview.
120 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
121 $(DOCDIR)\htb\net.htb: $(DOCDIR)\html\net\net.htm
122 cd $(DOCDIR)\html\net
123 -erase net.zip net.htb
124 zip net.zip *.htm *.gif *.hhp *.hhc *.hhk
126 move net.zip $(DOCDIR)\htb\net.htb
129 $(LOCALDOCDIR)\net.dvi: $(DOCSOURCES)
139 $(WXDIR)\docs\ps\net.ps: $(LOCALDOCDIR)\net.dvi
141 -dvips32 -o net.ps net
142 move net.ps $(WXDIR)\docs\ps\net.ps