2
0
mirror of https://github.com/vasi/pixz synced 2024-11-03 09:40:24 +00:00

adapt makefile for multiple targets

This commit is contained in:
Dave Vasilevsky 2009-12-27 23:13:32 -05:00
parent 74b6ab2078
commit dbe600a7e7

View File

@ -1,10 +1,12 @@
LDFLAGS = -L/Library/Fink/sl64/lib -llzma -Wall
CFLAGS = -I/Library/Fink/sl64/include -g -O0 -std=c99 -Wall
pixz: pixz.o encode.o block.o
PIXZ_OBJS: pixz.o encode.o block.o
pixz: $(PIXZ_OBJS)
gcc $(LDFLAGS) -o $@ $^
%.o: %.c pixz.h
$(PIXZ_OBJS): %.o: %.c pixz.h
gcc $(CFLAGS) -c -o $@ $<
run: pixz