]>
Commit | Line | Data |
---|---|---|
0ca4ab85 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 | ||
7 | include ../../../build/config.gcc | |
8 | ||
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
15 | LIBDIRNAME = .\..\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
16 | LIBDIRNAME = \ | |
17 | .\..\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
18 | OBJS = gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
19 | OBJS = \ | |
20 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
21 | SVGTEST_CXXFLAGS = $(CPPFLAGS) $(__DEBUGFLAG) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(LIBDIRNAME) -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) | |
22 | SVGTEST_CXXFLAGS = $(CPPFLAGS) $(__DEBUGFLAG) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \ | |
23 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
24 | $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(LIBDIRNAME) \ | |
25 | -I.\..\..\..\src\tiff -I.\..\..\..\src\jpeg -I.\..\..\..\src\png \ | |
26 | -I.\..\..\..\src\zlib -I.\..\..\..\src\regex -I.\..\..\..\src\expat\lib -I. \ | |
27 | $(__DLLFLAG_p) -I.\..\..\include $(CXXFLAGS) | |
28 | SVGTEST_OBJECTS = $(OBJS)\svgtest_svgtest.o | |
29 | SVGTEST_OBJECTS = \ | |
30 | $(OBJS)\svgtest_svgtest.o | |
31 | ||
32 | ### Conditionally set variables: ### | |
33 | ||
34 | ifeq ($(GCC_VERSION),2.95) | |
35 | GCCFLAGS = -fvtable-thunks | |
36 | endif | |
37 | ifeq ($(USE_GUI),0) | |
38 | PORTNAME = base | |
39 | endif | |
40 | ifeq ($(USE_GUI),1) | |
41 | PORTNAME = msw | |
42 | endif | |
43 | ifeq ($(BUILD),debug) | |
44 | WXDEBUGFLAG = d | |
45 | endif | |
46 | ifeq ($(SHARED),1) | |
47 | WXDLLFLAG = dll | |
48 | endif | |
49 | ifeq ($(UNICODE),1) | |
50 | WXUNICODEFLAG = u | |
51 | endif | |
52 | ifeq ($(WXUNIV),1) | |
53 | WXUNIVNAME = univ | |
54 | endif | |
55 | ifeq ($(BUILD),debug) | |
56 | __DEBUGFLAG = -g | |
57 | endif | |
58 | ifeq ($(BUILD),release) | |
59 | __DEBUGFLAG = | |
60 | endif | |
61 | ifeq ($(BUILD),debug) | |
62 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
63 | endif | |
64 | ifeq ($(SHARED),1) | |
65 | __DLLFLAG_p = -DWXUSINGDLL | |
66 | endif | |
67 | ifeq ($(USE_GUI),1) | |
68 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) | |
69 | endif | |
70 | ifeq ($(USE_GUI),1) | |
71 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) | |
72 | endif | |
73 | ifeq ($(USE_GUI),1) | |
74 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) | |
75 | endif | |
76 | ifeq ($(BUILD),debug) | |
77 | __OPTIMIZEFLAG_2 = -O0 | |
78 | endif | |
79 | ifeq ($(BUILD),release) | |
80 | __OPTIMIZEFLAG_2 = -O2 | |
81 | endif | |
82 | ifeq ($(UNICODE),1) | |
83 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1 | |
84 | endif | |
85 | ifeq ($(MONOLITHIC),0) | |
86 | __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
87 | endif | |
88 | ifeq ($(MONOLITHIC),0) | |
89 | __WXLIB_CORE_p = \ | |
90 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core | |
91 | endif | |
92 | ifeq ($(MONOLITHIC),1) | |
93 | __WXLIB_MONO_p = \ | |
94 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
95 | endif | |
96 | ifeq ($(WXUNIV),1) | |
97 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
98 | endif | |
99 | ||
100 | ||
101 | all: $(OBJS) | |
102 | $(OBJS): | |
103 | -if not exist $(OBJS) mkdir $(OBJS) | |
104 | ||
105 | ### Targets: ### | |
106 | ||
107 | all: $(OBJS)\svgtest.exe | |
108 | ||
109 | $(OBJS)\svgtest_svgtest.o: .\svgtest.cpp | |
110 | $(CXX) -c -o $@ $(SVGTEST_CXXFLAGS) $< | |
111 | ||
112 | clean: | |
113 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
114 | -if exist $(OBJS)\svgtest.exe del $(OBJS)\svgtest.exe | |
115 | ||
116 | $(OBJS)\svgtest.exe: $(SVGTEST_OBJECTS) | |
117 | $(CXX) -o $@ $(SVGTEST_OBJECTS) $(LDFLAGS) $(__DEBUGFLAG) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 | |
118 | ||
119 | .PHONY: all clean |