]> git.saurik.com Git - wxWidgets.git/blob - contrib/samples/mmedia/makefile.bcc
1) some compilers (Watcom) don't like it if wxBase library PCH file contains
[wxWidgets.git] / contrib / samples / mmedia / makefile.bcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.1 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 !ifndef BCCDIR
8 BCCDIR = $(MAKEDIR)\..
9 !endif
10
11 !include ../../../build/msw/config.bcc
12
13 # -------------------------------------------------------------------------
14 # Do not modify the rest of this file!
15 # -------------------------------------------------------------------------
16
17 !if "$(BCCDIR)" == "\.."
18 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
19 !endif
20
21 ### Variables: ###
22
23 LIBDIRNAME = \
24 .\..\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
25 MMBOARD_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS_6) $(__DEBUGINFO) \
26 $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
27 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include \
28 -I$(LIBDIRNAME) -I.\..\..\..\src\tiff -I.\..\..\..\src\jpeg \
29 -I.\..\..\..\src\png -I.\..\..\..\src\zlib -I.\..\..\..\src\regex \
30 -I.\..\..\..\src\expat\lib -I. $(__DLLFLAG_p) -I..\..\..\samples \
31 -I.\..\..\include $(CXXFLAGS)
32 MMBOARD_OBJECTS = \
33 $(OBJS)\mmboard_mmboard.obj \
34 $(OBJS)\mmboard_mmbman.obj
35 OBJS = \
36 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
37
38 ### Conditionally set variables: ###
39
40 !if "$(USE_GUI)" == "0"
41 PORTNAME = base
42 !endif
43 !if "$(USE_GUI)" == "1"
44 PORTNAME = msw
45 !endif
46 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
47 WXDEBUGFLAG = d
48 !endif
49 !if "$(DEBUG_FLAG)" == "1"
50 WXDEBUGFLAG = d
51 !endif
52 !if "$(SHARED)" == "1"
53 WXDLLFLAG = dll
54 !endif
55 !if "$(UNICODE)" == "1"
56 WXUNICODEFLAG = u
57 !endif
58 !if "$(WXUNIV)" == "1"
59 WXUNIVNAME = univ
60 !endif
61 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
62 __DEBUGINFO = -v
63 !endif
64 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
65 __DEBUGINFO = -v-
66 !endif
67 !if "$(DEBUG_INFO)" == "0"
68 __DEBUGINFO = -v-
69 !endif
70 !if "$(DEBUG_INFO)" == "1"
71 __DEBUGINFO = -v
72 !endif
73 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
74 __DEBUG_DEFINE_p = -D__WXDEBUG__
75 !endif
76 !if "$(DEBUG_FLAG)" == "1"
77 __DEBUG_DEFINE_p = -D__WXDEBUG__
78 !endif
79 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
80 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
81 !endif
82 !if "$(DEBUG_FLAG)" == "1"
83 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
84 !endif
85 !if "$(SHARED)" == "1"
86 __DLLFLAG_p = -DWXUSINGDLL
87 !endif
88 !if "$(SHARED)" == "1"
89 __DLLFLAG_p_1 = -dWXUSINGDLL
90 !endif
91 !if "$(USE_GUI)" == "1"
92 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
93 !endif
94 !if "$(USE_GUI)" == "1"
95 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
96 !endif
97 !if "$(USE_GUI)" == "1"
98 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
99 !endif
100 !if "$(BUILD)" == "debug"
101 __OPTIMIZEFLAG_2 = -Od
102 !endif
103 !if "$(BUILD)" == "release"
104 __OPTIMIZEFLAG_2 = -O2
105 !endif
106 !if "$(RUNTIME_LIBS)" == "dynamic"
107 __RUNTIME_LIBS_6 = -tWR
108 !endif
109 !if "$(RUNTIME_LIBS)" == "static"
110 __RUNTIME_LIBS_6 =
111 !endif
112 !if "$(RUNTIME_LIBS)" == "dynamic"
113 __RUNTIME_LIBS_7 = i
114 !endif
115 !if "$(RUNTIME_LIBS)" == "static"
116 __RUNTIME_LIBS_7 =
117 !endif
118 !if "$(UNICODE)" == "1"
119 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
120 !endif
121 !if "$(UNICODE)" == "1"
122 __UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=1
123 !endif
124 !if "$(MSLU)" == "1"
125 __UNICOWS_LIB_p = unicows.lib
126 !endif
127 !if "$(MONOLITHIC)" == "0"
128 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
129 !endif
130 !if "$(MONOLITHIC)" == "0"
131 __WXLIB_CORE_p = \
132 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
133 !endif
134 !if "$(MONOLITHIC)" == "1"
135 __WXLIB_MONO_p = \
136 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
137 !endif
138 !if "$(WXUNIV)" == "1"
139 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
140 !endif
141 !if "$(WXUNIV)" == "1"
142 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
143 !endif
144
145
146 all: $(OBJS)
147 $(OBJS):
148 -if not exist $(OBJS) mkdir $(OBJS)
149
150 ### Targets: ###
151
152 all: $(OBJS)\mmboard.exe
153
154 $(OBJS)\mmboard_mmbman.obj: .\mmbman.cpp
155 $(CXX) -q -c -P -o$@ $(MMBOARD_CXXFLAGS) $**
156
157 $(OBJS)\mmboard_mmboard.obj: .\mmboard.cpp
158 $(CXX) -q -c -P -o$@ $(MMBOARD_CXXFLAGS) $**
159
160 $(OBJS)\mmboard_mmboard.res: .\mmboard.rc
161 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) -i.\..\..\..\include -i$(LIBDIRNAME) -i.\..\..\..\src\tiff -i.\..\..\..\src\jpeg -i.\..\..\..\src\png -i.\..\..\..\src\zlib -i.\..\..\..\src\regex -i.\..\..\..\src\expat\lib -i. $(__DLLFLAG_p_1) -i..\..\..\samples -i.\..\..\include $**
162
163 clean:
164 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
165 -if exist $(OBJS)\*.res del $(OBJS)\*.res
166 -if exist $(OBJS)\mmboard.exe del $(OBJS)\mmboard.exe
167
168 $(OBJS)\mmboard.exe: $(MMBOARD_OBJECTS) $(OBJS)\mmboard_mmboard.res
169 ilink32 -Tpe -q $(LDFLAGS) $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
170 c0w32.obj $(MMBOARD_OBJECTS),$@,, wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) import32.lib ole2w32.lib cw32mt$(__RUNTIME_LIBS_7).lib,, $(OBJS)\mmboard_mmboard.res
171 |