File: Makefile.in

package info (click to toggle)
darkstat 3.0.708-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 708 kB
  • ctags: 592
  • sloc: ansic: 5,326; sh: 322; makefile: 131
file content (102 lines) | stat: -rw-r--r-- 2,919 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# darkstat 3
# copyright (c) 2001-2007 Emil Mikulic.
#
# You may use, modify and redistribute this file under the terms of the
# GNU General Public License version 2. (see COPYING.GPL)

CC = @CC@
CFLAGS = @CFLAGS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
INSTALL = @INSTALL@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@

prefix = @prefix@
exec_prefix = @exec_prefix@
sbindir = @sbindir@
datarootdir = @datarootdir@
mandir = @mandir@

# Optimizations FIXME: dead code.  push into autoconf?
#CPPFLAGS += -D__OPTIMIZE__ -DNDEBUG

SRCS = \
acct.c		\
cap.c		\
conv.c		\
darkstat.c	\
daylog.c	\
db.c		\
decode.c	\
dns.c		\
err.c		\
graph_db.c	\
hosts_db.c	\
hosts_sort.c	\
http.c		\
localip.c	\
ncache.c	\
pidfile.c	\
str.c

OBJS = $(SRCS:%.c=%.o)

all: darkstat

darkstat: $(OBJS)
	@echo Linking $@
	$(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) $(LIBS) -o $@

.c.o:
	$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@

clean:
	rm -f darkstat $(OBJS) c-ify graphjs.h stylecss.h

show-dep:
	@echo $(CPP) $(CPPFLAGS) -MM $(SRCS)

# Statics: (FIXME?)
graphjs.h: static/graph.js c-ify
	./c-ify graph_js <static/graph.js >$@

stylecss.h: static/style.css c-ify
	./c-ify style_css <static/style.css >$@

c-ify: static/c-ify.c
	$(CC) $(CFLAGS) static/c-ify.c -o $@

install: darkstat
	$(INSTALL) -d $(DESTDIR)$(sbindir)
	$(INSTALL) -m 555 darkstat $(DESTDIR)$(sbindir)
	$(INSTALL) -d $(DESTDIR)$(mandir)/man1
	$(INSTALL) -m 444 darkstat.1 $(DESTDIR)$(mandir)/man1

# Automatically generated dependencies
acct.o: acct.c darkstat.h config.h acct.h decode.h conv.h daylog.h \
  graph_db.h err.h hosts_db.h str.h localip.h
cap.o: cap.c darkstat.h config.h cap.h conv.h decode.h hosts_db.h str.h \
  localip.h err.h
conv.o: conv.c darkstat.h config.h conv.h err.h
darkstat.o: darkstat.c darkstat.h config.h acct.h decode.h cap.h conv.h \
  daylog.h graph_db.h db.h dns.h http.h hosts_db.h str.h localip.h \
  ncache.h pidfile.h err.h now.h
daylog.o: daylog.c darkstat.h config.h err.h daylog.h graph_db.h str.h \
  now.h
db.o: db.c darkstat.h config.h err.h hosts_db.h str.h graph_db.h db.h
decode.o: decode.c darkstat.h config.h acct.h decode.h cap.h err.h
dns.o: dns.c darkstat.h config.h conv.h decode.h dns.h err.h hosts_db.h \
  str.h queue.h tree.h
err.o: err.c darkstat.h config.h err.h pidfile.h
graph_db.o: graph_db.c conv.h darkstat.h config.h db.h acct.h decode.h \
  err.h str.h html.h graph_db.h now.h
hosts_db.o: hosts_db.c darkstat.h config.h conv.h decode.h dns.h err.h \
  hosts_db.h str.h db.h html.h ncache.h
hosts_sort.o: hosts_sort.c darkstat.h config.h hosts_db.h str.h err.h
http.o: http.c darkstat.h config.h http.h conv.h hosts_db.h str.h \
  graph_db.h err.h queue.h now.h stylecss.h graphjs.h
localip.o: localip.c darkstat.h config.h conv.h decode.h err.h localip.h
ncache.o: ncache.c darkstat.h config.h conv.h err.h ncache.h tree.h
pidfile.o: pidfile.c darkstat.h config.h err.h str.h pidfile.h
str.o: str.c darkstat.h config.h conv.h err.h str.h