]> git.saurik.com Git - wxWidgets.git/blob - samples/db/makefile.nt
Added script to help make wxMotif via configure; nativdlg sample works again;
[wxWidgets.git] / samples / db / makefile.nt
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)" == ""
12 FINAL=0
13 !endif
14
15
16 !if "$(MSVCDIR)" == ""
17 MSVCDIR=c:\devstudio\vc
18 !endif
19
20 # Set WXDIR for your system
21 WXDIR = $(WXWIN)
22 THISDIR = $(WXDIR)\samples\database
23 WXODBCDIR = $(WXDIR)\utils\wxodbc
24
25 !if "$(MSVCDIR)" == ""
26 DBLIBS=$(MSDEVDIR)\lib\odbc32.lib
27 !else
28 DBLIBS=$(MSVCDIR)\lib\odbc32.lib
29 !endif
30
31 EXTRAINC = -I$(WXODBCDIR)\src
32 EXTRALIBS = $(DBLIBS) $(WXODBCDIR)\lib\wxodbc.lib
33
34 !include $(WXDIR)\src\ntwxwin.mak
35
36 PROGRAM=database
37
38 OBJECTS = $(PROGRAM).$(OBJSUFF) listdb.$(OBJSUFF)
39
40 all: wxodbc $(PROGRAM).exe
41
42 $(PROGRAM): $(PROGRAM).exe
43
44 gt:
45 cd $(CPPFLAGS)
46
47 wxodbc:
48 cd $(WXODBCDIR)\src
49 nmake -f makefile.nt FINAL=$(FINAL)
50 cd $(THISDIR)
51
52 wx:
53 cd $(WXDIR)\src\msw
54 nmake -f makefile.nt FINAL=$(FINAL)
55 cd $(THISDIR)
56
57 wxclean:
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
75 listdb.$(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
91 clean:
92 -erase *.obj
93 -erase *.exe
94 -erase *.res
95 -erase *.map
96 -erase *.sbr
97 -erase *.pdb