diff interps/cfunge/Makefile @ 996:859f9b4339e6

<Gregor> tar xf egobot.tar.xz
author HackBot
date Sun, 09 Dec 2012 19:30:08 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/interps/cfunge/Makefile	Sun Dec 09 19:30:08 2012 +0000
@@ -0,0 +1,26 @@
+# Makefile for building cfunge.
+BUILD_OPTIONS = -DUSE_NCURSES:BOOL=FALSE \
+                -DUSE_CLOCK_GETTIME:BOOL=FALSE \
+                -DUSE_64BIT:BOOL=FALSE \
+                -DENABLE_TRACE:BOOL=FALSE \
+                -DENABLE_TURT:BOOL=FALSE \
+                -DCMAKE_BUILD_TYPE=Release
+
+all: cfunge
+
+clean:
+	rm -rf build cfunge
+
+build:
+	mkdir build
+
+build/Makefile: build
+	cd build && cmake $(BUILD_OPTIONS) ../cfunge-src
+
+build/cfunge: build/Makefile
+	cd build && make
+
+cfunge: build/cfunge
+	cp build/cfunge cfunge
+
+.PHONY: clean all