freebsd-ports/archivers/hffzip/files/patch-Makefile
Sergey A. Osokin aa9107df8d New port hffzip: small file compressor based on Huffman coding
Submitted by:	Kirill Ponomarew <ponomarew@oberon.net>
PR:		53188
Approved by:	fjoe (implicit)
2003-06-11 10:57:35 +00:00

27 lines
595 B
Text

--- Makefile.orig Wed Jun 11 07:59:00 2003
+++ Makefile Wed Jun 11 08:00:47 2003
@@ -1,16 +1,19 @@
-opzioni=-O3
+CFLAGS ?= ${CFLAGS}
+CC ?= ${CC}
+
+all: hffzip
hffzip: main.o albero.o bitIO.o
- gcc $(opzioni) -o hffzip main.o albero.o bitIO.o
+ $(CC) $(CFLAGS) -o hffzip main.o albero.o bitIO.o
bitIO.o: bitIO.c
- gcc $(opzioni) -c bitIO.c
+ $(CC) $(CFLAGS) -c bitIO.c
albero.o: albero.c bitIO.h albero.h
- gcc $(opzioni) -c albero.c
+ $(CC) $(CFLAGS) -c albero.c
main.o: main.c albero.h bitIO.h
- gcc $(opzioni) -c main.c
+ $(CC) $(CFLAGS) -c main.c
clean:
rm -f *.o hffzip