Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (15 sloc) 395 Bytes
LIBNET_CONFIG=libnet-config
GCC=gcc
RM=/bin/rm
APP=rst
LDFLAGS=-L/usr/pkg/lib $(LIBNET)
CFLAGS=-I/usr/pkg/include
LIBS=-lpcap -lnet
rst:
$(GCC) $(CFLAGS) $(LDFLAGS) $(LIBS) \
`$(LIBNET_CONFIG) --libs` \
`$(LIBNET_CONFIG) --cflags` \
`$(LIBNET_CONFIG) --defines` \
-g -Wall -o $(APP) $(APP)_priv.c $(APP)_net.c $(APP)_pcap.c $(APP)_tcp.c $(APP)_icmp.c $(APP).c
clean:
-@$(RM) $(APP)