all: qcat qzip qunzip quicklz.so

# Uncomment these for debugging
#LDFLAGS=-g
#CFLAGS=-g

#Uncomment these for Linux
LDFLAGS=-O3
CFLAGS=-O3
CC=gcc

qcat: qzip.o quicklz.o
	${CC} ${LDFLAGS} -o qcat qzip.o quicklz.o
	strip qcat


qzip: qzip.o quicklz.o
	${CC} ${LDFLAGS} -o qzip qzip.o quicklz.o
	strip qzip


qunzip: qzip.o quicklz.o
	${CC} ${LDFLAGS} -o qunzip qzip.o quicklz.o
	strip qunzip


quicklz.so: quicklz.o distutils
	python distutils build


clean:
	rm -f qcat qzip qunzip quicklz.so *.o
	rm -rf build/
