forked from andor9/tyrant_optimize
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.osx
More file actions
32 lines (25 loc) · 826 Bytes
/
Makefile.osx
File metadata and controls
32 lines (25 loc) · 826 Bytes
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
29
30
31
32
MAIN := tu_optimize
SRCS := $(wildcard *.cpp)
OBJS := $(patsubst %.cpp,obj/%.o,$(SRCS))
INCS := $(wildcard *.h)
DISTVERSION := 2.1.2
DISTNAME := $(MAIN)-$(DISTVERSION)
CXX := g++-4.8
CPPFLAGS := -Wall -Werror -std=gnu++11 -O3 -I/usr/local/include -Wno-deprecated-register
LDFLAGS := -lboost_system-mt -lboost_thread-mt -lboost_filesystem-mt -lboost_regex-mt -L/usr/local/lib -static
all: $(MAIN)
obj/%.o: %.cpp ${INCS}
$(CXX) $(CPPFLAGS) -o $@ -c $<
$(MAIN): $(OBJS)
$(CXX) -o $@ $(OBJS) $(LDFLAGS)
clean:
rm -f $(MAIN) obj/*.o
release: dist/$(DISTNAME).zip
dist/$(DISTNAME).zip: $(MAIN)
rm -rf dist
mkdir -p dist/$(DISTNAME)
cp $(MAIN) dist/$(DISTNAME)
cp -a data dist/$(DISTNAME)
rm -f dist/$(DISTNAME)/data/Makefile
cp -a rapidxml_license.txt dist/$(DISTNAME)
cd dist && zip -r $(DISTNAME).zip $(DISTNAME)