~mdw
/
userv-utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bugfixes: use -O2, and defend against fgets giving an empty string.
[userv-utils]
/
ipif
/
Makefile
diff --git
a/ipif/Makefile
b/ipif/Makefile
index
c8f6673
..
0d89ae0
100644
(file)
--- a/
ipif/Makefile
+++ b/
ipif/Makefile
@@
-1,18
+1,24
@@
#
#
+OPTIMISE= -O2
CFLAGS= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith \
CFLAGS= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith \
- -Wwrite-strings -g -D_GNU_SOURCE
+ -Wwrite-strings -g
$(OPTIMISE)
-D_GNU_SOURCE
-etc
=
/etc
+etc
dir=
/etc
prefix= /usr/local
prefix= /usr/local
-libipif= $(prefix)/lib/userv-ipif
-etcipif= $(etc)/userv/ipif
+
+libdir= $(prefix)/lib
+libuserv= $(libdir)/userv
+
+etcuserv= $(etcdir)/userv
+services= $(etcuserv)/services.d
TARGETS= service
all: $(TARGETS)
install: all
TARGETS= service
all: $(TARGETS)
install: all
- mkdir -p $(libipif) $(etcipif)
- cp service alloc.pl $(libdir)/.
- touch $(etcipif)/networks
+ mkdir -p $(libuserv) $(services)
+ cp service $(libuserv)/ipif
+ cp ipif $(services)/ipif:new
+ set -e; cd $(services); test -f ipif || mv ipif:new ipif