]> git.saurik.com Git - wxWidgets.git/blame_incremental - utils/wxtree/src/makefile.dos
Restored the old Dialog Editor files.
[wxWidgets.git] / utils / wxtree / src / makefile.dos
... / ...
CommitLineData
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
15WXDIR = $(WXWIN)
16
17!include $(WXDIR)\src\makemsc.env
18
19TREEDIR = $(WXDIR)\utils\wxtree
20TREELIB = $(TREEDIR)\lib\wxtree.lib
21DOCDIR = $(TREEDIR)\docs
22THISDIR = $(TREEDIR)\src
23EXTRALIBS = $(TREELIB)
24INC=-I$(WXDIR)\include\base -I$(WXDIR)\include\msw
25DUMMY=$(WXDIR)\src\msw\dummy.obj
26
27# Default is to output RTF for WinHelp
28!ifndef RTFSTYLE
29RTFSTYLE=-winhelp
30!endif
31
32HEADERS = wxtree.h
33SOURCES = wxtree.$(SRCSUFF)
34OBJECTS = wxtree.obj
35
36all: $(TREELIB)
37
38test: test.exe
39
40wx:
41 cd $(WXDIR)\src\msw
42 nmake -f makefile.dos FINAL=$(FINAL)
43 cd $(TREEDIR)\src
44
45wxclean:
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)
54y
55$(OBJECTS)
56nul
57;
58<<
59
60test.exe: $(DUMMY) $(WXLIB) $(TREELIB) test.obj test.def test.res
61 link $(LINKFLAGS) @<<
62$(DUMMY) test.obj,
63test,
64NUL,
65$(LIBS),
66test.def
67;
68<<
69 rc -31 -K test.res
70
71wxtree.obj: wxtree.h wxtree.$(SRCSUFF) $(DUMMY)
72 cl @<<
73$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
74<<
75
76test.obj: test.h wxtree.h test.$(SRCSUFF) $(DUMMY)
77 cl @<<
78$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
79<<
80
81test.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
85docs: hlp xlp
86hlp: $(DOCDIR)/wxtree.hlp
87xlp: $(DOCDIR)/wxtree.xlp
88rtf: $(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
106cleanrtf:
107 cd $(DOCDIR)
108 -erase *.rtf
109 cd $(THISDIR)
110
111clean:
112 -erase *.obj
113 -erase *.sbr
114 -erase *.exe
115 -erase *.res
116 -erase *.map
117 -erase *.pdb
118 -erase $(TREELIB)