* updated knights (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / security / scanlogd / Makefile
blobd8bb772cf48610f86f8520d770bbd56213b1c3ac
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../scanlogd/Makefile
5 # Copyright (C) 2004 - 2006 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; version 2 of the License. A copy of the
12 # GNU General Public License can be found in the file COPYING.
13 # --- T2-COPYRIGHT-NOTE-END ---
14 CC = gcc
15 LD = gcc
16 RM = rm -f
17 CFLAGS = -c -Wall -O2 -fomit-frame-pointer
18 LDFLAGS = -s
20 PCAP_H = -I/usr/include/pcap
21 PCAP_L = -lpcap
23 NIDS_H = -I/usr/local/include
24 NIDS_L = -L/usr/local/lib -lnids -lnet -lpcap
26 PROJ = scanlogd
28 OBJS_COMMON = scanlogd.o
29 OBJS = $(OBJS_COMMON) in_linux.o in_nids.o in_pcap.o
31 default: libnids
33 install: default
34 cp -f scanlogd $(ROOT)/$(PREFIX)/sbin/
36 linux: $(OBJS_COMMON) in_linux.o
37 $(LD) $(LDFLAGS) $(OBJS_COMMON) in_linux.o -o scanlogd
39 libnids: $(OBJS_COMMON) in_nids.o
40 $(LD) $(LDFLAGS) $(OBJS_COMMON) in_nids.o $(NIDS_L) -o scanlogd
42 libpcap: $(OBJS_COMMON) in_pcap.o
43 $(LD) $(LDFLAGS) $(OBJS_COMMON) in_pcap.o $(PCAP_L) -o scanlogd
45 in_pcap.o: params.h in.h
46 $(CC) $(CFLAGS) $(PCAP_H) in_pcap.c
48 in_nids.o: params.h in.h
49 $(CC) $(CFLAGS) $(NIDS_H) in_nids.c
51 scanlogd.o: params.h in.h
52 in_linux.o: params.h in.h
54 .c.o:
55 $(CC) $(CFLAGS) $*.c
57 clean:
58 $(RM) $(PROJ) $(OBJS)