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"
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 $(TARGETRES) : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
105 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include /i$(WXDIR)\contrib\include -fo$(EXEDIR)\$(<B).res $(TARGET)
108 -$(RM) $(EXEDIR)\*.obj
109 -$(RM) $(EXEDIR)\*.exe
110 -$(RM) $(EXEDIR)\*.res
111 -$(RM) $(EXEDIR)\*.map
112 -$(RM) $(EXEDIR)\*.rws
113 -$(RM) $(EXEDIR)\*.tds
114 -$(RM) $(EXEDIR)\*.il?