diff options
author | David Robillard <d@drobilla.net> | 2009-03-30 18:47:32 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-03-30 18:47:32 +0000 |
commit | fdc794f5dc9de5b55fff71939ee4374ea38efa8f (patch) | |
tree | 3d09e93504ec9c11013a306fd6abb3949f01789f /Makefile | |
parent | 454e8908d51d2bb8c83af69f69b2c72e9606967d (diff) | |
download | resp-fdc794f5dc9de5b55fff71939ee4374ea38efa8f.tar.gz resp-fdc794f5dc9de5b55fff71939ee4374ea38efa8f.tar.bz2 resp-fdc794f5dc9de5b55fff71939ee4374ea38efa8f.zip |
Compile things into separate build dir.
Move .tpr files to test dir.
git-svn-id: http://svn.drobilla.net/resp/tuplr@109 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -4,11 +4,12 @@ LLVM_LDFLAGS=`llvm-config --ldflags --libs core jit native` CXXFLAGS=-O0 -g -Wall -Wextra -Wno-unused-parameter $(LLVM_CXXFLAGS) LDFLAGS=$(LLVM_LDFLAGS) -lm -tuplr: tuplr.o typing.o llvm.o write.o +build/tuplr: build/tuplr.o build/typing.o build/llvm.o build/write.o g++ -o $@ $^ $(LDFLAGS) -%.o: %.cpp tuplr.hpp +build/%.o: %.cpp tuplr.hpp + mkdir -p build g++ $(CXXFLAGS) -o $@ -c $< clean: - rm -f tuplr *.o + rm -rf build |