MFC r1.7 (HEAD):
[dragonfly.git] / usr.sbin / installer / libinstaller / Makefile
blob169528b0412607ccc3efb6ed0749510eac233278
1 # $DragonFly: src/usr.sbin/installer/libinstaller/Makefile,v 1.2.2.1 2008/07/15 02:32:09 swildner Exp $
3 BSDINS_DIR=${.CURDIR}/../../../contrib/bsdinstaller-1.1.6
4 BSDINS_SRC=${BSDINS_DIR}/src
6 CONTRIBDIR= ${BSDINS_SRC}/lib/libinstaller
7 .PATH: ${CONTRIBDIR}
9 PATCHES= functions.c.patch survey.c.patch
11 CFLAGS+= -I${BSDINS_SRC}/lib/libdfui -I${CONTRIBDIR} -I. -g
13 LIB= installer
15 SRCS+= commands.c confed.c diskutil.c functions.c mount.c package.c survey.c uiutil.c
16 SRCS+= aura.h dfui.h
17 SRCS+= ${PATCHES}
19 INCS+= commands.h confed.h diskutil.h functions.h package.h sysids.h uiutil.h
21 # This madness is because the installer sources reference aura includes
22 # as <aura/mem.h> rather than <libaura/mem.h>
23 aura.h:
24 ${LN} -sf ${BSDINS_SRC}/lib/libaura aura
25 /usr/bin/touch aura.h
27 dfui.h:
28 ${LN} -sf ${BSDINS_SRC}/lib/libdfui dfui
29 /usr/bin/touch dfui.h
31 CLEANFILES+= aura.h dfui.h aura dfui
32 INTERNALLIB= true
34 DPADD+= ${.CURDIR}/../libaura/libaura.a ${.CURDIR}/../libdfui/libdfui.a
35 LDADD+= -laura -ldfui
37 .include <bsd.lib.mk>