2002-03-07 01:36:58 +03:00
|
|
|
# $NetBSD: Makefile.inc,v 1.13 2002/03/06 22:36:58 lukem 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
|
|
|
|
2001-12-12 03:05:09 +03:00
|
|
|
LDADD= -lcurses -ltermcap -lutil
|
|
|
|
LDSTATIC?= -static
|
1997-09-27 03:02:53 +04:00
|
|
|
|
2002-03-07 01:36:58 +03:00
|
|
|
VERDEP= ${_SRC_TOP_}/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
|
|
|
|
2000-03-25 00:56:04 +03:00
|
|
|
.if defined(SYSINST_FTP_HOST)
|
2001-12-12 03:05:09 +03:00
|
|
|
CPPFLAGS+= -DFTP_HOST="${SYSINST_FTP_HOST}"
|
2000-03-25 00:56:04 +03:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(SYSINST_FTP_DIR)
|
2001-12-12 03:05:09 +03:00
|
|
|
CPPFLAGS+= -DFTP_DIR="${SYSINST_FTP_DIR}"
|
2000-03-25 00:56:04 +03:00
|
|
|
.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
|
|
|
|
${MENUC} menus.def
|
|
|
|
|
|
|
|
msg_defs.c msg_defs.h: msg.def
|
|
|
|
${MSGC} msg.def
|
|
|
|
|
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
|
|
|
|
|
|
|
disks.o install.o main.o net.o upgrade.o util.o: msg_defs.h menu_defs.h
|