浏览代码

added makefile for osx/linux

Nicolas Cannasse 5 年之前
父节点
当前提交
0ae36b4e1e
共有 1 个文件被更改,包括 14 次插入0 次删除
  1. 14 0
      tools/mikktspace/Makefile

+ 14 - 0
tools/mikktspace/Makefile

@@ -0,0 +1,14 @@
+# these are the default paths where hashlink is installed with `make install`
+ifndef HASHLINK
+HASHLINK=/usr/local/include
+endif
+
+ifndef HASHLINK_BIN
+HASHLINK=/usr/local/lib
+endif
+
+all: codegen
+	gcc -I $HASHLINK -I out out/main.c -lhl -L${HASHLINK_BIN}/fmt.hdll -o mikktspace
+
+codegen:
+	haxe mikktspace.hxml -D no-compilation