--- tools/Makefile.orig Wed Oct 12 21:22:27 2005 +++ tools/Makefile Sun Dec 11 00:22:30 2005 @@ -1,18 +1,18 @@ # Makefile -CFLAGS=-Wall -LIBS=-ldb -lpthread +CFLAGS=-Wall -I/usr/local/include +LIBS=-L/usr/local/lib -ldb -lpthread TARGET=pam_abl OBJ=log.o config.o rule.o pam_abl.o -INSTDIR=/usr/bin +INSTDIR=%%PREFIX%%/sbin all : $(TARGET) $(TARGET) : $(OBJ) - cc $(LIBS) -o $@ $^ + cc $(LIBS) -o $(TARGET) $(OBJ) install : $(TARGET) - install --mode=755 --strip $(TARGET) $(INSTDIR) + install -m 755 -s $(TARGET) $(INSTDIR) clean : rm -f $(TARGET) $(OBJ)