2012-03-09 21:46:59 +00:00
|
|
|
OS := $(shell uname)
|
|
|
|
|
|
|
|
ifeq ($(OS),Linux)
|
|
|
|
OUTPUT32 = lz4demo32
|
2012-07-18 19:46:57 +00:00
|
|
|
OUTPUT = lz4demo
|
2012-03-09 21:46:59 +00:00
|
|
|
else
|
|
|
|
OUTPUT32 = LZ4Demo32.exe
|
2012-07-18 19:46:57 +00:00
|
|
|
OUTPUT = LZ4Demo.exe
|
2012-03-09 21:46:59 +00:00
|
|
|
endif
|
|
|
|
|
2012-07-24 17:12:23 +00:00
|
|
|
default: lz4demo
|
|
|
|
|
|
|
|
all: lz4demo lz4demo32
|
2011-05-25 22:25:57 +00:00
|
|
|
|
2012-07-18 19:46:57 +00:00
|
|
|
lz4demo: 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 $(OUTPUT)
|
2011-05-25 22:25:57 +00:00
|
|
|
|
2012-05-13 17:59:10 +00:00
|
|
|
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)
|
2011-05-25 22:25:57 +00:00
|
|
|
|
|
|
|
clean:
|
2012-07-18 19:46:57 +00:00
|
|
|
rm -f core *.o $(OUTPUT32) $(OUTPUT)
|