2009-12-29 06:48:51 +00:00
|
|
|
LDFLAGS = -L/Library/Fink/sl64/lib -g -Wall
|
2009-12-26 04:08:51 +00:00
|
|
|
CFLAGS = -I/Library/Fink/sl64/include -g -O0 -std=c99 -Wall
|
2009-12-20 03:57:39 +00:00
|
|
|
|
2009-12-28 05:51:28 +00:00
|
|
|
CC = gcc $(CFLAGS) -c -o
|
|
|
|
LD = gcc $(LDFLAGS) -o
|
|
|
|
|
2009-12-29 06:48:51 +00:00
|
|
|
all: pixz pixzlist pixztar
|
2009-12-28 05:51:28 +00:00
|
|
|
|
|
|
|
|
2009-12-29 06:48:51 +00:00
|
|
|
%.o: %.c pixz.h
|
2009-12-28 05:51:28 +00:00
|
|
|
$(CC) $@ $<
|
|
|
|
|
2009-12-29 06:48:51 +00:00
|
|
|
pixz: pixz.o encode.o block.o util.o
|
|
|
|
$(LD) $@ $^ -llzma
|
2009-12-28 05:51:28 +00:00
|
|
|
|
|
|
|
pixzlist: pixzlist.o
|
2009-12-29 06:48:51 +00:00
|
|
|
$(LD) $@ $^ -llzma
|
|
|
|
|
2010-01-09 23:10:42 +00:00
|
|
|
pixztar: tar.o util.o index.o
|
2009-12-29 06:48:51 +00:00
|
|
|
$(LD) $@ $^ -larchive
|
2009-12-28 05:51:28 +00:00
|
|
|
|
|
|
|
|
2009-12-26 04:08:51 +00:00
|
|
|
run: pixz
|
|
|
|
time ./$< < test.in > test.out
|
2009-12-20 04:02:18 +00:00
|
|
|
@md5sum test.in
|
|
|
|
@xz -d < test.out | md5sum
|
2009-12-20 03:57:39 +00:00
|
|
|
|
|
|
|
clean:
|
2009-12-29 06:48:51 +00:00
|
|
|
rm -f *.o pixz pixzlist pixztar test.out
|
2009-12-20 03:57:39 +00:00
|
|
|
|
2009-12-28 05:51:28 +00:00
|
|
|
.PHONY: all run clean
|