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:
parent
74b6ab2078
commit
dbe600a7e7
6
Makefile
6
Makefile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user