forked from felixr/hdf5-zopfli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (25 loc) · 725 Bytes
/
Copy pathMakefile
File metadata and controls
31 lines (25 loc) · 725 Bytes
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+=-fPIC -O2
ZOPFLI_SRC=zopfli/blocksplitter.c \
zopfli/cache.c \
zopfli/deflate.c \
zopfli/gzip_container.c \
zopfli/hash.c \
zopfli/katajainen.c \
zopfli/lz77.c \
zopfli/squeeze.c \
zopfli/tree.c \
zopfli/util.c \
zopfli/zlib_container.c
ZOPFLI_OBJ=$(patsubst %.c,%.o,$(ZOPFLI_SRC))
all: example libzopfli_filter.so
example: example.c zopfli_filter.c $(ZOPFLI_OBJ)
$(CC) $(CFLAGS) zopfli_filter.c example.c $(ZOPFLI_SRC) -o example -lhdf5 -lz
libzopfli_filter.so: zopfli_filter.c $(ZOPFLI_OBJ)
$(CC) $(CFLAGS) $(ZOPFLI_OBJ) zopfli_filter.c -shared -o $@
clean:
rm -f $(ZOPFLI_OBJ)
rm -f example
rm -f *.o *.so
rm -f test_zopfli.hdf5
.PHONY: clean