3 # Author: George Tasker
9 # Makefile : Builds database example (MS VC++).
16 !if "$(MSVCDIR)" == ""
17 MSVCDIR=c:\devstudio\vc
20 # Set WXDIR for your system
22 THISDIR = $(WXDIR)\samples\database
23 WXODBCDIR = $(WXDIR)\utils\wxodbc
25 !if "$(MSVCDIR)" == ""
26 DBLIBS=$(MSDEVDIR)\lib\odbc32.lib
28 DBLIBS=$(MSVCDIR)\lib\odbc32.lib
31 EXTRAINC = -I$(WXODBCDIR)\src
32 EXTRALIBS = $(DBLIBS) $(WXODBCDIR)\lib\wxodbc.lib
34 !include $(WXDIR)\src\ntwxwin.mak
38 OBJECTS = $(PROGRAM).$(OBJSUFF) listdb.$(OBJSUFF)
40 all: wxodbc $(PROGRAM).exe
42 $(PROGRAM): $(PROGRAM).exe
49 nmake -f makefile.nt FINAL=$(FINAL)
54 nmake -f makefile.nt FINAL=$(FINAL)
59 nmake -f makefile.nt clean
62 nmake -f makefile.nt clean
66 $(PROGRAM).exe: $(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res
70 $(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res
75 listdb.$(OBJSUFF): $(*B).$(SRCSUFF) $(*B).h
77 $(CPPFLAGS) /c /Fo$(*B).$(OBJSUFF) /Tp $(*B).$(SRCSUFF)
81 $(PROGRAM).$(OBJSUFF): $(PROGRAM).$(SRCSUFF) $(PROGRAM).h listdb.h
83 $(CPPFLAGS) /c /Fo$(*B).$(OBJSUFF) /Tp $(*B).$(SRCSUFF)
87 $(PROGRAM).res: $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
88 $(rc) -r /i$(WXDIR)\include -fo$@ $(PROGRAM).rc