2
0
mirror of https://github.com/vasi/pixz synced 2024-11-05 06:00:12 +00:00
pixz/Makefile

32 lines
547 B
Makefile
Raw Normal View History

2010-01-10 06:48:59 +00:00
LDFLAGS = -L./libs -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-10 02:56:01 +00:00
pixztar: tar.o util.o index.o encode.o block.o
2010-01-10 06:48:59 +00:00
$(LD) $@ $^ ./libs/libarchive.a -llzma
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