]> git.saurik.com Git - wxWidgets.git/blob - contrib/samples/xrc/makefile.gcc
1. use three numbers version in win32 DLLs on unstable branch
[wxWidgets.git] / contrib / samples / xrc / makefile.gcc
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
7 include ../../../build/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 OBJS = gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
16 XRCDEMO_CXXFLAGS = $(CPPFLAGS) $(__DEBUGFLAG) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I.\..\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) -I.\..\..\..\src\tiff -I.\..\..\..\src\jpeg -I.\..\..\..\src\png -I.\..\..\..\src\zlib -I.\..\..\..\src\regex -I.\..\..\..\src\expat\lib -I. $(__DLLFLAG_p) -I.\..\..\include $(CXXFLAGS)
17
18 ### Conditionally set variables: ###
19
20 ifeq ($(GCC_VERSION),2.95)
21 GCCFLAGS = -fvtable-thunks
22 endif
23 ifeq ($(USE_GUI),0)
24 PORTNAME = base
25 endif
26 ifeq ($(USE_GUI),1)
27 PORTNAME = msw
28 endif
29 ifeq ($(BUILD),debug)
30 WXDEBUGFLAG = d
31 endif
32 ifeq ($(SHARED),1)
33 WXDLLFLAG = dll
34 endif
35 ifeq ($(UNICODE),1)
36 WXUNICODEFLAG = u
37 endif
38 ifeq ($(WXUNIV),1)
39 WXUNIVNAME = univ
40 endif
41 ifeq ($(BUILD),debug)
42 __DEBUGFLAG = -g
43 endif
44 ifeq ($(BUILD),release)
45 __DEBUGFLAG =
46 endif
47 ifeq ($(BUILD),debug)
48 __DEBUG_DEFINE_p = -D__WXDEBUG__
49 endif
50 ifeq ($(BUILD),debug)
51 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
52 endif
53 ifeq ($(SHARED),1)
54 __DLLFLAG_p = -DWXUSINGDLL
55 endif
56 ifeq ($(SHARED),1)
57 __DLLFLAG_p_1 = --define WXUSINGDLL
58 endif
59 ifeq ($(BUILD),debug)
60 __OPTIMIZEFLAG_2 = -O0
61 endif
62 ifeq ($(BUILD),release)
63 __OPTIMIZEFLAG_2 = -O2
64 endif
65 ifeq ($(UNICODE),1)
66 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
67 endif
68 ifeq ($(UNICODE),1)
69 __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=1
70 endif
71 ifeq ($(MONOLITHIC),0)
72 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
73 endif
74 ifeq ($(MONOLITHIC),0)
75 __WXLIB_CORE_p = -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
76 endif
77 ifeq ($(MONOLITHIC),0)
78 __WXLIB_HTML_p = -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html
79 endif
80 ifeq ($(MONOLITHIC),1)
81 __WXLIB_MONO_p = -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
82 endif
83 ifeq ($(WXUNIV),1)
84 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
85 endif
86 ifeq ($(WXUNIV),1)
87 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
88 endif
89
90
91 all: $(OBJS)
92 $(OBJS):
93 -if not exist $(OBJS) mkdir $(OBJS)
94
95 ### Targets: ###
96
97 all: $(OBJS)\xrcdemo.exe data
98
99 $(OBJS)\xrcdemo_custclas.o: .\custclas.cpp
100 $(CXX) -c -o $@ $(XRCDEMO_CXXFLAGS) $<
101
102 $(OBJS)\xrcdemo_derivdlg.o: .\derivdlg.cpp
103 $(CXX) -c -o $@ $(XRCDEMO_CXXFLAGS) $<
104
105 $(OBJS)\xrcdemo_myframe.o: .\myframe.cpp
106 $(CXX) -c -o $@ $(XRCDEMO_CXXFLAGS) $<
107
108 $(OBJS)\xrcdemo_xrcdemo.o: .\xrcdemo.cpp
109 $(CXX) -c -o $@ $(XRCDEMO_CXXFLAGS) $<
110
111 $(OBJS)\xrcdemo_xrcdemo_rc.o: .\xrcdemo.rc
112 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 ./../../../lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) --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 ./../../include
113
114 clean:
115 -if exist $(OBJS)\*.o del $(OBJS)\*.o
116 -if exist $(OBJS)\xrcdemo.exe del $(OBJS)\xrcdemo.exe
117
118 data:
119 if not exist $(OBJS)/rc mkdir $(OBJS)/rc
120 for %%f in (appicon.ico appicon.xpm artprov.xpm artprov.xrc basicdlg.xpm basicdlg.xrc controls.xpm controls.xrc custclas.xpm custclas.xrc derivdlg.xpm derivdlg.xrc fileopen.gif filesave.gif frame.xrc fuzzy.gif menu.xrc platform.xpm platform.xrc quotes.gif resource.xrc scanning.gif sppicon.ico toolbar.xrc uncenter.xpm uncenter.xrc update.gif variable.xpm variable.xrc) do if not exist $(OBJS)/rc\%%f copy ./rc\%%f $(OBJS)/rc
121
122 $(OBJS)\xrcdemo.exe: $(OBJS)\xrcdemo_xrcdemo.o $(OBJS)\xrcdemo_myframe.o $(OBJS)\xrcdemo_derivdlg.o $(OBJS)\xrcdemo_custclas.o $(OBJS)\xrcdemo_xrcdemo_rc.o
123 $(CXX) -o $@ $(OBJS)\xrcdemo_xrcdemo.o $(OBJS)\xrcdemo_myframe.o $(OBJS)\xrcdemo_derivdlg.o $(OBJS)\xrcdemo_custclas.o $(OBJS)\xrcdemo_xrcdemo_rc.o $(LDFLAGS) $(__DEBUGFLAG) -mthreads -L.\..\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_xrc $(__WXLIB_HTML_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) -lwxtiff$(WXDEBUGFLAG) -lwxjpeg$(WXDEBUGFLAG) -lwxpng$(WXDEBUGFLAG) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
124
125 .PHONY: all clean