]>
Commit | Line | Data |
---|---|---|
3b20263d VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
250700e4 | 3 | # Bakefile 0.1.1.20030719 (http://bakefile.sourceforge.net) |
3b20263d VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
250700e4 | 7 | include ../../build/config.gcc |
3b20263d VS |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
250700e4 | 15 | DISPLAY_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. $(__DLLFLAG_p) $(CXXFLAGS) |
3b20263d VS |
16 | OBJS = gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) |
17 | ||
18 | ### Conditionally set variables: ### | |
19 | ||
250700e4 RD |
20 | ifeq ($(GCC_VERSION),2.95) |
21 | GCCFLAGS = -fvtable-thunks | |
22 | endif | |
3b20263d VS |
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) | |
250700e4 RD |
42 | __DEBUGFLAG = -g |
43 | endif | |
44 | ifeq ($(BUILD),release) | |
45 | __DEBUGFLAG = | |
46 | endif | |
47 | ifeq ($(BUILD),debug) | |
3b20263d VS |
48 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
49 | endif | |
50 | ifeq ($(SHARED),1) | |
51 | __DLLFLAG_p = -DWXUSINGDLL | |
52 | endif | |
250700e4 RD |
53 | ifeq ($(BUILD),debug) |
54 | __OPTIMIZEFLAG_2 = -O0 | |
55 | endif | |
56 | ifeq ($(BUILD),release) | |
57 | __OPTIMIZEFLAG_2 = -O2 | |
58 | endif | |
3b20263d VS |
59 | ifeq ($(UNICODE),1) |
60 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1 | |
61 | endif | |
62 | ifeq ($(MONOLITHIC),0) | |
63 | __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
64 | endif | |
65 | ifeq ($(MONOLITHIC),0) | |
66 | __WXLIB_CORE_p = -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core | |
67 | endif | |
68 | ifeq ($(MONOLITHIC),1) | |
69 | __WXLIB_MONO_p = -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
70 | endif | |
71 | ifeq ($(WXUNIV),1) | |
72 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
73 | endif | |
74 | ||
75 | ||
76 | all: $(OBJS) | |
77 | $(OBJS): | |
78 | -if not exist $(OBJS) mkdir $(OBJS) | |
79 | ||
80 | ### Targets: ### | |
81 | ||
82 | all: $(OBJS)\display.exe | |
83 | ||
84 | $(OBJS)\display_display.o: .\display.cpp | |
85 | $(CXX) -c -o $@ $(DISPLAY_CXXFLAGS) $< | |
86 | ||
87 | clean: | |
88 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
89 | -if exist $(OBJS)\display.exe del $(OBJS)\display.exe | |
90 | ||
91 | $(OBJS)\display.exe: $(OBJS)\display_display.o | |
250700e4 | 92 | $(CXX) -o $@ $(OBJS)\display_display.o $(LDFLAGS) $(__DEBUGFLAG) -mthreads -L.\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) -Wl,--subsystem,windows -mwindows $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) -lwxtiff$(WXDEBUGFLAG) -lwxjpeg$(WXDEBUGFLAG) -lwxpng$(WXDEBUGFLAG) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 |
3b20263d | 93 | |
250700e4 | 94 | .PHONY: all clean |