]> git.saurik.com Git - wxWidgets.git/blame - contrib/utils/wxrc/makefile.gcc
added IMPLEMENT_APP_CONSOLE
[wxWidgets.git] / contrib / utils / wxrc / makefile.gcc
CommitLineData
cecc483e
VS
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# =========================================================================
6
fd9f42b6 7include ../../../build/msw/config.gcc
cecc483e
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
3f55f5b8
VS
15OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
75a0a7b7
VS
17SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
3f55f5b8
VS
19WXRC_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
20 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
75a0a7b7
VS
21 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
22 $(CXXFLAGS)
3f55f5b8
VS
23WXRC_OBJECTS = \
24 $(OBJS)\wxrc_wxrc.o
cecc483e
VS
25
26### Conditionally set variables: ###
27
28ifeq ($(GCC_VERSION),2.95)
29GCCFLAGS = -fvtable-thunks
30endif
75a0a7b7
VS
31ifeq ($(SHARED),0)
32LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
33endif
34ifeq ($(SHARED),1)
35LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
36endif
cecc483e
VS
37ifeq ($(USE_GUI),0)
38PORTNAME = base
39endif
40ifeq ($(USE_GUI),1)
41PORTNAME = msw
42endif
43ifeq ($(BUILD),debug)
3f55f5b8
VS
44ifeq ($(DEBUG_FLAG),default)
45WXDEBUGFLAG = d
46endif
47endif
48ifeq ($(DEBUG_FLAG),1)
cecc483e
VS
49WXDEBUGFLAG = d
50endif
51ifeq ($(SHARED),1)
52WXDLLFLAG = dll
53endif
54ifeq ($(UNICODE),1)
55WXUNICODEFLAG = u
56endif
57ifeq ($(WXUNIV),1)
58WXUNIVNAME = univ
59endif
60ifeq ($(BUILD),debug)
3f55f5b8
VS
61ifeq ($(DEBUG_INFO),default)
62__DEBUGINFO = -g
63endif
cecc483e
VS
64endif
65ifeq ($(BUILD),release)
3f55f5b8
VS
66ifeq ($(DEBUG_INFO),default)
67__DEBUGINFO =
68endif
69endif
70ifeq ($(DEBUG_INFO),0)
71__DEBUGINFO =
72endif
73ifeq ($(DEBUG_INFO),1)
74__DEBUGINFO = -g
cecc483e
VS
75endif
76ifeq ($(BUILD),debug)
3f55f5b8
VS
77ifeq ($(DEBUG_FLAG),default)
78__DEBUG_DEFINE_p = -D__WXDEBUG__
79endif
80endif
81ifeq ($(DEBUG_FLAG),1)
cecc483e
VS
82__DEBUG_DEFINE_p = -D__WXDEBUG__
83endif
84ifeq ($(SHARED),1)
85__DLLFLAG_p = -DWXUSINGDLL
86endif
3f55f5b8
VS
87ifeq ($(USE_GUI),1)
88__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
89endif
90ifeq ($(USE_GUI),1)
91__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
92endif
93ifeq ($(USE_GUI),1)
94__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
95endif
cecc483e
VS
96ifeq ($(BUILD),debug)
97__OPTIMIZEFLAG_2 = -O0
98endif
99ifeq ($(BUILD),release)
100__OPTIMIZEFLAG_2 = -O2
101endif
102ifeq ($(UNICODE),1)
103__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
104endif
2265a2d5
VS
105ifeq ($(MSLU),1)
106__UNICOWS_LIB_p = -lunicows
107endif
cecc483e
VS
108ifeq ($(MONOLITHIC),0)
109__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
110endif
111ifeq ($(MONOLITHIC),1)
3f55f5b8
VS
112__WXLIB_MONO_p = \
113 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
cecc483e
VS
114endif
115ifeq ($(MONOLITHIC),0)
116__WXLIB_XML_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_xml
117endif
118ifeq ($(WXUNIV),1)
119__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
120endif
121
122
123all: $(OBJS)
124$(OBJS):
125 -if not exist $(OBJS) mkdir $(OBJS)
126
127### Targets: ###
128
129all: $(OBJS)\wxrc.exe
130
1c3a6972 131$(OBJS)\wxrc_wxrc.o: ./wxrc.cpp
cecc483e
VS
132 $(CXX) -c -o $@ $(WXRC_CXXFLAGS) $<
133
134clean:
135 -if exist $(OBJS)\*.o del $(OBJS)\*.o
136 -if exist $(OBJS)\wxrc.exe del $(OBJS)\wxrc.exe
137
3f55f5b8 138$(OBJS)\wxrc.exe: $(WXRC_OBJECTS)
a5b8e8bf 139 $(CXX) -o $@ $(WXRC_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) $(__WXLIB_XML_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
cecc483e
VS
140
141.PHONY: all clean