4414cc1db8
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
119 lines
2.5 KiB
Plaintext
119 lines
2.5 KiB
Plaintext
#
|
|
# File: makefile.dos
|
|
# Author: Julian Smart
|
|
# Created: 1993
|
|
# Updated:
|
|
# Copyright: (c) 1993, AIAI, University of Edinburgh
|
|
#
|
|
# "%W% %G%"
|
|
#
|
|
# Makefile : Builds tree library and example (DOS).
|
|
# Use FINAL=1 argument to nmake to build final version with no debugging
|
|
# info
|
|
|
|
# Set WXDIR for your system
|
|
WXDIR = $(WXWIN)
|
|
|
|
!include $(WXDIR)\src\makemsc.env
|
|
|
|
TREEDIR = $(WXDIR)\utils\wxtree
|
|
TREELIB = $(TREEDIR)\lib\wxtree.lib
|
|
DOCDIR = $(TREEDIR)\docs
|
|
THISDIR = $(TREEDIR)\src
|
|
EXTRALIBS = $(TREELIB)
|
|
INC=-I$(WXDIR)\include\base -I$(WXDIR)\include\msw
|
|
DUMMY=$(WXDIR)\src\msw\dummy.obj
|
|
|
|
# Default is to output RTF for WinHelp
|
|
!ifndef RTFSTYLE
|
|
RTFSTYLE=-winhelp
|
|
!endif
|
|
|
|
HEADERS = wxtree.h
|
|
SOURCES = wxtree.$(SRCSUFF)
|
|
OBJECTS = wxtree.obj
|
|
|
|
all: $(TREELIB)
|
|
|
|
test: test.exe
|
|
|
|
wx:
|
|
cd $(WXDIR)\src\msw
|
|
nmake -f makefile.dos FINAL=$(FINAL)
|
|
cd $(TREEDIR)\src
|
|
|
|
wxclean:
|
|
cd $(WXDIR)\src\msw
|
|
nmake -f makefile.dos clean
|
|
cd $(TREEDIR)\src
|
|
|
|
$(TREELIB): $(OBJECTS)
|
|
-erase $(TREELIB)
|
|
lib /PAGESIZE:128 @<<
|
|
$(TREELIB)
|
|
y
|
|
$(OBJECTS)
|
|
nul
|
|
;
|
|
<<
|
|
|
|
test.exe: $(DUMMY) $(WXLIB) $(TREELIB) test.obj test.def test.res
|
|
link $(LINKFLAGS) @<<
|
|
$(DUMMY) test.obj,
|
|
test,
|
|
NUL,
|
|
$(LIBS),
|
|
test.def
|
|
;
|
|
<<
|
|
rc -31 -K test.res
|
|
|
|
wxtree.obj: wxtree.h wxtree.$(SRCSUFF) $(DUMMY)
|
|
cl @<<
|
|
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
|
<<
|
|
|
|
test.obj: test.h wxtree.h test.$(SRCSUFF) $(DUMMY)
|
|
cl @<<
|
|
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
|
<<
|
|
|
|
test.res : test.rc $(WXDIR)\include\msw\wx.rc
|
|
rc -r /dFAFA_LIB /i$(WXDIR)\contrib\fafa /i$(WXDIR)\include\msw test
|
|
|
|
# Making documents
|
|
docs: hlp xlp
|
|
hlp: $(DOCDIR)/wxtree.hlp
|
|
xlp: $(DOCDIR)/wxtree.xlp
|
|
rtf: $(DOCDIR)/wxtree.rtf
|
|
|
|
$(DOCDIR)/wxtree.hlp: $(DOCDIR)/wxtree.rtf $(DOCDIR)/wxtree.hpj
|
|
cd $(DOCDIR)
|
|
-erase wxtree.ph
|
|
hc wxtree
|
|
cd $(THISDIR)
|
|
|
|
$(DOCDIR)/wxtree.rtf: $(DOCDIR)/manual.tex $(DOCDIR)/classes.tex
|
|
cd $(DOCDIR)
|
|
-wx /W tex2rtf $(DOCDIR)\manual.tex $(DOCDIR)\wxtree.rtf -twice $(RTFSTYLE)
|
|
cd $(THISDIR)
|
|
|
|
$(DOCDIR)/wxtree.xlp: $(DOCDIR)/manual.tex $(DOCDIR)/classes.tex
|
|
cd $(DOCDIR)
|
|
-wx /W tex2rtf $(DOCDIR)\manual.tex $(DOCDIR)\wxtree.xlp -twice -xlp
|
|
cd $(THISDIR)
|
|
|
|
cleanrtf:
|
|
cd $(DOCDIR)
|
|
-erase *.rtf
|
|
cd $(THISDIR)
|
|
|
|
clean:
|
|
-erase *.obj
|
|
-erase *.sbr
|
|
-erase *.exe
|
|
-erase *.res
|
|
-erase *.map
|
|
-erase *.pdb
|
|
-erase $(TREELIB)
|