comparison makefile @ 6:3e756069f215

change Makfile (static link gcc).
author pyon@macmini
date Sat, 16 Apr 2011 09:59:09 +0900
parents e0cf49906039
children c6099901f666
comparison
equal deleted inserted replaced
5:0f566397974e 6:3e756069f215
1 # 1 #
2 # Makefile for wxWidgets Application 2 # Makefile for wxWidgets Application
3 # Last Change: 07-Apr-2011. 3 # Last Change: 16-Apr-2011.
4 # by Takayuki Mutoh 4 # by Takayuki Mutoh
5 # 5 #
6 6
7 # Program Name 7 # Program Name
8 PROGNAME = searcher2 8 PROGNAME = searcher2
49 -lgdi32 49 -lgdi32
50 EXECUTABLE = $(PROGNAME).exe 50 EXECUTABLE = $(PROGNAME).exe
51 51
52 else 52 else
53 # for Apple MacOSX 53 # for Apple MacOSX
54 # 2.9
55 #CPPFLAGS = -I/opt/local/lib/wx-devel/wx/include/osx_carbon-unicode-release-2.9 \
56 # -I/opt/local/include/wx-devel/wx-2.9 \
57 # -I./include \
58 # -D_FILE_OFFSET_BITS=64 \
59 # -DWXUSINGDLL \
60 # -D__WXOSX__ \
61 # -D__WXOSX_CARBON__
62 #LIBS = -framework IOKit \
63 # -framework Carbon \
64 # -framework Cocoa \
65 # -framework System \
66 # -framework QuickTime \
67 # -framework OpenGL \
68 # -framework AudioToolbox \
69 # -lwx_osx_carbonu-2.9 \
70 # -L/opt/local/lib/wx-devel
71 # 2.8 54 # 2.8
72 WXCPPFLAGS = -I/opt/local/lib/wx/include/mac-unicode-release-2.8 \ 55 WXCPPFLAGS = -I/opt/local/lib/wx/include/mac-unicode-release-2.8 \
73 -I/opt/local/include/wx-2.8 \ 56 -I/opt/local/include/wx-2.8 \
74 -D_FILE_OFFSET_BITS=64 \ 57 -D_FILE_OFFSET_BITS=64 \
75 -D_LARGE_FILES \ 58 -D_LARGE_FILES \
100 endif 83 endif
101 84
102 # user include 85 # user include
103 CPPFLAGS = $(WXCPPFLAGS) -I./include -I./img 86 CPPFLAGS = $(WXCPPFLAGS) -I./include -I./img
104 # user lib 87 # user lib
105 LIBS = $(WXLIBS) 88 LIBS = -static-libgcc $(WXLIBS)
106 89
107 90
108 ### Targets: ### 91 ### Targets: ###
109 92
110 all: $(EXECUTABLE) 93 all: $(EXECUTABLE)