"Fossies" - the Fresh Open Source Software Archive

Member "scanlogd-2.2.8/Makefile" (10 Mar 2021, 1159 Bytes) of package /linux/misc/scanlogd-2.2.8.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 CC = gcc
    2 LD = $(CC)
    3 RM = rm -f
    4 CFLAGS = -Wall -O2 -fomit-frame-pointer
    5 LDFLAGS = -s
    6 
    7 PCAP_H = -I/usr/include/pcap
    8 PCAP_L = -lpcap
    9 
   10 NIDS_H = -I/usr/local/include
   11 NIDS_L = -L/usr/local/lib -lnids -lnet -lpcap
   12 
   13 PROJ = scanlogd
   14 
   15 OBJS_COMMON = scanlogd.o
   16 OBJS = $(OBJS_COMMON) in_linux.o in_nids.o in_pcap.o
   17 
   18 default:
   19 	@echo "You need to choose a packet capture interface.  Use one of:"
   20 	@echo "	make linux	to use the raw socket interface on Linux"
   21 	@echo "	make libnids	to use libnids (with libpcap and libnet)"
   22 	@echo "	make libpcap	to use libpcap alone"
   23 	@echo "See the man page for a short explanation of the interfaces."
   24 
   25 linux: $(OBJS_COMMON) in_linux.o
   26 	$(LD) $(LDFLAGS) $(OBJS_COMMON) in_linux.o -o scanlogd
   27 
   28 libnids: $(OBJS_COMMON) in_nids.o
   29 	$(LD) $(LDFLAGS) $(OBJS_COMMON) in_nids.o $(NIDS_L) -o scanlogd
   30 
   31 libpcap: $(OBJS_COMMON) in_pcap.o
   32 	$(LD) $(LDFLAGS) $(OBJS_COMMON) in_pcap.o $(PCAP_L) -o scanlogd
   33 
   34 in_pcap.o: params.h in.h
   35 	$(CC) $(CFLAGS) $(PCAP_H) -c in_pcap.c
   36 
   37 in_nids.o: params.h in.h
   38 	$(CC) $(CFLAGS) $(NIDS_H) -c in_nids.c
   39 
   40 scanlogd.o: params.h in.h
   41 in_linux.o: params.h in.h
   42 
   43 .c.o:
   44 	$(CC) $(CFLAGS) -c $*.c
   45 
   46 clean:
   47 	$(RM) $(PROJ) $(OBJS)