# angst - Makefile.linux # by Patroklos Argyroudis # # Linux Makefile for angst. # # $Id: Makefile.linux,v 1.6 2001/02/08 13:44:12 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 `libnet-config --libs` -lpcap DEFINE = `libnet-config --defines` -DLINUX #-DDEBUG OBJS = main.o active.o enable.o help.o host.o pcap.o signal.o util.o missing/strlcat.o missing/strlcpy.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 missing/*.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