blob: f95abd76ce49cd2c4c6398848d3f9d3ada18d3e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
--- Makefile.orig Tue Dec 19 16:26:47 2000
+++ Makefile Wed Feb 21 00:33:15 2001
@@ -5,10 +5,11 @@
#
#
-CFLAGS = -O4 -m486 -Wall #-funsigned-char -Wshadow -Wmissing-prototypes -Wmissing-declarations -Winline
+CFLAGS = -O4 -Wall -I${PREFIX}/include #-funsigned-char -Wshadow -Wmissing-prototypes -Wmissing-declarations -Winline
PROGS = htdump
LFLAGS = -s #-static
CC = cc
+LDFLAGS += -L${PREFIX}/lib
# Nothing should have to change beneath this line
@@ -22,19 +23,19 @@
htdump: $(OBJS) socket.o
rm -f htdump
- $(CC) $(LFLAGS) -o htdump $(OBJS) socket.o
+ $(CC) $(LFLAGS) -o htdump $(OBJS) socket.o ${LDFLAGS} -lgnugetopt
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 ${LDFLAGS} -lssl -lcrypto -lgnugetopt
-$(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
|