blob: a556b5608a69ecbdfbae34a209d72f1d62228c5c (
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
|
--- Makefile.orig Mon Sep 22 20:48:07 2003
+++ Makefile Sun Nov 2 12:28:29 2003
@@ -1,7 +1,7 @@
#Possible optimizations -fomit-frame-pointer -ffast-math
OBS= bandwidthd.o graph.o conf.tab.o conf.l.o
-LIBS= -lgd -lpng -lpcap
-CFLAGS= -O3 -Wall
+LIBS+= -lgd -lpng -lpcap ${LDFLAGS}
+CFLAGS+=
NONWALLCFLAGS= -O3 #-g -DDEBUG
# Debugging stuff
@@ -20,7 +20,7 @@
$(CC) $(CFLAGS) $(OBS) -o bandwidthd $(LIBS)
conf.tab.c: conf.y
- bison -d conf.y
+ yacc -d conf.y
conf.l.c: conf.l
lex -s -i -t -I conf.l > conf.l.c
@@ -34,12 +34,12 @@
rm -f *.o bandwidthd *~ conf.tab.c conf.tab.h conf.l.c DEADJOE
install: all
- mkdir -p /usr/local/bandwidthd/etc
- mkdir -p /usr/local/bandwidthd/htdocs
- cp bandwidthd /usr/local/bandwidthd
- cp etc/bandwidthd.conf /usr/local/bandwidthd/etc/
- cp htdocs/legend.gif /usr/local/bandwidthd/htdocs/
- cp htdocs/logo.gif /usr/local/bandwidthd/htdocs/
+ mkdir -p ${PREFIX}/bandwidthd/etc
+ mkdir -p ${PREFIX}/bandwidthd/htdocs
+ cp bandwidthd ${PREFIX}/bandwidthd
+ cp etc/bandwidthd.conf ${PREFIX}/bandwidthd/etc/bandwidthd.conf-dist
+ cp htdocs/legend.gif ${PREFIX}/bandwidthd/htdocs/
+ cp htdocs/logo.gif ${PREFIX}/bandwidthd/htdocs/
#**** Stuff where -WALL is turned off to reduce the noise in a compile so I can see my own errors *******************
conf.l.o: conf.l.c
|