]> git.saurik.com Git - wxWidgets.git/blame - samples/db/makefile.nt
Removed print.cpp, added tokenizr.tex
[wxWidgets.git] / samples / db / makefile.nt
CommitLineData
108106cf
JS
1#
2# File: makefile.nt
1fc5dd6f
JS
3# Author: Julian Smart
4# Created: 1993
108106cf 5# Updated:
1fc5dd6f 6# Copyright: (c) 1993, AIAI, University of Edinburgh
108106cf
JS
7#
8# "%W% %G%"
9#
1fc5dd6f
JS
10# Makefile : Builds db example (MS VC++).
11# Use FINAL=1 argument to nmake to build final version with no debugging
12# info
108106cf
JS
13
14# Set WXDIR for your system
1fc5dd6f 15WXDIR = $(WXWIN)
108106cf 16
1fc5dd6f 17WXUSINGDLL=0
108106cf
JS
18
19!include $(WXDIR)\src\ntwxwin.mak
20
1fc5dd6f
JS
21THISDIR = $(WXDIR)\samples\db
22PROGRAM=dbtest
108106cf 23
1fc5dd6f 24OBJECTS = $(PROGRAM).obj listdb.obj
108106cf
JS
25
26$(PROGRAM): $(PROGRAM).exe
27
1fc5dd6f 28all: wx $(PROGRAM).exe
108106cf
JS
29
30wx:
31 cd $(WXDIR)\src\msw
32 nmake -f makefile.nt FINAL=$(FINAL)
33 cd $(THISDIR)
34
35wxclean:
36 cd $(WXDIR)\src\msw
37 nmake -f makefile.nt clean
38 cd $(THISDIR)
108106cf 39
1fc5dd6f 40$(PROGRAM).exe: $(DUMMYOBJ) $(WXLIB) $(OBJECTS) $(PROGRAM).res
108106cf
JS
41 $(link) @<<
42-out:$(PROGRAM).exe
43$(LINKFLAGS)
44$(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res
45$(LIBS)
46<<
47
48
1fc5dd6f
JS
49$(PROGRAM).obj: $(PROGRAM).$(SRCSUFF) $(DUMMYOBJ)
50 $(cc) @<<
51$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
108106cf
JS
52<<
53
1fc5dd6f
JS
54listdb.obj: listdb.cpp $(DUMMYOBJ)
55 $(cc) @<<
56$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
108106cf
JS
57<<
58
1fc5dd6f 59$(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
108106cf
JS
60 $(rc) -r /i$(WXDIR)\include -fo$@ $(PROGRAM).rc
61
62
63clean:
64 -erase *.obj
65 -erase *.exe
66 -erase *.res
67 -erase *.map
68 -erase *.sbr
69 -erase *.pdb