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)
29 !if "$(WXUSINGDLL)" == "1"
30 LIBS=$(WXLIB) $(EXTRALIBS) cw32mti import32 ole2w32 regex_$(DEBUG_SUFFIX) zlib_$(DEBUG_SUFFIX) $(IMGLIBS)
32 LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 regex_$(DEBUG_SUFFIX) zlib_$(DEBUG_SUFFIX) $(IMGLIBS)
35 !if "$(wxUSE_ODBC)" == "1"
39 # Note: you may need to remove some libraries for earlier versions of BC++, as below
40 #LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 winpng zlib tiff
42 !if "$(wxUSE_GUI)" == "0"
49 #LINKFLAGS=/v /c /Tpe $(LNKCFG) $(EXTRALINKFLAGS)
50 LINKFLAGS=/v /c $(LINKOUT) -L$(WXLIBDIR);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
54 #LINKFLAGS=/Tpe +$(LNKCFG) $(EXTRALINKFLAGS)
55 LINKFLAGS=$(LINKOUT) -L$(WXLIBDIR);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
60 CPPFLAGS=$(CPPFLAGS) $(DEBUG_FLAGS) $(OPT)
62 !if "$(wxUSE_GUI)" == "0"
66 TARGETRES = $(EXEDIR)\$(TARGET).res
70 EXE_TARGET=$(EXEDIR)\$(TARGET)
75 -if not exist $(EXEDIR) mkdir $(EXEDIR)
77 wx: $(EXE_TARGET).exe $(EXTRATARGETS)
82 $(EXE_TARGET).exe: $(OBJECTS) $(TARGETDEF) $(TARGETRES)
83 $(LINK) $(LINKFLAGS) -j$(EXEDIR) @&&!
95 bcc32 $(CPPFLAGS) -c -o$(EXEDIR)\$(<B).obj {$< }
98 bcc32 $(CPPFLAGS) -P- -c -o$(EXEDIR)\$(<B).obj {$< }
100 $(TARGETRES) : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
101 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include /i$(WXDIR)\contrib\include -fo$(EXEDIR)\$(<B).res $(TARGET)
104 -erase $(EXEDIR)\*.obj
105 -erase $(EXEDIR)\*.exe
106 -erase $(EXEDIR)\*.res
107 -erase $(EXEDIR)\*.map
108 -erase $(EXEDIR)\*.rws
109 -erase $(EXEDIR)\*.tds
110 -erase $(EXEDIR)\*.il?