File: Makefile.in

package info (click to toggle)
bandwidthd 2.0.1%2Bcvs20050208-10
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,048 kB
  • ctags: 378
  • sloc: sh: 3,169; ansic: 1,974; php: 596; yacc: 202; makefile: 131; lex: 33
file content (59 lines) | stat: -rw-r--r-- 1,953 bytes parent folder | download
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
exec_prefix = @exec_prefix@
prefix = @prefix@
bindir = @bindir@
sysconfdir = @sysconfdir@
localstatedir = @localstatedir@

CC = @CC@
LDFLAGS = @LDFLAGS@ @LIBS@
OBS= bandwidthd.o graph.o conf.tab.o conf.l.o

CFLAGS= -Wall @CFLAGS@ @CPPFLAGS@ @DEFS@
NONWALLCFLAGS= @CFLAGS@ @CPPFLAGS@ @DEFS@

# Debugging stuff
#CFLAGS += -Wall -pg -DPROFILE
#CFLAGS += -Wall -g -DDEBUG 

all: bandwidthd

bandwidthd: $(OBS) bandwidthd.h
	$(CC) $(CFLAGS) $(OBS) -o bandwidthd $(LDFLAGS) 

conf.tab.c: conf.y
	@YACC@ -pbdconfig_ -d conf.y
	mv y.tab.c conf.tab.c
	mv y.tab.h conf.tab.h

conf.l.c: conf.l
	@LEX@ -Pbdconfig_ -s -i -t -I conf.l > conf.l.c

clean:
	-rm -f *.o bandwidthd *~ DEADJOE core

# Resets us to distributable code
distclean: conf.tab.c conf.l.c clean
	@echo "Deleting all files that don't come with the distribution"
	-rm -f config.h config.log config.status Makefile

# Deletes all derived files
# You must have flex, bison, and autoconf to build the source if you run this
# Before you can do anything after running this you must run "autoheader; autoconf"
real-clean: distclean
	@echo 'Deleting all derived files, you will need to run'
	@echo 'autoconf && autoheader && ./configure && make'
	@echo 'to build the package'
	-rm -f conf.tab.c conf.tab.h conf.l.c config.h.in configure 

install: all
	@INSTALL@ -d $(DESTDIR)$(bindir)
	@INSTALL@ -d $(DESTDIR)$(sysconfdir)
	@INSTALL@ -d $(DESTDIR)$(localstatedir)/bandwidthd/htdocs
	@INSTALL@ -m755 -s bandwidthd $(DESTDIR)$(bindir)	
	#if [ ! -f $(DESTDIR)$(sysconfdir)/bandwidthd.conf ] ; then @INSTALL@ -m644 etc/bandwidthd.conf $(DESTDIR)$(sysconfdir); fi
	@INSTALL@ -m644 htdocs/legend.gif $(DESTDIR)$(localstatedir)/bandwidthd/htdocs
	@INSTALL@ -m644 htdocs/logo.gif $(DESTDIR)$(localstatedir)/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
	$(CC) $(NONWALLCFLAGS) -c -o conf.l.o conf.l.c