Merge from vendor branch TNFTP:
[dragonfly.git] / usr.sbin / installer / libinstaller / Makefile
1 # $DragonFly: src/usr.sbin/installer/libinstaller/Makefile,v 1.2 2008/03/25 22:55:38 dave Exp $
2
3 BSDINS_DIR=${.CURDIR}/../../../contrib/bsdinstaller-1.1.6
4 BSDINS_SRC=${BSDINS_DIR}/src
5
6 CONTRIBDIR=     ${BSDINS_SRC}/lib/libinstaller
7 .PATH:  ${CONTRIBDIR}
8
9 PATCHES=        functions.c.patch  
10
11 CFLAGS+=        -I${BSDINS_SRC}/lib/libdfui -I${CONTRIBDIR} -I. -g
12
13 LIB=    installer
14
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}
18
19 INCS+=  commands.h confed.h diskutil.h functions.h package.h sysids.h uiutil.h
20
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
26
27 dfui.h:
28         ${LN} -sf ${BSDINS_SRC}/lib/libdfui dfui
29         /usr/bin/touch dfui.h
30
31 CLEANFILES+=    aura.h dfui.h aura dfui
32 INTERNALLIB=            true
33
34 DPADD+= ${.CURDIR}/../libaura/libaura.a  ${.CURDIR}/../libdfui/libdfui.a
35 LDADD+= -laura -ldfui
36
37 .include <bsd.lib.mk>
38