]> git.saurik.com Git - wxWidgets.git/blob - samples/display/makefile.bcc
a8b227b1ce684e2e2cc84505cffca55519f8fdd5
[wxWidgets.git] / samples / display / makefile.bcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.1.20030719 (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/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 DISPLAY_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS_6) $(__DEBUGFLAG) \
24 $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
25 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include \
26 -I.\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) \
27 -I.\..\..\src\tiff -I.\..\..\src\jpeg -I.\..\..\src\png -I.\..\..\src\zlib \
28 -I.\..\..\src\regex -I. $(__DLLFLAG_p) $(CXXFLAGS)
29 OBJS = \
30 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
31
32 ### Conditionally set variables: ###
33
34 !if "$(USE_GUI)" == "0"
35 PORTNAME = base
36 !endif
37 !if "$(USE_GUI)" == "1"
38 PORTNAME = msw
39 !endif
40 !if "$(BUILD)" == "debug"
41 WXDEBUGFLAG = d
42 !endif
43 !if "$(SHARED)" == "1"
44 WXDLLFLAG = dll
45 !endif
46 !if "$(UNICODE)" == "1"
47 WXUNICODEFLAG = u
48 !endif
49 !if "$(WXUNIV)" == "1"
50 WXUNIVNAME = univ
51 !endif
52 !if "$(BUILD)" == "debug"
53 __DEBUGFLAG = -v
54 !endif
55 !if "$(BUILD)" == "release"
56 __DEBUGFLAG = -v-
57 !endif
58 !if "$(BUILD)" == "debug"
59 __DEBUG_DEFINE_p = -D__WXDEBUG__
60 !endif
61 !if "$(SHARED)" == "1"
62 __DLLFLAG_p = -DWXUSINGDLL
63 !endif
64 !if "$(BUILD)" == "debug"
65 __OPTIMIZEFLAG_2 = -Od
66 !endif
67 !if "$(BUILD)" == "release"
68 __OPTIMIZEFLAG_2 = -O2
69 !endif
70 !if "$(RUNTIME_LIBS)" == "dynamic"
71 __RUNTIME_LIBS_6 = -tWR
72 !endif
73 !if "$(RUNTIME_LIBS)" == "static"
74 __RUNTIME_LIBS_6 =
75 !endif
76 !if "$(RUNTIME_LIBS)" == "dynamic"
77 __RUNTIME_LIBS_7 = i
78 !endif
79 !if "$(RUNTIME_LIBS)" == "static"
80 __RUNTIME_LIBS_7 =
81 !endif
82 !if "$(UNICODE)" == "1"
83 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
84 !endif
85 !if "$(MONOLITHIC)" == "0"
86 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
87 !endif
88 !if "$(MONOLITHIC)" == "0"
89 __WXLIB_CORE_p = \
90 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
91 !endif
92 !if "$(MONOLITHIC)" == "1"
93 __WXLIB_MONO_p = \
94 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
95 !endif
96 !if "$(WXUNIV)" == "1"
97 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
98 !endif
99
100
101 all: $(OBJS)
102 $(OBJS):
103 -if not exist $(OBJS) mkdir $(OBJS)
104
105 ### Targets: ###
106
107 all: $(OBJS)\display.exe
108
109 $(OBJS)\display_display.obj: .\display.cpp
110 $(CXX) -q -c -P -o$@ $(DISPLAY_CXXFLAGS) $**
111
112 clean:
113 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
114 -if exist $(OBJS)\*.res del $(OBJS)\*.res
115 -if exist $(OBJS)\display.exe del $(OBJS)\display.exe
116
117 $(OBJS)\display.exe: $(OBJS)\display_display.obj
118 ilink32 -Tpe -q $(LDFLAGS) $(__DEBUGFLAG) -L.\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) -aa @&&|
119 c0w32.obj $(OBJS)\display_display.obj,$@,, $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) wxtiff$(WXDEBUGFLAG).lib wxjpeg$(WXDEBUGFLAG).lib wxpng$(WXDEBUGFLAG).lib wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib import32.lib ole2w32.lib cw32mt$(__RUNTIME_LIBS_7).lib,,
120 |