1 # vim:set ts=8 sw=8 sts=8 noet:
4 # copyright (c) 2001-2016 Emil Mikulic.
6 # You may use, modify and redistribute this file under the terms of the
7 # GNU General Public License version 2. (see COPYING.GPL)
18 HOSTCFLAGS ?
= $(CFLAGS
)
21 exec_prefix = @
exec_prefix@
23 datarootdir
= @datarootdir@
49 OBJS
= $(SRCS
:%.c
=%.o
)
60 $(AM_V_at
)$(CC
) $(CFLAGS
) $(OBJS
) $(LDFLAGS
) $(LIBS
) -o
$@
64 $(AM_V_at
)$(CC
) $(CPPFLAGS
) $(CFLAGS
) -c
$< -o
$@
72 depend
: config.status
$(STATICHS
)
73 cp Makefile.in Makefile.in.old
74 sed
'/^# Automatically generated dependencies$$/,$$d' \
75 <Makefile.in.old
>Makefile.in
76 echo
"# Automatically generated dependencies" >>Makefile.in
77 $(CPP
) $(CPPFLAGS
) -MM
$(SRCS
) >>Makefile.in
81 favicon.h
: static
/favicon.png
82 (echo
-n
"static const "; cd static
&& xxd
-i favicon.png | grep
-v len
) >$@
84 graphjs.h
: static
/graph.js c-ify
86 $(AM_V_at
).
/c-ify graph_js
<static
/graph.js
>$@
88 stylecss.h
: static
/style.css c-ify
90 $(AM_V_at
).
/c-ify style_css
<static
/style.css
>$@
94 $(AM_V_at
)$(HOSTCC
) $(HOSTCFLAGS
) static
/c-ify.c
-o
$@
97 $(INSTALL
) -d
$(DESTDIR
)$(sbindir
)
98 $(INSTALL
) -m
555 darkstat
$(DESTDIR
)$(sbindir
)
99 $(INSTALL
) -d
$(DESTDIR
)$(mandir)/man8
100 $(INSTALL
) -m
444 darkstat
.8 $(DESTDIR
)$(mandir)/man8
102 .PHONY
: all install clean depend
105 AM_DEFAULT_VERBOSITY
= @AM_DEFAULT_VERBOSITY@
106 AM_V_CC
= $(am__v_CC_
$(V
))
107 am__v_CC_
= $(am__v_CC_
$(AM_DEFAULT_VERBOSITY
))
108 am__v_CC_0
= @echo
" CC " $@
;
109 AM_V_LINK
= $(am__v_LINK_
$(V
))
110 am__v_LINK_
= $(am__v_LINK_
$(AM_DEFAULT_VERBOSITY
))
111 am__v_LINK_0
= @echo
" LINK " $@
;
112 AM_V_HOSTCC
= $(am__v_HOSTCC_
$(V
))
113 am__v_HOSTCC_
= $(am__v_HOSTCC_
$(AM_DEFAULT_VERBOSITY
))
114 am__v_HOSTCC_0
= @echo
" HOSTCC" $@
;
115 AM_V_CIFY
= $(am__v_CIFY_
$(V
))
116 am__v_CIFY_
= $(am__v_CIFY_
$(AM_DEFAULT_VERBOSITY
))
117 am__v_CIFY_0
= @echo
" C-IFY " $@
;
118 AM_V_at
= $(am__v_at_
$(V
))
119 am__v_at_
= $(am__v_at_
$(AM_DEFAULT_VERBOSITY
))
122 # Automatically generated dependencies
123 acct.o
: acct.c acct.h decode.h addr.h conv.h daylog.h graph_db.h err.h \
124 cdefs.h hosts_db.h localip.h now.h opt.h
125 addr.o
: addr.c addr.h
126 bsd.o
: bsd.c bsd.h config.h cdefs.h
127 cap.o
: cap.c acct.h cdefs.h cap.h config.h conv.h decode.h addr.h err.h \
128 hosts_db.h localip.h now.h opt.h queue.h str.h
129 conv.o
: conv.c conv.h err.h cdefs.h
130 darkstat.o
: darkstat.c acct.h cap.h cdefs.h config.h conv.h daylog.h \
131 graph_db.h db.h dns.h err.h hosts_db.h addr.h http.h localip.h ncache.h \
132 now.h pidfile.h str.h
133 daylog.o
: daylog.c cdefs.h err.h daylog.h graph_db.h str.h now.h
134 db.o
: db.c err.h cdefs.h hosts_db.h addr.h graph_db.h db.h
135 decode.o
: decode.c cdefs.h decode.h addr.h err.h opt.h
136 dns.o
: dns.c cdefs.h cap.h conv.h decode.h addr.h dns.h err.h hosts_db.h \
137 queue.h str.h tree.h bsd.h config.h
138 err.o
: err.c cdefs.h err.h opt.h pidfile.h bsd.h config.h
139 graph_db.o
: graph_db.c cap.h conv.h db.h acct.h err.h cdefs.h str.h \
140 html.h graph_db.h now.h opt.h
141 hosts_db.o
: hosts_db.c cdefs.h conv.h decode.h addr.h dns.h err.h \
142 hosts_db.h db.h html.h ncache.h now.h opt.h str.h
143 hosts_sort.o
: hosts_sort.c cdefs.h err.h hosts_db.h addr.h
144 html.o
: html.c config.h str.h cdefs.h html.h opt.h
145 http.o
: http.c cdefs.h config.h conv.h err.h graph_db.h hosts_db.h addr.h \
146 http.h now.h queue.h str.h stylecss.h graphjs.h favicon.h
147 localip.o
: localip.c addr.h bsd.h config.h conv.h err.h cdefs.h localip.h \
149 ncache.o
: ncache.c conv.h err.h cdefs.h ncache.h tree.h bsd.h config.h
150 now.o
: now.c err.h cdefs.h now.h str.h
151 pidfile.o
: pidfile.c err.h cdefs.h str.h pidfile.h
152 str.o
: str.c conv.h err.h cdefs.h str.h