2003-03-18 03:55:09 +03:00
|
|
|
# $NetBSD: Makefile.inc,v 1.19 2003/03/18 00:55:09 fvdl Exp $
|
1997-10-22 06:17:11 +04:00
|
|
|
#
|
1997-09-27 03:02:53 +04:00
|
|
|
# Makefile for install
|
|
|
|
|
2001-12-12 03:05:09 +03:00
|
|
|
PROG= sysinst
|
|
|
|
NOMAN= # defined
|
2000-03-25 00:56:04 +03:00
|
|
|
|
2001-12-12 03:05:09 +03:00
|
|
|
.include <bsd.own.mk> # for mk.conf
|
1997-09-27 03:02:53 +04:00
|
|
|
|
2002-04-11 22:14:18 +04:00
|
|
|
DPADD= ${LIBCURSES} ${LIBTERMCAP} ${LIBUTIL}
|
2001-12-12 03:05:09 +03:00
|
|
|
LDADD= -lcurses -ltermcap -lutil
|
|
|
|
LDSTATIC?= -static
|
1997-09-27 03:02:53 +04:00
|
|
|
|
2002-04-26 19:50:21 +04:00
|
|
|
VERDEP= ${NETBSDSRCDIR}/sys/conf/osrelease.sh
|
2001-12-12 03:05:09 +03:00
|
|
|
VER!= sh ${VERDEP}
|
1997-09-27 03:02:53 +04:00
|
|
|
|
2001-12-12 03:05:09 +03:00
|
|
|
CPPFLAGS+= -I. -I${.CURDIR}/../.. -I${.CURDIR} \
|
|
|
|
-DREL=\"${VER}\" -DMACH=\"${MACHINE}\"
|
1997-09-27 03:02:53 +04:00
|
|
|
|
2002-10-17 06:05:35 +04:00
|
|
|
.if defined(SMALLPROG_INET6)
|
|
|
|
CPPFLAGS+=-DINET6
|
|
|
|
.endif
|
|
|
|
|
2002-06-06 13:53:22 +04:00
|
|
|
|
|
|
|
# Host to ftp from. Default:
|
|
|
|
# "ftp.netbsd.org"
|
|
|
|
#
|
2000-03-25 00:56:04 +03:00
|
|
|
.if defined(SYSINST_FTP_HOST)
|
2002-06-06 13:53:22 +04:00
|
|
|
CPPFLAGS+= -DSYSINST_FTP_HOST=\"${SYSINST_FTP_HOST}\"
|
2000-03-25 00:56:04 +03:00
|
|
|
.endif
|
|
|
|
|
2002-06-06 13:53:22 +04:00
|
|
|
# Top-level ftp directory. Default:
|
|
|
|
# "pub/NetBSD/NetBSD-" + VER + "/" + MACH
|
|
|
|
#
|
2000-03-25 00:56:04 +03:00
|
|
|
.if defined(SYSINST_FTP_DIR)
|
2002-06-06 13:53:22 +04:00
|
|
|
CPPFLAGS+= -DSYSINST_FTP_DIR=\"${SYSINST_FTP_DIR}\"
|
2000-03-25 00:56:04 +03:00
|
|
|
.endif
|
|
|
|
|
2002-06-06 13:53:22 +04:00
|
|
|
# Top-level CDROM directory. Default:
|
|
|
|
# "/" + MACH
|
|
|
|
#
|
|
|
|
.if defined(SYSINST_CDROM_DIR)
|
|
|
|
CPPFLAGS+= -DSYSINST_CDROM_DIR=\"${SYSINST_CDROM_DIR}\"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
2001-12-12 03:05:09 +03:00
|
|
|
WARNS= 1
|
1997-09-27 03:02:53 +04:00
|
|
|
|
2001-12-12 03:05:09 +03:00
|
|
|
CLEANFILES= menu_defs.c menu_defs.h menus.def \
|
|
|
|
msg_defs.c msg_defs.h msg.def msgtouch
|
1997-09-27 03:02:53 +04:00
|
|
|
|
2001-12-12 03:05:09 +03:00
|
|
|
SYSINSTLANG?= en
|
1997-09-27 03:02:53 +04:00
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../..
|
|
|
|
|
2001-12-24 03:47:42 +03:00
|
|
|
MENUC?= menuc
|
|
|
|
MSGC?= msgc
|
|
|
|
|
1997-09-27 03:02:53 +04:00
|
|
|
.include <bsd.prog.mk>
|
|
|
|
|
|
|
|
menu_defs.c menu_defs.h: menus.def
|
2003-03-18 03:55:09 +03:00
|
|
|
${MENUC} ${.CURDIR}/menus.def
|
1997-09-27 03:02:53 +04:00
|
|
|
|
|
|
|
msg_defs.c msg_defs.h: msg.def
|
2003-03-18 03:55:09 +03:00
|
|
|
${MSGC} ${.CURDIR}/msg.def
|
1997-09-27 03:02:53 +04:00
|
|
|
|
2000-12-17 12:22:47 +03:00
|
|
|
# Needed to get proper dependency checks on osrelease
|
|
|
|
msgtouch: ${VERDEP}
|
|
|
|
touch ${.TARGET}
|
|
|
|
|
|
|
|
msg.def: msg.mi.${SYSINSTLANG} msg.md.${SYSINSTLANG} msgtouch
|
1997-09-27 03:02:53 +04:00
|
|
|
sed "s/@@VERSION@@/${VER}/" ${.ALLSRC} > ${.TARGET}
|
|
|
|
|
2000-12-17 12:22:47 +03:00
|
|
|
menus.def: menus.mi.${SYSINSTLANG} menus.md.${SYSINSTLANG} msgtouch
|
1997-09-27 03:02:53 +04:00
|
|
|
sed "s/@@VERSION@@/${VER}/" ${.ALLSRC} > ${.TARGET}
|
|
|
|
|
|
|
|
menu_defs.c: msg_defs.h
|
1997-10-22 06:17:11 +04:00
|
|
|
|
2002-04-29 08:40:00 +04:00
|
|
|
XOBJS:=${SRCS:M*.c:R:O:S/$/.o/g}
|
|
|
|
|
|
|
|
${XOBJS}: msg_defs.h menu_defs.h
|