summaryrefslogtreecommitdiff
path: root/sysutils/logtool/files/patch-aa
blob: 496bb1eb23e26420c6e60fe8d0ebdb7bddbf5596 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
--- logtool/Makefile.orig	Wed Jan 10 04:13:50 2001
+++ logtool/Makefile	Wed Jan 10 04:16:20 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 -O3 -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 $(LIB)
-	$(CC) -o $(PROG) logtool.o $(LIB) $(ADDCFLAGS)
+	$(CC) -o $(PROG) logtool.o $(LIB) $(ADDCFLAGS) ${LIBS}
 	@echo "strip $(PROG)"	
 	@strip $(PROG)
 
@@ -62,7 +63,7 @@
 
 ### How to install this puppy
 install: logtool
-	mkdir -p /etc/logtool
+	mkdir -p ${ETCDIR}
 	$(INSTALL) -c -m 0644 -o root ../conf/logtool.conf $(ETCDIR)/logtool.conf
 	$(INSTALL) -c -m 0644 -o root ../conf/green $(ETCDIR)/green
 	$(INSTALL) -c -m 0644 -o root ../conf/yellow $(ETCDIR)/yellow