]> git.saurik.com Git - wxWidgets.git/blame - utils/wxprop/src/makefile.nt
wxFileConfig ctor now (again) uses the files in the correct locations if the
[wxWidgets.git] / utils / wxprop / src / makefile.nt
CommitLineData
457814b5
JS
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 wxProperty 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
15WXDIR = $(WXWIN)
16PROPDIR = $(WXDIR)\utils\wxprop
17THISDIR = $(WXDIR)\utils\wxprop\src
18EXTRALIBS=$(PROPDIR)\lib\wxprop.lib
19DOCDIR=$(WXDIR)\docs
20LOCALDOCDIR=$(WXDIR)\utils\wxprop\docs
21
22!include $(WXDIR)\src\ntwxwin.mak
23
24PROGRAM=test
25
26OBJECTS = prop.obj proplist.obj propform.obj
27PROGOBJECTS = $(PROGRAM).obj
28LIBTARGET=$(PROPDIR)\lib\wxprop.lib
29
30all: $(LIBTARGET)
31
b3324be2 32
457814b5
JS
33$(PROGRAM): $(PROGRAM).exe
34
35wx:
36 cd $(WXDIR)\src\msw
37 nmake -f makefile.nt FINAL=$(FINAL)
38 cd $(THISDIR)
39
40wxclean:
41 cd $(WXDIR)\src\msw
42 nmake -f makefile.nt clean
43 cd $(THISDIR)
44
45$(LIBTARGET): $(OBJECTS)
46 -erase $(LIBTARGET)
47 $(implib) @<<
48-out:$(LIBTARGET)
49-machine:$(CPU)
50$(OBJECTS)
51<<
52
53$(PROGRAM).exe: $(DUMMYOBJ) $(WXLIB) $(PROGOBJECTS) $(LIBTARGET) $(PROGRAM).res
54 $(link) @<<
55-out:$(PROGRAM).exe
56$(LINKFLAGS)
57$(DUMMYOBJ) $(PROGOBJECTS) $(PROGRAM).res
58$(LIBS)
59<<
60
61prop.obj: prop.h prop.$(SRCSUFF) $(DUMMYOBJ)
62 $(cc) @<<
63$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
64<<
65
66proplist.obj: prop.h proplist.$(SRCSUFF) $(DUMMYOBJ)
67 $(cc) @<<
68$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
69<<
70
71propform.obj: propform.h propform.$(SRCSUFF) $(DUMMYOBJ)
72 $(cc) @<<
73$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
74<<
75
76$(PROGRAM).obj: $(PROGRAM).h $(PROGRAM).$(SRCSUFF) $(DUMMYOBJ)
77 $(cc) @<<
78$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
79<<
80
81$(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
82 $(rc) -r /i$(WXDIR)\include -fo$@ $(PROGRAM).rc
83
84
85clean:
86 -erase *.obj
87 -erase *.sbr
88 -erase *.exe
89 -erase *.res
90 -erase *.map
91 -erase *.pdb
92 -erase $(LIBTARGET)
93
94DOCSOURCES=$(LOCALDOCDIR)\prop.tex $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\body.tex $(LOCALDOCDIR)\changes.tex
95
96html: $(DOCDIR)\html\wxprop\prop.htm
97hlp: $(DOCDIR)\winhelp\wxprop.hlp
98pdfrtf: $(DOCDIR)\pdf\wxprop.rtf
99ps: $(WXDIR)\docs\ps\wxprop.ps
100
101$(DOCDIR)\winhelp\wxprop.hlp: $(LOCALDOCDIR)\wxprop.rtf $(LOCALDOCDIR)\wxprop.hpj
102 cd $(LOCALDOCDIR)
103 -erase wxprop.ph
104 hc wxprop
105 move wxprop.hlp $(DOCDIR)\winhelp\wxprop.hlp
106 move wxprop.cnt $(DOCDIR)\winhelp\wxprop.cnt
107 cd $(THISDIR)
108
109$(LOCALDOCDIR)\wxprop.rtf: $(DOCSOURCES)
110 cd $(LOCALDOCDIR)
111 -start /w tex2rtf $(LOCALDOCDIR)\prop.tex $(LOCALDOCDIR)\wxprop.rtf -twice -winhelp
112 cd $(THISDIR)
113
114$(DOCDIR)\pdf\wxprop.rtf: $(DOCSOURCES)
115 cd $(LOCALDOCDIR)
116 -copy *.bmp *.wmf $(DOCDIR)\pdf
117 -start /w tex2rtf $(LOCALDOCDIR)\prop.tex $(DOCDIR)\pdf\wxprop.rtf -twice -rtf
118 cd $(THISDIR)
119
120$(DOCDIR)\html\wxprop\prop.htm: $(DOCSOURCES)
121 cd $(LOCALDOCDIR)
122 -mkdir $(DOCDIR)\html\wxprop
123 -start /w tex2rtf $(LOCALDOCDIR)\prop.tex $(DOCDIR)\html\wxprop\prop.htm -twice -html
124 -erase $(DOCDIR)\html\wxprop\*.con
125 -erase $(DOCDIR)\html\wxprop\*.ref
126 cd $(THISDIR)
127
128$(LOCALDOCDIR)\prop.dvi: $(DOCSOURCES)
129 cd $(LOCALDOCDIR)
130 -latex prop
131 -latex prop
132 -makeindx prop
133 -bibtex prop
134 -latex prop
135 -latex prop
136 cd $(THISDIR)
137
138$(WXDIR)\docs\ps\wxprop.ps: $(LOCALDOCDIR)\prop.dvi
139 cd $(LOCALDOCDIR)
140 -dvips32 -o wxprop.ps prop
141 move wxprop.ps $(WXDIR)\docs\ps\wxprop.ps
142 cd $(THISDIR)
143
144