forked from andor9/tyrant_optimize
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.osx-static
More file actions
38 lines (29 loc) · 931 Bytes
/
Makefile.osx-static
File metadata and controls
38 lines (29 loc) · 931 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
33
34
35
36
37
38
MAIN := tyrant_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 := /usr/local/lib/libboost_{system,thread,filesystem,regex}-mt.a /usr/local/Cellar/gcc48/4.8.3/lib/gcc/x86_64-apple-darwin10.8.0/4.8.3/libstdc++.a
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)
distclean: clean
rm -rf dist
.PHONY:
clean distclean