File: Makefile.in

package info (click to toggle)
scponly 4.6-1etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 616 kB
  • ctags: 74
  • sloc: sh: 3,318; ansic: 1,007; makefile: 104
file content (65 lines) | stat: -rwxr-xr-x 1,683 bytes parent folder | download | duplicates (3)
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
# 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
	${CC} ${CFLAGS} ${DEFS} -o $@ scponly.o helper.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

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