forked from scponly/scponly
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.in
More file actions
70 lines (55 loc) · 1.82 KB
/
Makefile.in
File metadata and controls
70 lines (55 loc) · 1.82 KB
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
# Autoconfed stuff
srcdir = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
mandir = @mandir@
CFLAGS = @CFLAGS@ -I$(srcdir) -I.
INSTALL = @INSTALL@
CC = @CC@
CHROOTED_NAME = @CHROOTED_NAME@
CONFDIR = @sysconfdir@/scponly
DEBUGFILE = ${CONFDIR}/debuglevel
DEFS = @DEFS@ -DDEBUGFILE='"${DEBUGFILE}"'
LN_S = @LN_S@
VPATH = @srcdir@
all: scponly groups
clean:
rm -f *.o scponly *~ debuglevel ${CHROOTED_NAME} groups
love: clean all
scponly: scponly.o helper.o netbsd_getopt_long.o
${CC} ${CFLAGS} ${DEFS} -o $@ scponly.o helper.o netbsd_getopt_long.o
groups: groups.c
${CC} ${CFLAGS} ${DEFS} -o $@ groups.c
scponly.o: scponly.c config.h scponly.h
${CC} ${CFLAGS} ${DEFS} -o $@ -c scponly.c
helper.o: helper.c config.h scponly.h
${CC} ${CFLAGS} ${DEFS} -o $@ -c helper.c
netbsd_getopt_long.o: netbsd_getopt_long.c config.h scponly.h
${CC} ${CFLAGS} ${DEFS} -o $@ -c netbsd_getopt_long.c
install: scponly debuglevel scponly.8
${INSTALL} -d ${DESTDIR}${bindir}
${INSTALL} -d ${DESTDIR}${mandir}/man8
${INSTALL} -d ${DESTDIR}${CONFDIR}
${INSTALL} -o 0 -g 0 scponly ${DESTDIR}${bindir}/scponly
${INSTALL} -o 0 -g 0 -m 0644 scponly.8 ${DESTDIR}${mandir}/man8/scponly.8
${INSTALL} -o 0 -g 0 -m 0644 debuglevel ${DESTDIR}${DEBUGFILE}
if test "x${CHROOTED_NAME}" != "x"; then \
${INSTALL} -d ${DESTDIR}${sbindir}; \
rm -f ${DESTDIR}${sbindir}/${CHROOTED_NAME}; \
cp scponly ${CHROOTED_NAME}; \
${INSTALL} -o 0 -g 0 -m 4755 ${CHROOTED_NAME} ${DESTDIR}${sbindir}/${CHROOTED_NAME}; \
fi
debuglevel:
echo "0" > $@
jail: install
chmod u+x ./setup_chroot.sh
./setup_chroot.sh
distclean: clean
rm -fr autom4te.cache
rm -f config.h config.log config.status Makefile setup_chroot.sh
maintainer-clean: distclean
rm -f configure
ctags:
ctags -R .