Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added Makefile

  • Loading branch information...
commit 549b4bfe525c665bbe93241637e780cf32b8812b 1 parent 6068ce0
@nddrylliog nddrylliog authored committed
Showing with 21 additions and 0 deletions.
  1. +3 −0  .gitignore
  2. +18 −0 Makefile
View
3  .gitignore
@@ -0,0 +1,3 @@
+test
+ooc_tmp/
+*~
View
18 Makefile
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.