blob: de40593ddb8eb24524d2e2f72b3d69ab45f2bbb9 (
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
|
CC = gcc
CCOPT =
DEFS =
NBASEDIR=../../nbase
NSOCKLIB=../src/libnsock.a
NBASELIB=$(NBASEDIR)/libnbase.a
OPENSSLLIB=-lssl -lpcap -lcrypto
INCLS = -I../include -I$(NBASEDIR)
CFLAGS = -I/usr/local/include -Wall -g $(CCOPT) $(DEFS) $(INCLS)
LDFLAGS =
PCAPBASEDIR=../../libpcap
PCAPLIB=$(PCAPBASEDIR)/libpcap.a
RM = rm -f
TARGETS = nsock_test_timers nsock_telnet
all: $(TARGETS)
nsock_telnet: nsock_telnet.o $(NSOCKLIB)
$(CC) -o $@ $(CFLAGS) nsock_telnet.o $(NSOCKLIB) $(NBASELIB) $(OPENSSLLIB)
nsock_test_timers: nsock_test_timers.o $(NSOCKLIB)
$(CC) -o $@ $(CFLAGS) nsock_test_timers.o $(NSOCKLIB) $(NBASELIB) $(OPENSSLLIB)
nsock_pcap: nsock_pcap.o $(NSOCKLIB) $(PCAPLIB)
$(CC) -o $@ $(CFLAGS) nsock_pcap.o $(NSOCKLIB) $(NBASELIB) $(OPENSSLLIB) $(PCAPLIB)
clean:
$(RM) *.o $(TARGETS)
|