]> git.saurik.com Git - wxWidgets.git/blame - samples/dialogs/makefile.gcc
makefiles update with OSX fixes
[wxWidgets.git] / samples / dialogs / makefile.gcc
CommitLineData
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 7include ../../build/msw/config.gcc
3b20263d
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
25a73439
VS
15DIALOGS_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
20DIALOGS_OBJECTS = \
21 $(OBJS)\dialogs_dialogs.o \
22 $(OBJS)\dialogs_dialogs_rc.o
23LIBDIRNAME = \
24 .\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
25OBJS = \
26 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
3b20263d
VS
27
28### Conditionally set variables: ###
29
3fe8bc14
VS
30ifeq ($(GCC_VERSION),2.95)
31GCCFLAGS = -fvtable-thunks
32endif
3b20263d
VS
33ifeq ($(USE_GUI),0)
34PORTNAME = base
35endif
36ifeq ($(USE_GUI),1)
37PORTNAME = msw
38endif
39ifeq ($(BUILD),debug)
25a73439
VS
40ifeq ($(DEBUG_FLAG),default)
41WXDEBUGFLAG = d
42endif
43endif
44ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
45WXDEBUGFLAG = d
46endif
47ifeq ($(SHARED),1)
48WXDLLFLAG = dll
49endif
50ifeq ($(UNICODE),1)
51WXUNICODEFLAG = u
52endif
53ifeq ($(WXUNIV),1)
54WXUNIVNAME = univ
55endif
56ifeq ($(BUILD),debug)
25a73439
VS
57ifeq ($(DEBUG_INFO),default)
58__DEBUGINFO = -g
59endif
3fe8bc14
VS
60endif
61ifeq ($(BUILD),release)
25a73439
VS
62ifeq ($(DEBUG_INFO),default)
63__DEBUGINFO =
64endif
65endif
66ifeq ($(DEBUG_INFO),0)
67__DEBUGINFO =
68endif
69ifeq ($(DEBUG_INFO),1)
70__DEBUGINFO = -g
3fe8bc14
VS
71endif
72ifeq ($(BUILD),debug)
25a73439
VS
73ifeq ($(DEBUG_FLAG),default)
74__DEBUG_DEFINE_p = -D__WXDEBUG__
75endif
76endif
77ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
78__DEBUG_DEFINE_p = -D__WXDEBUG__
79endif
80ifeq ($(BUILD),debug)
25a73439
VS
81ifeq ($(DEBUG_FLAG),default)
82__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
83endif
84endif
85ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
86__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
87endif
88ifeq ($(SHARED),1)
89__DLLFLAG_p = -DWXUSINGDLL
90endif
91ifeq ($(SHARED),1)
92__DLLFLAG_p_1 = --define WXUSINGDLL
93endif
25a73439
VS
94ifeq ($(USE_GUI),1)
95__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
96endif
97ifeq ($(USE_GUI),1)
98__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
99endif
100ifeq ($(USE_GUI),1)
101__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
102endif
3fe8bc14
VS
103ifeq ($(BUILD),debug)
104__OPTIMIZEFLAG_2 = -O0
105endif
106ifeq ($(BUILD),release)
107__OPTIMIZEFLAG_2 = -O2
108endif
3b20263d
VS
109ifeq ($(UNICODE),1)
110__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
111endif
112ifeq ($(UNICODE),1)
113__UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=1
114endif
4e209a20
VS
115ifeq ($(MSLU),1)
116__UNICOWS_LIB_p = -lunicows
117endif
3b20263d 118ifeq ($(MONOLITHIC),0)
fd9f42b6
VS
119__WXLIB_ADV_p = \
120 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_adv
121endif
122ifeq ($(MONOLITHIC),0)
3b20263d
VS
123__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
124endif
125ifeq ($(MONOLITHIC),0)
25a73439
VS
126__WXLIB_CORE_p = \
127 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
3b20263d
VS
128endif
129ifeq ($(MONOLITHIC),1)
25a73439
VS
130__WXLIB_MONO_p = \
131 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
3b20263d
VS
132endif
133ifeq ($(WXUNIV),1)
134__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
135endif
136ifeq ($(WXUNIV),1)
137__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
138endif
139
140
141all: $(OBJS)
142$(OBJS):
143 -if not exist $(OBJS) mkdir $(OBJS)
144
145### Targets: ###
146
147all: $(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
155clean:
156 -if exist $(OBJS)\*.o del $(OBJS)\*.o
157 -if exist $(OBJS)\dialogs.exe del $(OBJS)\dialogs.exe
3b20263d
VS
158
159data:
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