8 # Include file for samples and utilities. Set TARGET and OBJECTS
9 # before including this file.
11 # WXWIN set by parent make
12 # BCCDIR set in makeb32.env
15 !include $(WXDIR)\src\makeb32.env
17 !if "$(wxUSE_GUI)" == "0"
20 IMGLIBS= winpng jpeg tiff
23 !if "$(WXUSINGDLL)" == "1"
24 LIBS=$(WXLIB) $(EXTRALIBS) cw32mti import32 ole2w32 regex zlib $(IMGLIBS) odbc32
26 LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 regex zlib $(IMGLIBS) odbc32
29 # Note: you may need to remove some libraries for earlier versions of BC++, as below
30 #LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 winpng zlib tiff
32 !if "$(wxUSE_GUI)" == "0"
39 #LINKFLAGS=/v /c /Tpe $(LNKCFG) $(EXTRALINKFLAGS)
40 LINKFLAGS=/v /c $(LINKOUT) -L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
44 #LINKFLAGS=/Tpe +$(LNKCFG) $(EXTRALINKFLAGS)
45 LINKFLAGS=$(LINKOUT) -L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
50 CPPFLAGS=$(CPPFLAGS) $(DEBUG_FLAGS) $(OPT)
53 !if "$(wxUSE_GUI)" == "0"
57 if exist $(TARGET).def TARGETDEF = $(TARGET).def
58 TARGETRES = $(TARGET).res
62 all: $(TARGET).exe $(EXTRATARGETS)
64 $(TARGET).exe: $(OBJECTS) $(TARGETDEF) $(TARGETRES)
65 $(LINK) $(LINKFLAGS) @&&!
75 bcc32 $(CPPFLAGS) -c {$< }
78 bcc32 $(CPPFLAGS) -P- -c {$< }
80 $(TARGET).res : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
81 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include /i$(WXDIR)\contrib\include $(TARGET)