## Should work on any gnu linux. # requires libcap srcdir = . top_srcdir = . prefix = /usr exec_prefix = ${prefix}/bin mandir = ${prefix}/man ### Change these as needed VERSION= 1.0 CC = gcc LDFLAGS = -s # LDFLAGS = -s -static CFLAGS = -Wall -g -O2 # uncomment if you dont want uid checking CFLAGS+=-DNO_UIDCHECK TARGET=pscap OBJS= pscap.o LIBS = -lcap SHELL = /bin/sh all: $(TARGET) $(TARGET): $(OBJS) $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS) %.o: %.c $(CC) -DVERSION="$(VERSION)" $(CFLAGS) -c $< clean: rm -f *.o a.out example *.*~ $(TARGET) dist: distclean distclean: clean rm -f config.status config.log config.h capnames.inc install: cp $(TARGET) $(exec_prefix)/ uninstall: rm -f $(prefix)/sbin/$(TARGET)