forked from olegl/ki2-biosim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (22 loc) · 763 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
CC=clang++
# ARCH=-arch i386
ARCH=
$DEBUGFLAGS=-g
CFLAGS=-std=c++11 -stdlib=libc++ -c -Wall $(ARCH) $(DEBUGFLAGS)
WXCPPFLAGS=$(shell wx-config --cppflags) -DHAVE_TYPE_TRAITS
LDFLAGS=-stdlib=libc++ $(ARCH) $(DEBUGFLAGS)
WXLDFLAGS=$(shell wx-config std --libs)
SOURCES=Source/biosim_app.cpp Source/biosim_gui.cpp Source/biosim_gui_impl.cpp Source/creature.cpp Source/image.cpp Source/model.cpp Source/sim_area_widget.cpp Source/world_map.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=sim
all: $(SOURCES) $(EXECUTABLE) mat
mv $(EXECUTABLE) Build
clean :
rm -f $(EXECUTABLE) $(OBJECTS)
$(EXECUTABLE): $(OBJECTS)
$(CC) $(LDFLAGS) $(WXLDFLAGS) $(OBJECTS) -o $@
.cpp.o:
$(CC) $(CFLAGS) $(WXCPPFLAGS) $< -o $@
mat :
mkdir -p ./Build
cp -R ./Material/* ./Build