]>
Commit | Line | Data |
---|---|---|
3b20263d VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
bdc408c4 | 3 | # Bakefile 0.1.1 (http://bakefile.sourceforge.net) |
3b20263d VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
fd9f42b6 | 7 | include ../../build/msw/config.gcc |
3b20263d VS |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
25a73439 VS |
15 | DIALOGS_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \ |
16 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
17 | $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(LIBDIRNAME) -I.\..\..\src\tiff \ | |
18 | -I.\..\..\src\jpeg -I.\..\..\src\png -I.\..\..\src\zlib -I.\..\..\src\regex \ | |
4e209a20 | 19 | -I.\..\..\src\expat\lib -I. $(__DLLFLAG_p) -I..\..\samples $(CXXFLAGS) |
25a73439 VS |
20 | DIALOGS_OBJECTS = \ |
21 | $(OBJS)\dialogs_dialogs.o \ | |
22 | $(OBJS)\dialogs_dialogs_rc.o | |
23 | LIBDIRNAME = \ | |
24 | .\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
25 | OBJS = \ | |
26 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
3b20263d VS |
27 | |
28 | ### Conditionally set variables: ### | |
29 | ||
3fe8bc14 VS |
30 | ifeq ($(GCC_VERSION),2.95) |
31 | GCCFLAGS = -fvtable-thunks | |
32 | endif | |
3b20263d VS |
33 | ifeq ($(USE_GUI),0) |
34 | PORTNAME = base | |
35 | endif | |
36 | ifeq ($(USE_GUI),1) | |
37 | PORTNAME = msw | |
38 | endif | |
39 | ifeq ($(BUILD),debug) | |
25a73439 VS |
40 | ifeq ($(DEBUG_FLAG),default) |
41 | WXDEBUGFLAG = d | |
42 | endif | |
43 | endif | |
44 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
45 | WXDEBUGFLAG = d |
46 | endif | |
47 | ifeq ($(SHARED),1) | |
48 | WXDLLFLAG = dll | |
49 | endif | |
50 | ifeq ($(UNICODE),1) | |
51 | WXUNICODEFLAG = u | |
52 | endif | |
53 | ifeq ($(WXUNIV),1) | |
54 | WXUNIVNAME = univ | |
55 | endif | |
56 | ifeq ($(BUILD),debug) | |
25a73439 VS |
57 | ifeq ($(DEBUG_INFO),default) |
58 | __DEBUGINFO = -g | |
59 | endif | |
3fe8bc14 VS |
60 | endif |
61 | ifeq ($(BUILD),release) | |
25a73439 VS |
62 | ifeq ($(DEBUG_INFO),default) |
63 | __DEBUGINFO = | |
64 | endif | |
65 | endif | |
66 | ifeq ($(DEBUG_INFO),0) | |
67 | __DEBUGINFO = | |
68 | endif | |
69 | ifeq ($(DEBUG_INFO),1) | |
70 | __DEBUGINFO = -g | |
3fe8bc14 VS |
71 | endif |
72 | ifeq ($(BUILD),debug) | |
25a73439 VS |
73 | ifeq ($(DEBUG_FLAG),default) |
74 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
75 | endif | |
76 | endif | |
77 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
78 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
79 | endif | |
80 | ifeq ($(BUILD),debug) | |
25a73439 VS |
81 | ifeq ($(DEBUG_FLAG),default) |
82 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
83 | endif | |
84 | endif | |
85 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
86 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ |
87 | endif | |
88 | ifeq ($(SHARED),1) | |
89 | __DLLFLAG_p = -DWXUSINGDLL | |
90 | endif | |
91 | ifeq ($(SHARED),1) | |
92 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
93 | endif | |
25a73439 VS |
94 | ifeq ($(USE_GUI),1) |
95 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) | |
96 | endif | |
97 | ifeq ($(USE_GUI),1) | |
98 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) | |
99 | endif | |
100 | ifeq ($(USE_GUI),1) | |
101 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) | |
102 | endif | |
3fe8bc14 VS |
103 | ifeq ($(BUILD),debug) |
104 | __OPTIMIZEFLAG_2 = -O0 | |
105 | endif | |
106 | ifeq ($(BUILD),release) | |
107 | __OPTIMIZEFLAG_2 = -O2 | |
108 | endif | |
3b20263d VS |
109 | ifeq ($(UNICODE),1) |
110 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1 | |
111 | endif | |
112 | ifeq ($(UNICODE),1) | |
113 | __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=1 | |
114 | endif | |
4e209a20 VS |
115 | ifeq ($(MSLU),1) |
116 | __UNICOWS_LIB_p = -lunicows | |
117 | endif | |
3b20263d | 118 | ifeq ($(MONOLITHIC),0) |
fd9f42b6 VS |
119 | __WXLIB_ADV_p = \ |
120 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_adv | |
121 | endif | |
122 | ifeq ($(MONOLITHIC),0) | |
3b20263d VS |
123 | __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG) |
124 | endif | |
125 | ifeq ($(MONOLITHIC),0) | |
25a73439 VS |
126 | __WXLIB_CORE_p = \ |
127 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core | |
3b20263d VS |
128 | endif |
129 | ifeq ($(MONOLITHIC),1) | |
25a73439 VS |
130 | __WXLIB_MONO_p = \ |
131 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
3b20263d VS |
132 | endif |
133 | ifeq ($(WXUNIV),1) | |
134 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
135 | endif | |
136 | ifeq ($(WXUNIV),1) | |
137 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__ | |
138 | endif | |
139 | ||
140 | ||
141 | all: $(OBJS) | |
142 | $(OBJS): | |
143 | -if not exist $(OBJS) mkdir $(OBJS) | |
144 | ||
145 | ### Targets: ### | |
146 | ||
147 | all: $(OBJS)\dialogs.exe data | |
148 | ||
149 | $(OBJS)\dialogs_dialogs.o: .\dialogs.cpp | |
150 | $(CXX) -c -o $@ $(DIALOGS_CXXFLAGS) $< | |
151 | ||
152 | $(OBJS)\dialogs_dialogs_rc.o: .\dialogs.rc | |
4e209a20 | 153 | windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) --include-dir ./../../include --include-dir $(LIBDIRNAME) --include-dir ./../../src/tiff --include-dir ./../../src/jpeg --include-dir ./../../src/png --include-dir ./../../src/zlib --include-dir ./../../src/regex --include-dir ./../../src/expat/lib --include-dir . $(__DLLFLAG_p_1) --include-dir ../../samples |
3b20263d VS |
154 | |
155 | clean: | |
156 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
157 | -if exist $(OBJS)\dialogs.exe del $(OBJS)\dialogs.exe | |
3b20263d VS |
158 | |
159 | data: | |
160 | if not exist $(OBJS) mkdir $(OBJS) | |
161 | for %%f in (tips.txt) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS) | |
162 | ||
25a73439 | 163 | $(OBJS)\dialogs.exe: $(DIALOGS_OBJECTS) $(OBJS)\dialogs_dialogs_rc.o |
4e209a20 | 164 | $(CXX) -o $@ $(DIALOGS_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_ADV_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 |
3b20263d | 165 | |
fd9f42b6 | 166 | .PHONY: all clean data |