# Makefile for libinstaller.
# $Id: Makefile,v 1.14 2004/08/13 03:42:19 cpressey Exp $

LIB=	installer

SRCS=	commands.c confed.c diskutil.c functions.c \
	mount.c package.c survey.c uiutil.c

CFLAGS+=-Wall -I/usr/local/include
.ifdef DEBUG
CFLAGS+=-DDEBUG -g
.endif

USELIBDIR=/usr/local/lib
USESHLIBDIR=/usr/local/lib

NOPROFILE=yes
SHLIB_MAJOR=1

installincludes:
	[ -d /usr/local/include/installer ] || mkdir /usr/local/include/installer
	rm -f /usr/local/include/installer/* || echo "no files"
	install -C -o root -g wheel -m 444  commands.h /usr/local/include/installer/
	install -C -o root -g wheel -m 444  confed.h /usr/local/include/installer/
	install -C -o root -g wheel -m 444  diskutil.h /usr/local/include/installer/
	install -C -o root -g wheel -m 444  functions.h /usr/local/include/installer/
	install -C -o root -g wheel -m 444  package.h /usr/local/include/installer/
	install -C -o root -g wheel -m 444  uiutil.h /usr/local/include/installer/

.include <bsd.lib.mk>
