1# 2# $DragonFly: src/usr.sbin/installer/dfuibe_installer/Makefile,v 1.5 2008/08/29 22:51:56 swildner Exp $ 3 4BSDINS_DIR=${.CURDIR}/../../../contrib/bsdinstaller-1.1.6 5BSDINS_SRC=${BSDINS_DIR}/src 6 7CONTRIBDIR=${BSDINS_SRC}/backend/installer 8.PATH: ${CONTRIBDIR} 9 10PROG= dfuibe_installer 11NOMAN= 12SRCS= flow.c fn_diagnostic.c fn_install.c fn_zonetab.c \ 13 fn_configure.c fn_disk.c fn_subpart_hammer.c fn_subpart.c main.c 14 15CFLAGS+= -I${BSDINS_SRC}/lib 16 17CLEANFILES+= aura dfui installer 18 19.if exists(${.OBJDIR}/../libaura) 20LIBAURADIR:= ${.OBJDIR}/../libaura 21.else 22LIBAURADIR!= cd ${.CURDIR}/../libaura; make -V .OBJDIR 23.endif 24LIBAURA:= ${LIBAURADIR}/libaura.a 25 26.if exists(${.OBJDIR}/../libdfui) 27LIBDFUIDIR:= ${.OBJDIR}/../libdfui 28.else 29LIBDFUIDIR!= cd ${.CURDIR}/../libdfui; make -V .OBJDIR 30.endif 31LIBDFUI:= ${LIBDFUIDIR}/libdfui.a 32 33.if exists(${.OBJDIR}/../libinstaller) 34LIBINSTALLERDIR:= ${.OBJDIR}/../libinstaller 35.else 36LIBINSTALLERDIR!= cd ${.CURDIR}/../libinstaller; make -V .OBJDIR 37.endif 38LIBINSTALLER:= ${LIBINSTALLERDIR}/libinstaller.a 39 40DPADD+= ${LIBAURA} ${LIBDFUI} ${LIBINSTALLER} 41LDADD+= -L${LIBAURADIR} -L${LIBDFUIDIR} -L${LIBINSTALLERDIR} -linstaller -ldfui -laura 42 43.include "../../Makefile.inc" 44.include <bsd.prog.mk> 45