]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.fastlz/native/Makefile
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.fastlz / native / Makefile
diff --git a/bundles/org.simantics.fastlz/native/Makefile b/bundles/org.simantics.fastlz/native/Makefile
new file mode 100644 (file)
index 0000000..8a2696a
--- /dev/null
@@ -0,0 +1,20 @@
+OS := $(shell uname)
+
+ifeq ($(OS),Linux)
+  OUTPUT32  = lz4demo32
+  OUTPUT64  = lz4demo64
+else
+  OUTPUT32  = LZ4Demo32.exe
+  OUTPUT64  = LZ4Demo64.exe
+endif
+
+all: lz4demo64 lz4demo32 
+
+lz4demo64: lz4.c lz4.h lz4hc.c lz4hc.h bench.c lz4demo.c
+       gcc      -O3 -I. -std=c99 -Wall -W -Wundef -Wno-implicit-function-declaration lz4hc.c lz4.c bench.c lz4demo.c -o $(OUTPUT64)
+
+lz4demo32: lz4.c lz4.h lz4hc.c lz4hc.h bench.c lz4demo.c
+       gcc -m32 -Os -march=native -I. -std=c99 -Wall -W -Wundef -Wno-implicit-function-declaration lz4hc.c lz4.c bench.c lz4demo.c -o $(OUTPUT32)
+
+clean:
+       rm -f core *.o $(OUTPUT32) $(OUTPUT64)