Permalink
Browse files

Added Makefile

  • Loading branch information...
1 parent 6068ce0 commit 549b4bfe525c665bbe93241637e780cf32b8812b nddrylliog committed with Scott Olson Feb 5, 2010
Showing with 21 additions and 0 deletions.
  1. +3 −0 .gitignore
  2. +18 −0 Makefile
View
@@ -0,0 +1,3 @@
+test
+ooc_tmp/
+*~
View
@@ -0,0 +1,18 @@
+#OOC_LIBS=.
+OOC_FLAGS=-DNDEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS +-O3 +-fomit-frame-pointer +-fPIC -noclean -v -c -driver=sequence
+LLVM_FLAGS=$(shell llvm-config --ldflags --libs core) -O3 -fomit-frame-pointer -fPIC
+OBJECTS=$(shell find ooc_tmp/ -name "*.o")
+
+all: cpp_phase
+
+ooc_phase:
+ OOC_LIBS=. ooc test.ooc ${OOC_FLAGS}
+
+cpp_phase: ooc_phase
+ g++ ${OBJECTS} ${LLVM_FLAGS} -o test /blue/Dev/ooc/libs/linux32/libgc.a
+
+clean:
+ rm -rf ooc_tmp/ test
+
+test:
+ ./test

0 comments on commit 549b4bf

Please sign in to comment.