# $Csoft: Makefile,v 1.1.1.1 2005/03/25 02:29:22 vedge Exp $

TOP=	.
include ${TOP}/Makefile.config

#SUBDIR=useradd userlist

PROG=	machctld
SRCS=	machctld.c user.c mkpath.c prog.c fgetln.c

CFLAGS+=${AGAR_CFLAGS} ${AGAR_NET_CFLAGS}
LIBS+=	${AGAR_LIBS} ${AGAR_NET_LIBS}

all: all-subdir
clean: clean-subdir
cleandir: cleandir-config cleandir-subdir
install: install-subdir install-includes
deinstall: deinstall-subdir deinstall-includes
depend: depend-subdir
regress: regress-subdir

configure:
	cat configure.in | manuconf > configure
	chmod 755 configure

cleandir-config:
	rm -fr config config.log

package: cleandir
	sh mk/dist.sh

release: cleandir
	sh mk/dist.sh commit

include ${TOP}/mk/csoft.prog.mk

.PHONY: clean cleandir install deinstall depend regress
.PHONY: configure clean-config release fastclean
.PHONY: install-includes deinstall-includes
