]> git.saurik.com Git - wxWidgets.git/blob - utils/wxtree/src/makefile.dos
Changes for 16-bit BC++ (not there yet), GnuWin32; typetest sample
[wxWidgets.git] / utils / wxtree / src / makefile.dos
1 #
2 # File: makefile.dos
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 tree library and example (DOS).
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
17 !include $(WXDIR)\src\makemsc.env
18
19 TREEDIR = $(WXDIR)\utils\wxtree
20 TREELIB = $(TREEDIR)\lib\wxtree.lib
21 DOCDIR = $(TREEDIR)\docs
22 THISDIR = $(TREEDIR)\src
23 EXTRALIBS = $(TREELIB)
24 INC=-I$(WXDIR)\include\base -I$(WXDIR)\include\msw
25 DUMMY=$(WXDIR)\src\msw\dummy.obj
26
27 # Default is to output RTF for WinHelp
28 !ifndef RTFSTYLE
29 RTFSTYLE=-winhelp
30 !endif
31
32 HEADERS = wxtree.h
33 SOURCES = wxtree.$(SRCSUFF)
34 OBJECTS = wxtree.obj
35
36 all: $(TREELIB)
37
38 test: test.exe
39
40 wx:
41 cd $(WXDIR)\src\msw
42 nmake -f makefile.dos FINAL=$(FINAL)
43 cd $(TREEDIR)\src
44
45 wxclean:
46 cd $(WXDIR)\src\msw
47 nmake -f makefile.dos clean
48 cd $(TREEDIR)\src
49
50 $(TREELIB): $(OBJECTS)
51 -erase $(TREELIB)
52 lib /PAGESIZE:128 @<<
53 $(TREELIB)
54 y
55 $(OBJECTS)
56 nul
57 ;
58 <<
59
60 test.exe: $(DUMMY) $(WXLIB) $(TREELIB) test.obj test.def test.res
61 link $(LINKFLAGS) @<<
62 $(DUMMY) test.obj,
63 test,
64 NUL,
65 $(LIBS),
66 test.def
67 ;
68 <<
69 rc -31 -K test.res
70
71 wxtree.obj: wxtree.h wxtree.$(SRCSUFF) $(DUMMY)
72 cl @<<
73 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
74 <<
75
76 test.obj: test.h wxtree.h test.$(SRCSUFF) $(DUMMY)
77 cl @<<
78 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
79 <<
80
81 test.res : test.rc $(WXDIR)\include\msw\wx.rc
82 rc -r /dFAFA_LIB /i$(WXDIR)\contrib\fafa /i$(WXDIR)\include\msw test
83
84 # Making documents
85 docs: hlp xlp
86 hlp: $(DOCDIR)/wxtree.hlp
87 xlp: $(DOCDIR)/wxtree.xlp
88 rtf: $(DOCDIR)/wxtree.rtf
89
90 $(DOCDIR)/wxtree.hlp: $(DOCDIR)/wxtree.rtf $(DOCDIR)/wxtree.hpj
91 cd $(DOCDIR)
92 -erase wxtree.ph
93 hc wxtree
94 cd $(THISDIR)
95
96 $(DOCDIR)/wxtree.rtf: $(DOCDIR)/manual.tex $(DOCDIR)/classes.tex
97 cd $(DOCDIR)
98 -wx /W tex2rtf $(DOCDIR)\manual.tex $(DOCDIR)\wxtree.rtf -twice $(RTFSTYLE)
99 cd $(THISDIR)
100
101 $(DOCDIR)/wxtree.xlp: $(DOCDIR)/manual.tex $(DOCDIR)/classes.tex
102 cd $(DOCDIR)
103 -wx /W tex2rtf $(DOCDIR)\manual.tex $(DOCDIR)\wxtree.xlp -twice -xlp
104 cd $(THISDIR)
105
106 cleanrtf:
107 cd $(DOCDIR)
108 -erase *.rtf
109 cd $(THISDIR)
110
111 clean:
112 -erase *.obj
113 -erase *.sbr
114 -erase *.exe
115 -erase *.res
116 -erase *.map
117 -erase *.pdb
118 -erase $(TREELIB)