blob: a35ed878c926e4f0a326f97bc966361d3d091dc6 (
plain) (
blame)
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
|
--- logtool/Makefile.orig Sat Jan 13 14:56:21 2001
+++ logtool/Makefile Sat Jan 13 14:58:01 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 $(OBJS)
- $(CC) $(ADDCFLAGS) -o $(PROG) $(OBJS)
+ $(CC) $(ADDCFLAGS) -o $(PROG) $(OBJS) ${LIBS}
@echo "strip $(PROG)"
@strip $(PROG)
|