]> git.saurik.com Git - wxWidgets.git/blame - samples/db/makefile.nt
Attempting to check in this wretched cursor again. Also added SetAcceleratorTable
[wxWidgets.git] / samples / db / makefile.nt
CommitLineData
108106cf
JS
1#
2# File: makefile.nt
3# Author: George Tasker
4# Created: 1998
5# Updated:
6#
7# "%W% %G%"
8#
9# Makefile : Builds database example (MS VC++).
10
11!if "$(FINAL)" == ""
12FINAL=0
13!endif
14
15
16!if "$(MSVCDIR)" == ""
17MSVCDIR=c:\devstudio\vc
18!endif
19
20# Set WXDIR for your system
21WXDIR = $(WXWIN)
22THISDIR = $(WXDIR)\samples\database
23WXODBCDIR = $(WXDIR)\utils\wxodbc
24
25!if "$(MSVCDIR)" == ""
26DBLIBS=$(MSDEVDIR)\lib\odbc32.lib
27!else
28DBLIBS=$(MSVCDIR)\lib\odbc32.lib
29!endif
30
31EXTRAINC = -I$(WXODBCDIR)\src
32EXTRALIBS = $(DBLIBS) $(WXODBCDIR)\lib\wxodbc.lib
33
34!include $(WXDIR)\src\ntwxwin.mak
35
36PROGRAM=database
37
38OBJECTS = $(PROGRAM).$(OBJSUFF) listdb.$(OBJSUFF)
39
40all: wxodbc $(PROGRAM).exe
41
42$(PROGRAM): $(PROGRAM).exe
43
44gt:
45 cd $(CPPFLAGS)
46
47wxodbc:
48 cd $(WXODBCDIR)\src
49 nmake -f makefile.nt FINAL=$(FINAL)
50 cd $(THISDIR)
51
52wx:
53 cd $(WXDIR)\src\msw
54 nmake -f makefile.nt FINAL=$(FINAL)
55 cd $(THISDIR)
56
57wxclean:
58 cd $(WXDIR)\src\msw
59 nmake -f makefile.nt clean
60 cd $(THISDIR)
61 cd $(WXODBCDIR)\src
62 nmake -f makefile.nt clean
63 cd $(THISDIR)
64
65
66$(PROGRAM).exe: $(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res
67 $(link) @<<
68-out:$(PROGRAM).exe
69$(LINKFLAGS)
70$(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res
71$(LIBS)
72<<
73
74
75listdb.$(OBJSUFF): $(*B).$(SRCSUFF) $(*B).h
76 $(cc) @<<
77$(CPPFLAGS) /c /Fo$(*B).$(OBJSUFF) /Tp $(*B).$(SRCSUFF)
78<<
79
80
81$(PROGRAM).$(OBJSUFF): $(PROGRAM).$(SRCSUFF) $(PROGRAM).h listdb.h
82 $(cc) @<<
83$(CPPFLAGS) /c /Fo$(*B).$(OBJSUFF) /Tp $(*B).$(SRCSUFF)
84<<
85
86
87$(PROGRAM).res: $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
88 $(rc) -r /i$(WXDIR)\include -fo$@ $(PROGRAM).rc
89
90
91clean:
92 -erase *.obj
93 -erase *.exe
94 -erase *.res
95 -erase *.map
96 -erase *.sbr
97 -erase *.pdb