blob: aafa94f29fbfae7c9c254d8374fd5345e84e4608 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
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: lz4c
all: lz4c lz4cs lz4c32 fuzzer fullbench
lz4c: lz4.c lz4hc.c bench.c xxhash.c lz4c.c
$(CC) -O3 $(CFLAGS) $^ -o $@$(EXT)
lz4cs: lz4.c lz4hc.c bench.c xxhash.c lz4c.c
$(CC) -Os $(CFLAGS) $^ -o $@$(EXT)
lz4c32: lz4.c lz4hc.c bench.c xxhash.c lz4c.c
$(CC) -m32 -O3 $(CFLAGS) $^ -o $@$(EXT)
fuzzer : lz4.c lz4hc.c fuzzer.c
$(CC) -O3 $(CFLAGS) $^ -o $@$(EXT)
fullbench : lz4.c lz4hc.c xxhash.c fullbench.c
$(CC) -O3 $(CFLAGS) $^ -o $@$(EXT)
clean:
rm -f core *.o lz4c$(EXT) lz4cs$(EXT) lz4c32$(EXT) fuzzer$(EXT) fullbench$(EXT)
|