-
Notifications
You must be signed in to change notification settings - Fork 466
/
Makefile
28 lines (23 loc) · 887 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
ifeq ($(type),release)
WX_COMMAND=`wx-config --cflags --debug=no`
FLAGS=-O2 -DNDEBUG -fPIC -std=c++11
TARGET=precompiled_header_release.h.gch
else
WX_COMMAND=`wx-config --cflags --debug=no`
FLAGS=-g -O0 -fPIC -std=c++11
TARGET=precompiled_header_dbg.h.gch
endif
ifeq ($(os),osx)
OSX_FLAGS=-mmacosx-version-min=10.8 -stdlib=libc++
else
OSX_FLAGS=
endif
all: $(TARGET)
precompiled_header_dbg.h.gch: precompiled_header_dbg.h
@echo -- Building PCH file precompiled_header_dbg.h.gch
$(CXX) $(FLAGS) $(CFLAGS) $(WX_COMMAND) $(OSX_FLAGS) -c precompiled_header_dbg.h -o precompiled_header_dbg.h.gch
precompiled_header_release.h.gch: precompiled_header_release.h
@echo -- Building PCH file precompiled_header_release.h.gch
$(CXX) $(FLAGS) $(CFLAGS) $(WX_COMMAND) $(OSX_FLAGS) -c precompiled_header_release.h -o precompiled_header_release.h.gch
clean:
$(RM) -f $(TARGET)