diff options
author | David Robillard <d@drobilla.net> | 2009-06-19 19:20:42 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-06-19 19:20:42 +0000 |
commit | b34e4277c0e3b3c2c7431101dc82161a39e1d361 (patch) | |
tree | 1aedd75de97aecc2b3b08f0bd6ceb60170a6b0c3 /Makefile | |
parent | 27bcb3292bde166a98829a63ff177b6831c46f1f (diff) | |
download | resp-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-- | Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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 |