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_bc$(DEBUG_SUFFIX) jpeg_bc$(DEBUG_SUFFIX) tiff_bc$(DEBUG_SUFFIX)
30 EX_LIBS=$(EXTRALIBS:.lib=_bcd.lib)
32 EX_LIBS=$(EXTRALIBS:.lib=_bc.lib)
35 !if "$(WXUSINGDLL)" == "1"
36 LIBS=$(WXLIB) $(EX_LIBS) cw32mti import32 ole2w32 regex_bc$(DEBUG_SUFFIX) zlib_bc$(DEBUG_SUFFIX) $(IMGLIBS)
38 LIBS=$(WXLIB) $(EX_LIBS) cw32mt import32 ole2w32 regex_bc$(DEBUG_SUFFIX) zlib_bc$(DEBUG_SUFFIX) $(IMGLIBS)
41 !if "$(wxUSE_ODBC)" == "1"
46 !if "$(wxUSE_GUI)" == "0"
53 #LINKFLAGS=/v /c /Tpe $(LNKCFG) $(EXTRALINKFLAGS)
54 LINKFLAGS=/v /c $(LINKOUT) -L$(WXLIBDIR);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
58 #LINKFLAGS=/Tpe +$(LNKCFG) $(EXTRALINKFLAGS)
59 LINKFLAGS=$(LINKOUT) -L$(WXLIBDIR);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
64 CPPFLAGS=$(CPPFLAGS) $(DEBUG_FLAGS) $(OPT)
66 !if "$(wxUSE_GUI)" == "0"
70 TARGETRES = $(EXEDIR)\$(TARGET).res
74 EXE_TARGET=$(EXEDIR)\$(TARGET)
79 -if not exist $(EXEDIR)\nul mkdir $(EXEDIR)
81 wx: $(EXE_TARGET).exe $(EXTRATARGETS)
86 $(EXE_TARGET).exe: $(OBJECTS) $(TARGETDEF) $(TARGETRES)
87 $(LINK) $(LINKFLAGS) -j$(EXEDIR) @&&!
99 bcc32 $(CPPFLAGS) -c -n$(EXEDIR) {$< }
102 bcc32 $(CPPFLAGS) -P- -c -n$(EXEDIR) {$< }
104 !if "$(wxUSE_GUI)" != "0"
105 #make resources only with GUI apps
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)
111 -$(RM) $(EXEDIR)\*.obj
112 -$(RM) $(EXEDIR)\*.exe
113 -$(RM) $(EXEDIR)\*.res
114 -$(RM) $(EXEDIR)\*.map
115 -$(RM) $(EXEDIR)\*.rws
116 -$(RM) $(EXEDIR)\*.tds
117 -$(RM) $(EXEDIR)\*.il?