]>
Commit | Line | Data |
---|---|---|
250700e4 RD |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
bdc408c4 | 3 | # Bakefile 0.1.1 (http://bakefile.sourceforge.net) |
250700e4 RD |
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 | ||
3f55f5b8 VS |
15 | ANITEST_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) \ | |
18 | -I.\..\..\..\src\tiff -I.\..\..\..\src\jpeg -I.\..\..\..\src\png \ | |
19 | -I.\..\..\..\src\zlib -I.\..\..\..\src\regex -I.\..\..\..\src\expat\lib -I. \ | |
20 | $(__DLLFLAG_p) -I.\..\..\include $(CXXFLAGS) | |
21 | ANITEST_OBJECTS = \ | |
22 | $(OBJS)\anitest_anitest.o | |
23 | LIBDIRNAME = \ | |
24 | .\..\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
25 | OBJS = \ | |
26 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
250700e4 RD |
27 | |
28 | ### Conditionally set variables: ### | |
29 | ||
30 | ifeq ($(GCC_VERSION),2.95) | |
31 | GCCFLAGS = -fvtable-thunks | |
32 | endif | |
33 | ifeq ($(USE_GUI),0) | |
34 | PORTNAME = base | |
35 | endif | |
36 | ifeq ($(USE_GUI),1) | |
37 | PORTNAME = msw | |
38 | endif | |
39 | ifeq ($(BUILD),debug) | |
3f55f5b8 VS |
40 | ifeq ($(DEBUG_FLAG),default) |
41 | WXDEBUGFLAG = d | |
42 | endif | |
43 | endif | |
44 | ifeq ($(DEBUG_FLAG),1) | |
250700e4 RD |
45 | WXDEBUGFLAG = d |
46 | endif | |
47 | ifeq ($(SHARED),1) | |
48 | WXDLLFLAG = dll | |
49 | endif | |
50 | ifeq ($(UNICODE),1) | |
51 | WXUNICODEFLAG = u | |
52 | endif | |
53 | ifeq ($(WXUNIV),1) | |
54 | WXUNIVNAME = univ | |
55 | endif | |
56 | ifeq ($(BUILD),debug) | |
3f55f5b8 VS |
57 | ifeq ($(DEBUG_INFO),default) |
58 | __DEBUGINFO = -g | |
59 | endif | |
250700e4 RD |
60 | endif |
61 | ifeq ($(BUILD),release) | |
3f55f5b8 VS |
62 | ifeq ($(DEBUG_INFO),default) |
63 | __DEBUGINFO = | |
64 | endif | |
65 | endif | |
66 | ifeq ($(DEBUG_INFO),0) | |
67 | __DEBUGINFO = | |
68 | endif | |
69 | ifeq ($(DEBUG_INFO),1) | |
70 | __DEBUGINFO = -g | |
250700e4 RD |
71 | endif |
72 | ifeq ($(BUILD),debug) | |
3f55f5b8 VS |
73 | ifeq ($(DEBUG_FLAG),default) |
74 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
75 | endif | |
76 | endif | |
77 | ifeq ($(DEBUG_FLAG),1) | |
250700e4 RD |
78 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
79 | endif | |
80 | ifeq ($(SHARED),1) | |
81 | __DLLFLAG_p = -DWXUSINGDLL | |
82 | endif | |
3f55f5b8 VS |
83 | ifeq ($(USE_GUI),1) |
84 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) | |
85 | endif | |
86 | ifeq ($(USE_GUI),1) | |
87 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) | |
88 | endif | |
89 | ifeq ($(USE_GUI),1) | |
90 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) | |
91 | endif | |
250700e4 RD |
92 | ifeq ($(BUILD),debug) |
93 | __OPTIMIZEFLAG_2 = -O0 | |
94 | endif | |
95 | ifeq ($(BUILD),release) | |
96 | __OPTIMIZEFLAG_2 = -O2 | |
97 | endif | |
98 | ifeq ($(UNICODE),1) | |
99 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1 | |
100 | endif | |
101 | ifeq ($(MONOLITHIC),0) | |
102 | __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
103 | endif | |
104 | ifeq ($(MONOLITHIC),0) | |
3f55f5b8 VS |
105 | __WXLIB_CORE_p = \ |
106 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core | |
250700e4 RD |
107 | endif |
108 | ifeq ($(MONOLITHIC),1) | |
3f55f5b8 VS |
109 | __WXLIB_MONO_p = \ |
110 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
250700e4 RD |
111 | endif |
112 | ifeq ($(WXUNIV),1) | |
113 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
114 | endif | |
115 | ||
116 | ||
117 | all: $(OBJS) | |
118 | $(OBJS): | |
119 | -if not exist $(OBJS) mkdir $(OBJS) | |
120 | ||
121 | ### Targets: ### | |
122 | ||
123 | all: $(OBJS)\anitest.exe data | |
124 | ||
125 | $(OBJS)\anitest_anitest.o: .\anitest.cpp | |
126 | $(CXX) -c -o $@ $(ANITEST_CXXFLAGS) $< | |
127 | ||
3f55f5b8 VS |
128 | $(OBJS)\anitest.exe: $(ANITEST_OBJECTS) |
129 | $(CXX) -o $@ $(ANITEST_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate $(__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 | |
250700e4 RD |
130 | |
131 | clean: | |
132 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
133 | -if exist $(OBJS)\anitest.exe del $(OBJS)\anitest.exe | |
134 | ||
135 | data: | |
136 | if not exist $(OBJS) mkdir $(OBJS) | |
137 | for %%f in (bttrfly.gif hooked.gif tbttrfly.gif mondrian.ico) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS) | |
138 | ||
139 | .PHONY: all clean |