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/msw/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
24 .\..\..\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
27 TREELAY_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS_6) $(__DEBUGINFO) \
28 $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
29 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\..\include \
30 -I$(LIBDIRNAME) -I.\..\..\..\..\src\tiff -I.\..\..\..\..\src\jpeg \
31 -I.\..\..\..\..\src\png -I.\..\..\..\..\src\zlib -I.\..\..\..\..\src\regex \
32 -I.\..\..\..\..\src\expat\lib -I. $(__DLLFLAG_p) -I..\..\..\..\samples \
33 -I.\..\..\..\include $(CXXFLAGS)
35 $(OBJS)\treelay_treelay.obj
37 ### Conditionally set variables: ###
39 !if "$(USE_GUI)" == "0"
42 !if "$(USE_GUI)" == "1"
45 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
48 !if "$(DEBUG_FLAG)" == "1"
51 !if "$(SHARED)" == "1"
54 !if "$(UNICODE)" == "1"
57 !if "$(WXUNIV)" == "1"
60 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
63 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
66 !if "$(DEBUG_INFO)" == "0"
69 !if "$(DEBUG_INFO)" == "1"
72 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
73 __DEBUG_DEFINE_p = -D__WXDEBUG__
75 !if "$(DEBUG_FLAG)" == "1"
76 __DEBUG_DEFINE_p = -D__WXDEBUG__
78 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
79 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
81 !if "$(DEBUG_FLAG)" == "1"
82 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
84 !if "$(SHARED)" == "1"
85 __DLLFLAG_p = -DWXUSINGDLL
87 !if "$(SHARED)" == "1"
88 __DLLFLAG_p_1 = -dWXUSINGDLL
90 !if "$(USE_GUI)" == "1"
91 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
93 !if "$(USE_GUI)" == "1"
94 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
96 !if "$(USE_GUI)" == "1"
97 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
99 !if "$(BUILD)" == "debug"
100 __OPTIMIZEFLAG_2 = -Od
102 !if "$(BUILD)" == "release"
103 __OPTIMIZEFLAG_2 = -O2
105 !if "$(RUNTIME_LIBS)" == "dynamic"
106 __RUNTIME_LIBS_6 = -tWR
108 !if "$(RUNTIME_LIBS)" == "static"
111 !if "$(RUNTIME_LIBS)" == "dynamic"
114 !if "$(RUNTIME_LIBS)" == "static"
117 !if "$(UNICODE)" == "1"
118 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
120 !if "$(UNICODE)" == "1"
121 __UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=1
124 __UNICOWS_LIB_p = unicows.lib
126 !if "$(MONOLITHIC)" == "0"
127 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
129 !if "$(MONOLITHIC)" == "0"
131 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
133 !if "$(MONOLITHIC)" == "1"
135 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
137 !if "$(WXUNIV)" == "1"
138 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
140 !if "$(WXUNIV)" == "1"
141 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
147 -if not exist $(OBJS) mkdir $(OBJS)
151 all: $(OBJS)\treelay.exe
153 $(OBJS)\treelay_treelay.obj: .\treelay.cpp
154 $(CXX) -q -c -P -o$@ $(TREELAY_CXXFLAGS) $**
156 $(OBJS)\treelay_treelay.res: .\treelay.rc
157 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 $**
160 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
161 -if exist $(OBJS)\*.res del $(OBJS)\*.res
162 -if exist $(OBJS)\treelay.exe del $(OBJS)\treelay.exe
164 $(OBJS)\treelay.exe: $(TREELAY_OBJECTS) $(OBJS)\treelay_treelay.res
165 ilink32 -Tpe -q $(LDFLAGS) $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
166 c0w32.obj $(TREELAY_OBJECTS),$@,, wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.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)\treelay_treelay.res