mirror of https://github.com/vasi/pixz
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.
35 lines
501 B
Makefile
35 lines
501 B
Makefile
LDFLAGS = -L/Library/Fink/sl64/lib -llzma -Wall
|
|
CFLAGS = -I/Library/Fink/sl64/include -g -O0 -std=c99 -Wall
|
|
|
|
CC = gcc $(CFLAGS) -c -o
|
|
LD = gcc $(LDFLAGS) -o
|
|
|
|
|
|
PIXZ_OBJS = pixz.o encode.o block.o
|
|
|
|
all: pixz
|
|
|
|
pixz: $(PIXZ_OBJS)
|
|
$(LD) $@ $^
|
|
|
|
$(PIXZ_OBJS): %.o: %.c pixz.h
|
|
$(CC) $@ $<
|
|
|
|
|
|
pixzlist: pixzlist.o
|
|
$(LD) $@ $^
|
|
|
|
pixzlist.o: pixzlist.c
|
|
$(CC) $@ $<
|
|
|
|
|
|
run: pixz
|
|
time ./$< < test.in > test.out
|
|
@md5sum test.in
|
|
@xz -d < test.out | md5sum
|
|
|
|
clean:
|
|
rm -f *.o pixz test.out
|
|
|
|
.PHONY: all run clean
|