2011-09-10 02:17:33 -04:00
|
|
|
CC=cc
|
|
|
|
CFLAGS=-g
|
|
|
|
|
2011-09-10 02:22:37 -04:00
|
|
|
untgz: untgz.o ../../libz.a
|
|
|
|
$(CC) $(CFLAGS) -o untgz untgz.o -L../.. -lz
|
2011-09-10 02:17:33 -04:00
|
|
|
|
|
|
|
untgz.o: untgz.c ../../zlib.h
|
|
|
|
$(CC) $(CFLAGS) -c -I../.. untgz.c
|
|
|
|
|
|
|
|
../../libz.a:
|
2011-09-10 02:22:37 -04:00
|
|
|
cd ../..; ./configure; make
|
2011-09-10 02:17:33 -04:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f untgz untgz.o *~
|