mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-03 01:23:49 +00:00
f689ded903
use USE_GETOPT_LONG instead. respect CC, CFLAGS. use getopt_long() instead of getopt_long_only().
34 lines
860 B
Plaintext
34 lines
860 B
Plaintext
--- Makefile.orig Wed Dec 20 00:26:47 2000
|
|
+++ Makefile Sun Jul 6 20:19:19 2003
|
|
@@ -5,10 +5,8 @@
|
|
#
|
|
#
|
|
|
|
-CFLAGS = -O4 -m486 -Wall #-funsigned-char -Wshadow -Wmissing-prototypes -Wmissing-declarations -Winline
|
|
PROGS = htdump
|
|
-LFLAGS = -s #-static
|
|
-CC = cc
|
|
+LFLAGS = -s ${LDFLAGS}
|
|
|
|
# Nothing should have to change beneath this line
|
|
|
|
@@ -26,15 +24,15 @@
|
|
|
|
ssl: $(OBJS) socket-ssl.o
|
|
rm -f htdump
|
|
- $(CC) $(LFLAGS) -o htdump $(OBJS) socket-ssl.o -lssl -lcrypto -L/usr/local/ssl/lib
|
|
+ $(CC) $(LFLAGS) -o htdump $(OBJS) socket-ssl.o -lssl -lcrypto
|
|
|
|
-$(OBJS): %.o: %.c $(HDRS)
|
|
+$(OBJS): $(HDRS)
|
|
|
|
socket.o: socket.c $(HDRS)
|
|
$(CC) $(CFLAGS) -c socket.c
|
|
|
|
socket-ssl.o: socket.c socket-ssl.c $(HDRS)
|
|
- $(CC) $(CFLAGS) -c socket-ssl.c -I /usr/local/ssl/include
|
|
+ $(CC) $(CFLAGS) -c socket-ssl.c
|
|
|
|
install: $(PROGS)
|
|
cp htdump /usr/local/bin
|