You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pixz/Makefile

38 lines
720 B
Makefile

15 years ago
#LDFLAGS = -Llibs -search_paths_first -g -Wall
LDFLAGS = -L/Library/Fink/sl64/lib -search_paths_first -g -Wall
15 years ago
CFLAGS = -I/Library/Fink/sl64/include -g -O0 -std=c99 -Wall
15 years ago
CC = gcc $(CFLAGS) -c -o
LD = gcc $(LDFLAGS) -o
all: pixz pixzlist pixztar write read
%.o: %.c pixz.h
$(CC) $@ $<
pixz: pixz.o encode.o block.o util.o
$(LD) $@ $^ -llzma
pixzlist: pixzlist.o
$(LD) $@ $^ -llzma
pixztar: tar.o util.o index.o encode.o block.o
15 years ago
$(LD) $@ $^ -larchive -llzma
write: write.o
15 years ago
$(LD) $@ $^ -larchive -llzma
read: read.o
15 years ago
$(LD) $@ $^ -larchive -llzma
15 years ago
run: pixz
time ./$< < test.in > test.out
@md5sum test.in
@xz -d < test.out | md5sum
15 years ago
clean:
rm -f *.o pixz pixzlist pixztar test.out
15 years ago
.PHONY: all run clean