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 # =========================================================================
11 !include ../../build/config.bcc
13 # -------------------------------------------------------------------------
14 # Do not modify the rest of this file!
15 # -------------------------------------------------------------------------
17 !if "$(BCCDIR)" == "\.."
18 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
23 DND_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS_6) $(__DEBUGINFO) \
24 $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
25 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(LIBDIRNAME) \
26 -I.\..\..\src\tiff -I.\..\..\src\jpeg -I.\..\..\src\png -I.\..\..\src\zlib \
27 -I.\..\..\src\regex -I.\..\..\src\expat\lib -I. $(__DLLFLAG_p) $(CXXFLAGS)
31 .\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
33 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
35 ### Conditionally set variables: ###
37 !if "$(USE_GUI)" == "0"
40 !if "$(USE_GUI)" == "1"
43 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
46 !if "$(DEBUG_FLAG)" == "1"
49 !if "$(SHARED)" == "1"
52 !if "$(UNICODE)" == "1"
55 !if "$(WXUNIV)" == "1"
58 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
61 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
64 !if "$(DEBUG_INFO)" == "0"
67 !if "$(DEBUG_INFO)" == "1"
70 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
71 __DEBUG_DEFINE_p = -D__WXDEBUG__
73 !if "$(DEBUG_FLAG)" == "1"
74 __DEBUG_DEFINE_p = -D__WXDEBUG__
76 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
77 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
79 !if "$(DEBUG_FLAG)" == "1"
80 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
82 !if "$(SHARED)" == "1"
83 __DLLFLAG_p = -DWXUSINGDLL
85 !if "$(SHARED)" == "1"
86 __DLLFLAG_p_1 = -dWXUSINGDLL
88 !if "$(USE_GUI)" == "1"
89 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
91 !if "$(USE_GUI)" == "1"
92 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
94 !if "$(USE_GUI)" == "1"
95 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
97 !if "$(BUILD)" == "debug"
98 __OPTIMIZEFLAG_2 = -Od
100 !if "$(BUILD)" == "release"
101 __OPTIMIZEFLAG_2 = -O2
103 !if "$(RUNTIME_LIBS)" == "dynamic"
104 __RUNTIME_LIBS_6 = -tWR
106 !if "$(RUNTIME_LIBS)" == "static"
109 !if "$(RUNTIME_LIBS)" == "dynamic"
112 !if "$(RUNTIME_LIBS)" == "static"
115 !if "$(UNICODE)" == "1"
116 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
118 !if "$(UNICODE)" == "1"
119 __UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=1
121 !if "$(MONOLITHIC)" == "0"
122 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
124 !if "$(MONOLITHIC)" == "0"
126 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
128 !if "$(MONOLITHIC)" == "1"
130 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
132 !if "$(WXUNIV)" == "1"
133 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
135 !if "$(WXUNIV)" == "1"
136 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
142 -if not exist $(OBJS) mkdir $(OBJS)
146 all: $(OBJS)\dnd.exe data
148 $(OBJS)\dnd_dnd.obj: .\dnd.cpp
149 $(CXX) -q -c -P -o$@ $(DND_CXXFLAGS) $**
151 $(OBJS)\dnd_dnd.res: .\dnd.rc
152 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) $**
155 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
156 -if exist $(OBJS)\*.res del $(OBJS)\*.res
157 -if exist $(OBJS)\dnd.exe del $(OBJS)\dnd.exe
160 if not exist $(OBJS) mkdir $(OBJS)
161 for %f in (julian.png dnd.wxr) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
163 $(OBJS)\dnd.exe: $(DND_OBJECTS) $(OBJS)\dnd_dnd.res
164 ilink32 -Tpe -q $(LDFLAGS) $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
165 c0w32.obj $(DND_OBJECTS),$@,, $(__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 import32.lib ole2w32.lib cw32mt$(__RUNTIME_LIBS_7).lib,, $(OBJS)\dnd_dnd.res