You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.4 KiB
58 lines
1.4 KiB
# --- T2-COPYRIGHT-NOTE-BEGIN --- |
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
# |
|
# T2 SDE: package/.../scanlogd/Makefile |
|
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|
# |
|
# More information can be found in the files COPYING and README. |
|
# |
|
# This program is free software; you can redistribute it and/or modify |
|
# it under the terms of the GNU General Public License as published by |
|
# the Free Software Foundation; version 2 of the License. A copy of the |
|
# GNU General Public License can be found in the file COPYING. |
|
# --- T2-COPYRIGHT-NOTE-END --- |
|
CC = gcc |
|
LD = gcc |
|
RM = rm -f |
|
CFLAGS = -c -Wall -O2 -fomit-frame-pointer |
|
LDFLAGS = -s |
|
|
|
PCAP_H = -I/usr/include/pcap |
|
PCAP_L = -lpcap |
|
|
|
NIDS_H = -I/usr/local/include |
|
NIDS_L = -L/usr/local/lib -lnids -lnet -lpcap |
|
|
|
PROJ = scanlogd |
|
|
|
OBJS_COMMON = scanlogd.o |
|
OBJS = $(OBJS_COMMON) in_linux.o in_nids.o in_pcap.o |
|
|
|
default: libnids |
|
|
|
install: default |
|
cp -f scanlogd $(ROOT)/$(PREFIX)/sbin/ |
|
|
|
linux: $(OBJS_COMMON) in_linux.o |
|
$(LD) $(LDFLAGS) $(OBJS_COMMON) in_linux.o -o scanlogd |
|
|
|
libnids: $(OBJS_COMMON) in_nids.o |
|
$(LD) $(LDFLAGS) $(OBJS_COMMON) in_nids.o $(NIDS_L) -o scanlogd |
|
|
|
libpcap: $(OBJS_COMMON) in_pcap.o |
|
$(LD) $(LDFLAGS) $(OBJS_COMMON) in_pcap.o $(PCAP_L) -o scanlogd |
|
|
|
in_pcap.o: params.h in.h |
|
$(CC) $(CFLAGS) $(PCAP_H) in_pcap.c |
|
|
|
in_nids.o: params.h in.h |
|
$(CC) $(CFLAGS) $(NIDS_H) in_nids.c |
|
|
|
scanlogd.o: params.h in.h |
|
in_linux.o: params.h in.h |
|
|
|
.c.o: |
|
$(CC) $(CFLAGS) $*.c |
|
|
|
clean: |
|
$(RM) $(PROJ) $(OBJS)
|
|
|