From e74dd3739a20349005add6507d6ef191ea60b8fb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 6 Mar 2009 19:39:32 +0000 Subject: Replace build.sh with a Makefile. Parallel building FTW. git-svn-id: http://svn.drobilla.net/resp/tuplr@59 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..85bf1ac --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +LLVM_CXXFLAGS=`llvm-config --cppflags core jit native` +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 tuplr_llvm.o + g++ -o $@ $^ $(LDFLAGS) + +%.o: %.cpp + g++ $(CXXFLAGS) -o $@ -c $< + +clean: + rm -f tuplr *.o -- cgit v1.2.1