]> git.saurik.com Git - wxWidgets.git/blob - src/makeprog.b32
Ensure that a wxMenuItem's parent menu is updated if it is removed
[wxWidgets.git] / src / makeprog.b32
1 #
2 # File: makeprog.b32
3 # Author: Julian Smart
4 # Created: 1999
5 # Updated:
6 # Copyright:
7 #
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.
11
12 # WXWIN set by parent make
13 # BCCDIR set in makeb32.env
14
15 WXDIR = $(WXWIN)
16
17 !ifndef EXEDIR
18 EXEDIR = BORL
19 !endif
20
21 !include $(WXDIR)\src\makeb32.env
22
23 !if "$(wxUSE_GUI)" == "0"
24 IMGLIBS=
25 !else
26 IMGLIBS= png_$(DEBUG_SUFFIX) jpeg_$(DEBUG_SUFFIX) tiff_$(DEBUG_SUFFIX)
27 !endif
28
29 !if "$(FINAL)" == "0"
30 EX_LIBS=$(EXTRALIBS:.lib=_d.lib)
31 !else
32 EX_LIBS=$(EXTRALIBS)
33 !endif
34
35 !if "$(WXUSINGDLL)" == "1"
36 LIBS=$(WXLIB) $(EX_LIBS) cw32mti import32 ole2w32 regex_$(DEBUG_SUFFIX) zlib_$(DEBUG_SUFFIX) $(IMGLIBS)
37 !else
38 LIBS=$(WXLIB) $(EX_LIBS) cw32mt import32 ole2w32 regex_$(DEBUG_SUFFIX) zlib_$(DEBUG_SUFFIX) $(IMGLIBS)
39 !endif
40
41 !if "$(wxUSE_ODBC)" == "1"
42 LIBS=$(LIBS) odbc32
43 !endif
44
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
47
48 !if "$(wxUSE_GUI)" == "0"
49 LINKOUT = /ap
50 !else
51 LINKOUT = /aa
52 !endif
53
54 !if "$(FINAL)" == "0"
55 #LINKFLAGS=/v /c /Tpe $(LNKCFG) $(EXTRALINKFLAGS)
56 LINKFLAGS=/v /c $(LINKOUT) -L$(WXLIBDIR);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
57 OPT = -Od
58 DEBUG_FLAGS= -v
59 !else
60 #LINKFLAGS=/Tpe +$(LNKCFG) $(EXTRALINKFLAGS)
61 LINKFLAGS=$(LINKOUT) -L$(WXLIBDIR);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
62 OPT = -Od
63 DEBUG_FLAGS =
64 !endif
65
66 CPPFLAGS=$(CPPFLAGS) $(DEBUG_FLAGS) $(OPT)
67
68 !if "$(wxUSE_GUI)" == "0"
69 TARGETRES =
70 STARTUP = c0x32.obj
71 !else
72 TARGETRES = $(EXEDIR)\$(TARGET).res
73 STARTUP = c0w32.obj
74 !endif
75
76 EXE_TARGET=$(EXEDIR)\$(TARGET)
77
78 default : all
79
80 maked:
81 -if not exist $(EXEDIR) mkdir $(EXEDIR)
82
83 wx: $(EXE_TARGET).exe $(EXTRATARGETS)
84
85 all: maked wx
86
87
88 $(EXE_TARGET).exe: $(OBJECTS) $(TARGETDEF) $(TARGETRES)
89 $(LINK) $(LINKFLAGS) -j$(EXEDIR) @&&!
90 $(STARTUP) $(OBJECTS)
91 $(EXE_TARGET)
92 nul
93 $(LIBS)
94 $(TARGETDEF)
95 $(TARGETRES)
96 !
97
98 .path.obj=$(EXEDIR)
99
100 .$(SRCSUFF).obj:
101 bcc32 $(CPPFLAGS) -c -o$(EXEDIR)\$(<B).obj {$< }
102
103 .c.obj:
104 bcc32 $(CPPFLAGS) -P- -c -o$(EXEDIR)\$(<B).obj {$< }
105
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)
108
109 clean:
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?
117