--- logtool/Makefile.orig Wed Jan 10 08:27:16 2001 +++ logtool/Makefile Sun Jan 28 22:36:49 2001 @@ -9,8 +9,8 @@ csv.o html.o raw.o logtool.o main.o SRC = logtool.c # These options affect where logtool gets installed -PREFIX = /usr -ETCDIR = /etc/logtool +PREFIX = %%PREFIX%% +ETCDIR = %%PREFIX%%/etc/logtool CC = gcc INSTALL = /usr/bin/install @@ -18,7 +18,8 @@ # INSTALL = /usr/ucb/install # For RedHat (and most other) Linux'es, this should be ideal -CFLAGS= -Wall -O3 -ansi -pedantic -Werror # -DDEBUG -g # uncomment this for debugging stuff's +CFLAGS+= -I/usr/local/include -Wall -ansi -pedantic -Werror # -DDEBUG -g # uncomment this for debugging stuff's +LIBS= -L/usr/local/lib -lgnugetopt # For portability to non-linux'es/non-standard-linux'es, try this # CFLAGS = -Wall @@ -28,7 +29,7 @@ ### The main build stuff logtool: logtool.o $(OBJS) - $(CC) $(ADDCFLAGS) -o $(PROG) $(OBJS) + $(CC) $(ADDCFLAGS) -o $(PROG) $(OBJS) ${LIBS} @echo "strip $(PROG)" @strip $(PROG)