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