# Autoconfed stuff srcdir = . prefix := /usr/local exec_prefix := ${prefix} bindir = ${exec_prefix}/bin sbindir = ${exec_prefix}/sbin mandir = ${prefix}/man CFLAGS = -g -O2 -I$(srcdir) -I. INSTALL = /usr/bin/install -c CC = gcc CHROOTED_NAME = scponlyc CONFDIR := ${prefix}/etc/scponly DEBUGFILE := ${CONFDIR}/debuglevel DEFS := -DHAVE_CONFIG_H -DDEBUGFILE='"${DEBUGFILE}"' LN_S = ln -s 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 $@ $< scponly.o: scponly.c config.h scponly.h ${CC} ${CFLAGS} ${DEFS} -o $@ -c $< helper.o: helper.c config.h scponly.h ${CC} ${CFLAGS} ${DEFS} -o $@ -c $< install: scponly debuglevel scponly.8 ${INSTALL} -d ${bindir} ${INSTALL} -d ${mandir}/man8 ${INSTALL} -d ${CONFDIR} ${INSTALL} -o 0 -g 0 scponly ${bindir}/scponly ${INSTALL} -o 0 -g 0 -m 0644 scponly.8 ${mandir}/man8/scponly.8 ${INSTALL} -o 0 -g 0 -m 0644 debuglevel ${DEBUGFILE} if test "x${CHROOTED_NAME}" != "x"; then \ ${INSTALL} -d ${sbindir}; \ rm -f ${sbindir}/${CHROOTED_NAME}; \ cp scponly ${CHROOTED_NAME}; \ ${INSTALL} -o 0 -g 0 -m 4755 ${CHROOTED_NAME} ${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