2010-01-13 02:21:39 +00:00
|
|
|
#LDFLAGS = -Llibs -search_paths_first -g -Wall
|
|
|
|
LDFLAGS = -L/Library/Fink/sl64/lib -search_paths_first -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
|
|
|
|
|
2010-01-13 02:30:48 +00:00
|
|
|
PROGS = write read list
|
2009-12-28 05:51:28 +00:00
|
|
|
|
2010-01-13 02:30:48 +00:00
|
|
|
all: $(PROGS)
|
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) $@ $<
|
|
|
|
|
2010-01-13 03:16:25 +00:00
|
|
|
list: list.o common.o
|
2009-12-29 06:48:51 +00:00
|
|
|
$(LD) $@ $^ -llzma
|
2009-12-28 05:51:28 +00:00
|
|
|
|
2010-01-13 03:16:25 +00:00
|
|
|
write: write.o common.o
|
2010-01-13 02:21:39 +00:00
|
|
|
$(LD) $@ $^ -larchive -llzma
|
2009-12-28 05:51:28 +00:00
|
|
|
|
2010-01-13 03:16:25 +00:00
|
|
|
read: read.o common.o
|
|
|
|
$(LD) $@ $^ -llzma
|
2010-01-12 22:00:37 +00:00
|
|
|
|
2009-12-20 03:57:39 +00:00
|
|
|
clean:
|
2010-01-13 02:30:48 +00:00
|
|
|
rm -f *.o $(PROGS)
|
2009-12-20 03:57:39 +00:00
|
|
|
|
2010-01-13 02:30:48 +00:00
|
|
|
.PHONY: all clean
|