aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-06-19 19:20:42 +0000
committerDavid Robillard <d@drobilla.net>2009-06-19 19:20:42 +0000
commitb34e4277c0e3b3c2c7431101dc82161a39e1d361 (patch)
tree1aedd75de97aecc2b3b08f0bd6ceb60170a6b0c3 /Makefile
parent27bcb3292bde166a98829a63ff177b6831c46f1f (diff)
downloadresp-b34e4277c0e3b3c2c7431101dc82161a39e1d361.tar.gz
resp-b34e4277c0e3b3c2c7431101dc82161a39e1d361.tar.bz2
resp-b34e4277c0e3b3c2c7431101dc82161a39e1d361.zip
Work towards garbage collection and explicitly managed stack frames.
git-svn-id: http://svn.drobilla.net/resp/tuplr@126 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d2fa881..53770bc 100644
--- a/Makefile
+++ b/Makefile
@@ -4,12 +4,20 @@ LLVM_LDFLAGS=`llvm-config --ldflags --libs core jit native`
CXXFLAGS=-O0 -g -Wall -Wextra -Wno-unused-parameter $(LLVM_CXXFLAGS)
LDFLAGS=$(LLVM_LDFLAGS) -lm
-build/tuplr: build/tuplr.o build/typing.o build/llvm.o build/write.o build/gc.o
+all: builddir build/tuplr
+ mkdir -p build
+
+builddir:
+ mkdir -p build
+
+build/tuplr: build/tuplr.o build/typing.o build/llvm.o build/gclib.so build/write.o build/gc.o
g++ -o $@ $^ $(LDFLAGS)
build/%.o: %.cpp tuplr.hpp
- mkdir -p build
g++ $(CXXFLAGS) -o $@ -c $<
+build/%.so: %.cpp tuplr.hpp
+ g++ -fPIC -dPIC -shared $(CXXFLAGS) -o $@ $<
+
clean:
rm -rf build