File: Makefile.in

package info (click to toggle)
bandwidthd 2.0.1+cvs20090917-10
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,204 kB
  • sloc: sh: 3,008; ansic: 2,746; php: 1,263; yacc: 216; makefile: 162; lex: 36; sql: 27
file content (63 lines) | stat: -rw-r--r-- 2,028 bytes parent folder | download | duplicates (4)
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
60
61
62
63
exec_prefix = @exec_prefix@
prefix = @prefix@
bindir = @bindir@
sysconfdir = @sysconfdir@
localstatedir = @localstatedir@
extensiondir = @extensiondir@

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

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

# Profiling 
#CFLAGS += -Wall -pg -DPROFILE
#LDFLAGS += -pg

# Debugging
#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