mirror of
https://github.com/lz4/lz4.git
synced 2024-11-24 18:33:50 +08:00
b1e707f772
- Added : a fuzzer tool Thanks to Andrew Mahone, for contribution on both points git-svn-id: https://lz4.googlecode.com/svn/trunk@79 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
26 lines
512 B
Makefile
26 lines
512 B
Makefile
CC=gcc
|
|
CFLAGS=-I. -std=c99 -Wall -W -Wundef -Wno-implicit-function-declaration
|
|
|
|
OS := $(shell uname)
|
|
ifeq ($(OS),Linux)
|
|
EXT =
|
|
else
|
|
EXT =.exe
|
|
endif
|
|
|
|
default: lz4demo
|
|
|
|
all: lz4demo lz4demo32 fuzzer
|
|
|
|
lz4demo: lz4.c lz4hc.c bench.c lz4demo.c
|
|
$(CC) -O3 $(CFLAGS) $^ -o $@$(EXT)
|
|
|
|
lz4demo32: lz4.c lz4hc.c bench.c lz4demo.c
|
|
$(CC) -m32 -Os -march=native $(CFLAGS) $^ -o $@$(EXT)
|
|
|
|
fuzzer : lz4.c fuzzer.c
|
|
$(CC) -O3 $(CFLAGS) $^ -o $@$(EXT)
|
|
|
|
clean:
|
|
rm -f core *.o lz4demo$(EXT) lz4demo32$(EXT) fuzzer$(EXT)
|