]> git.saurik.com Git - wxWidgets.git/blame - contrib/utils/wxrc/makefile.gcc
makefiles update with OSX fixes
[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
15LIBDIRNAME = \
16 .\..\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19WXRC_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
20 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
21 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(LIBDIRNAME) \
22 -I.\..\..\..\src\tiff -I.\..\..\..\src\jpeg -I.\..\..\..\src\png \
23 -I.\..\..\..\src\zlib -I.\..\..\..\src\regex -I.\..\..\..\src\expat\lib -I. \
24 $(__DLLFLAG_p) $(CXXFLAGS)
25WXRC_OBJECTS = \
26 $(OBJS)\wxrc_wxrc.o
cecc483e
VS
27
28### Conditionally set variables: ###
29
30ifeq ($(GCC_VERSION),2.95)
31GCCFLAGS = -fvtable-thunks
32endif
33ifeq ($(USE_GUI),0)
34PORTNAME = base
35endif
36ifeq ($(USE_GUI),1)
37PORTNAME = msw
38endif
39ifeq ($(BUILD),debug)
3f55f5b8
VS
40ifeq ($(DEBUG_FLAG),default)
41WXDEBUGFLAG = d
42endif
43endif
44ifeq ($(DEBUG_FLAG),1)
cecc483e
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)
3f55f5b8
VS
57ifeq ($(DEBUG_INFO),default)
58__DEBUGINFO = -g
59endif
cecc483e
VS
60endif
61ifeq ($(BUILD),release)
3f55f5b8
VS
62ifeq ($(DEBUG_INFO),default)
63__DEBUGINFO =
64endif
65endif
66ifeq ($(DEBUG_INFO),0)
67__DEBUGINFO =
68endif
69ifeq ($(DEBUG_INFO),1)
70__DEBUGINFO = -g
cecc483e
VS
71endif
72ifeq ($(BUILD),debug)
3f55f5b8
VS
73ifeq ($(DEBUG_FLAG),default)
74__DEBUG_DEFINE_p = -D__WXDEBUG__
75endif
76endif
77ifeq ($(DEBUG_FLAG),1)
cecc483e
VS
78__DEBUG_DEFINE_p = -D__WXDEBUG__
79endif
80ifeq ($(SHARED),1)
81__DLLFLAG_p = -DWXUSINGDLL
82endif
3f55f5b8
VS
83ifeq ($(USE_GUI),1)
84__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
85endif
86ifeq ($(USE_GUI),1)
87__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
88endif
89ifeq ($(USE_GUI),1)
90__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
91endif
cecc483e
VS
92ifeq ($(BUILD),debug)
93__OPTIMIZEFLAG_2 = -O0
94endif
95ifeq ($(BUILD),release)
96__OPTIMIZEFLAG_2 = -O2
97endif
98ifeq ($(UNICODE),1)
99__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
100endif
2265a2d5
VS
101ifeq ($(MSLU),1)
102__UNICOWS_LIB_p = -lunicows
103endif
cecc483e
VS
104ifeq ($(MONOLITHIC),0)
105__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
106endif
107ifeq ($(MONOLITHIC),1)
3f55f5b8
VS
108__WXLIB_MONO_p = \
109 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
cecc483e
VS
110endif
111ifeq ($(MONOLITHIC),0)
112__WXLIB_XML_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_xml
113endif
114ifeq ($(WXUNIV),1)
115__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
116endif
117
118
119all: $(OBJS)
120$(OBJS):
121 -if not exist $(OBJS) mkdir $(OBJS)
122
123### Targets: ###
124
125all: $(OBJS)\wxrc.exe
126
127$(OBJS)\wxrc_wxrc.o: .\wxrc.cpp
128 $(CXX) -c -o $@ $(WXRC_CXXFLAGS) $<
129
130clean:
131 -if exist $(OBJS)\*.o del $(OBJS)\*.o
132 -if exist $(OBJS)\wxrc.exe del $(OBJS)\wxrc.exe
133
3f55f5b8 134$(OBJS)\wxrc.exe: $(WXRC_OBJECTS)
2265a2d5 135 $(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
136
137.PHONY: all clean