-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmakefile
More file actions
29 lines (23 loc) · 1.18 KB
/
makefile
File metadata and controls
29 lines (23 loc) · 1.18 KB
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
CC=g++
OPTIONS=-m32 -arch i386 -W
FRAMEWORKS=-framework Cocoa -framework IOKit -framework Accelerate -framework AudioToolbox -framework AudioUnit -framework CoreAudio -framework CoreVideo -framework CoreServices -framework QTKit -framework OpenGL -framework QuickTime -framework AppKit -framework Cocoa -framework CoreData -framework Foundation
LIBRARIES=-L ${CINDER_PATH}/lib -L ${CINDER_PATH}/lib/macosx
XLINKERS=-XLinker ${CINDER_PATH}/lib/libcinder_d.a
HINCLUDES=-I ${CINDER_PATH}/boost -I $(CINDER_PATH)/include -I /System/Library/Frameworks -I include/
INCLUDES=-l cinder -l cinder_d -l z -l png14 -l pixman-1 -l cairo -l boost_thread -l boost_system -l boost_filesystem -l boost_date_time -l box2d
SRCS=$(wildcard src/*.cpp)
OBJS=$(patsubst src/%.cpp,obj/%.o, $(SRCS))
TOPDIR := $(shell pwd)
BINDIR := $(TOPDIR)/bin
OBJDIR := $(TOPDIR)/obj
all: app
app:$(OBJS)
$(shell [ -d "$(BINDIR)" ] || mkdir -p $(BINDIR))
$(CC) $(OPTIONS) $(LIBRARIES) $(HINCLUDES) $(INCLUDES) $(XLINKERS) $(FRAMEWORKS) $(OBJS) -o bin/app
bin/./app
obj/%.o: src/%.cpp
$(shell [ -d "$(OBJDIR)" ] || mkdir -p $(OBJDIR))
$(CC) $(OPTIONS) $(LIBRARIES) $(HINCLUDES) -c $< -o $@
clean:
rm -rf $(BINDIR)
rm -rf $(OBJDIR)