mirror of
https://github.com/vasi/pixz
synced 2024-11-18 15:26:46 +00:00
32 lines
529 B
Makefile
32 lines
529 B
Makefile
LDFLAGS = -L/Library/Fink/sl64/lib -g -Wall
|
|
CFLAGS = -I/Library/Fink/sl64/include -g -O0 -std=c99 -Wall
|
|
|
|
CC = gcc $(CFLAGS) -c -o
|
|
LD = gcc $(LDFLAGS) -o
|
|
|
|
all: pixz pixzlist pixztar
|
|
|
|
|
|
%.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
|
|
$(LD) $@ $^ -larchive
|
|
|
|
|
|
run: pixz
|
|
time ./$< < test.in > test.out
|
|
@md5sum test.in
|
|
@xz -d < test.out | md5sum
|
|
|
|
clean:
|
|
rm -f *.o pixz pixzlist pixztar test.out
|
|
|
|
.PHONY: all run clean
|