# angst - Makefile # by Patroklos Argyroudis # # {Free,Net,Open}BSD Makefile for angst. # # $Id: Makefile,v 1.17 2001/02/08 13:44:06 argp Exp $ #CC = gcc INSTALL_DIR = /usr/bin/install -c -o root -g bin INSTALL_SBIN = /usr/bin/install -c -s -o root -g bin -m 555 INSTALL_MAN = /usr/bin/install -c -o root -g bin -m 444 #CFLAGS = -O2 -Wall INCLUDE = -I/usr/local/include LIBS = -L/usr/local/lib `/usr/local/bin/libnet10-config --libs` -lpcap DEFINE = `/usr/local/bin/libnet10-config --defines --cflags` #-DDEBUG OBJS = main.o active.o enable.o help.o host.o pcap.o signal.o util.o .c.o: $(CC) $(CFLAGS) $(INCLUDE) $(DEFINE) -c $< -o $@ all: angst angst: $(OBJS) $(CC) $(CFLAGS) -o angst $(DEFINE) $(OBJS) $(INCLUDE) $(LIBS) clean: rm -f angst *.o *.core core install: $(INSTALL_DIR) -d /usr/local/sbin rm -f /usr/local/sbin/angst $(INSTALL_SBIN) -m 550 angst /usr/local/sbin $(INSTALL_DIR) -d /usr/local/man/man8 rm -f /usr/local/man/man8/angst.8 $(INSTALL_MAN) angst.8 /usr/local/man/man8 uninstall: rm -f /usr/local/sbin/angst rm -f /usr/local/man/man8/angst.8 # EOF