]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.fastlz/native/Makefile
Sync git svn branch with SVN repository r33203.
[simantics/platform.git] / bundles / org.simantics.fastlz / native / Makefile
1 OS := $(shell uname)
2
3 ifeq ($(OS),Linux)
4   OUTPUT32  = lz4demo32
5   OUTPUT64  = lz4demo64
6 else
7   OUTPUT32  = LZ4Demo32.exe
8   OUTPUT64  = LZ4Demo64.exe
9 endif
10
11 all: lz4demo64 lz4demo32 
12
13 lz4demo64: lz4.c lz4.h lz4hc.c lz4hc.h bench.c lz4demo.c
14         gcc      -O3 -I. -std=c99 -Wall -W -Wundef -Wno-implicit-function-declaration lz4hc.c lz4.c bench.c lz4demo.c -o $(OUTPUT64)
15
16 lz4demo32: lz4.c lz4.h lz4hc.c lz4hc.h bench.c lz4demo.c
17         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)
18
19 clean:
20         rm -f core *.o $(OUTPUT32) $(OUTPUT64)