8 # Include file for samples and utilities. Set TARGET, OBJECTS and
9 # TARGETDEF (if you want to include a DEF file in the build) before
10 # including this file.
12 # WXWIN set by parent make
13 # BCCDIR set in makeb32.env
21 !include $(WXDIR)\src\makeb32.env
23 !if "$(wxUSE_GUI)" == "0"
26 IMGLIBS= png_$(DEBUG_SUFFIX) jpeg_$(DEBUG_SUFFIX) tiff_$(DEBUG_SUFFIX)
30 EX_LIBS=$(EXTRALIBS:.lib=_d.lib)
35 !if "$(WXUSINGDLL)" == "1"
36 LIBS=$(WXLIB) $(EX_LIBS) cw32mti import32 ole2w32 regex_$(DEBUG_SUFFIX) zlib_$(DEBUG_SUFFIX) $(IMGLIBS)
38 LIBS=$(WXLIB) $(EX_LIBS) cw32mt import32 ole2w32 regex_$(DEBUG_SUFFIX) zlib_$(DEBUG_SUFFIX) $(IMGLIBS)
41 !if "$(wxUSE_ODBC)" == "1"
45 # Note: you may need to remove some libraries for earlier versions of BC++, as below
46 #LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 winpng zlib tiff
48 !if "$(wxUSE_GUI)" == "0"
55 #LINKFLAGS=/v /c /Tpe $(LNKCFG) $(EXTRALINKFLAGS)
56 LINKFLAGS=/v /c $(LINKOUT) -L$(WXLIBDIR);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
60 #LINKFLAGS=/Tpe +$(LNKCFG) $(EXTRALINKFLAGS)
61 LINKFLAGS=$(LINKOUT) -L$(WXLIBDIR);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
66 CPPFLAGS=$(CPPFLAGS) $(DEBUG_FLAGS) $(OPT)
68 !if "$(wxUSE_GUI)" == "0"
72 TARGETRES = $(EXEDIR)\$(TARGET).res
76 EXE_TARGET=$(EXEDIR)\$(TARGET)
81 -if not exist $(EXEDIR) mkdir $(EXEDIR)
83 wx: $(EXE_TARGET).exe $(EXTRATARGETS)
88 $(EXE_TARGET).exe: $(OBJECTS) $(TARGETDEF) $(TARGETRES)
89 $(LINK) $(LINKFLAGS) -j$(EXEDIR) @&&!
101 bcc32 $(CPPFLAGS) -c -o$(EXEDIR)\$(<B).obj {$< }
104 bcc32 $(CPPFLAGS) -P- -c -o$(EXEDIR)\$(<B).obj {$< }
106 $(TARGETRES) : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
107 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include /i$(WXDIR)\contrib\include -fo$(EXEDIR)\$(<B).res $(TARGET)
110 -erase $(EXEDIR)\*.obj
111 -erase $(EXEDIR)\*.exe
112 -erase $(EXEDIR)\*.res
113 -erase $(EXEDIR)\*.map
114 -erase $(EXEDIR)\*.rws
115 -erase $(EXEDIR)\*.tds
116 -erase $(EXEDIR)\*.il?