Annotation of src/distrib/utils/sysinst/Makefile.inc, Revision 1.22
1.22 ! dsl 1: # $NetBSD: Makefile.inc,v 1.21 2003/05/16 19:25:24 dsl Exp $
1.3 lukem 2: #
1.21 dsl 3: # Makefile for sysinst
1.1 phil 4:
1.11 tv 5: PROG= sysinst
6: NOMAN= # defined
7:
1.21 dsl 8: MSG_MD?= msg.md.${SYSINSTLANG}
9: MENUS_MD?= menus.md.${SYSINSTLANG}
10:
1.7 thorpej 11: .include <bsd.own.mk> # for mk.conf
12:
1.14 mycroft 13: DPADD= ${LIBCURSES} ${LIBTERMCAP} ${LIBUTIL}
1.11 tv 14: LDADD= -lcurses -ltermcap -lutil
15: LDSTATIC?= -static
1.1 phil 16:
1.21 dsl 17: UNIF_AWK= ${.CURDIR}/../../unif.awk
18:
1.15 lukem 19: VERDEP= ${NETBSDSRCDIR}/sys/conf/osrelease.sh
1.11 tv 20: VER!= sh ${VERDEP}
1.1 phil 21:
1.11 tv 22: CPPFLAGS+= -I. -I${.CURDIR}/../.. -I${.CURDIR} \
23: -DREL=\"${VER}\" -DMACH=\"${MACHINE}\"
1.18 lukem 24:
25: .if defined(SMALLPROG_INET6)
26: CPPFLAGS+=-DINET6
27: .endif
1.7 thorpej 28:
1.17 lukem 29:
30: # Host to ftp from. Default:
31: # "ftp.netbsd.org"
32: #
1.7 thorpej 33: .if defined(SYSINST_FTP_HOST)
1.17 lukem 34: CPPFLAGS+= -DSYSINST_FTP_HOST=\"${SYSINST_FTP_HOST}\"
1.7 thorpej 35: .endif
36:
1.17 lukem 37: # Top-level ftp directory. Default:
38: # "pub/NetBSD/NetBSD-" + VER + "/" + MACH
39: #
1.7 thorpej 40: .if defined(SYSINST_FTP_DIR)
1.17 lukem 41: CPPFLAGS+= -DSYSINST_FTP_DIR=\"${SYSINST_FTP_DIR}\"
1.7 thorpej 42: .endif
1.17 lukem 43:
44: # Top-level CDROM directory. Default:
45: # "/" + MACH
46: #
47: .if defined(SYSINST_CDROM_DIR)
48: CPPFLAGS+= -DSYSINST_CDROM_DIR=\"${SYSINST_CDROM_DIR}\"
49: .endif
50:
1.1 phil 51:
1.11 tv 52: WARNS= 1
1.1 phil 53:
1.11 tv 54: CLEANFILES= menu_defs.c menu_defs.h menus.def \
55: msg_defs.c msg_defs.h msg.def msgtouch
1.1 phil 56:
1.11 tv 57: SYSINSTLANG?= en
1.1 phil 58:
59: .PATH: ${.CURDIR}/../..
1.12 atatat 60:
61: MENUC?= menuc
62: MSGC?= msgc
1.1 phil 63:
64: .include <bsd.prog.mk>
65:
66: menu_defs.c menu_defs.h: menus.def
1.20 fvdl 67: ${MENUC} menus.def
1.1 phil 68:
69: msg_defs.c msg_defs.h: msg.def
1.20 fvdl 70: ${MSGC} msg.def
1.1 phil 71:
1.10 jmc 72: # Needed to get proper dependency checks on osrelease
73: msgtouch: ${VERDEP}
74: touch ${.TARGET}
75:
1.21 dsl 76: msg.def: msg.mi.${SYSINSTLANG} ${MSG_MD} msgtouch
77: sed "s/@@VERSION@@/${VER}/" ${.ALLSRC} | \
78: awk -f ${UNIF_AWK} -v defines="${MD_OPTIONS}" > ${.TARGET}
79:
1.22 ! dsl 80: menus.def: menus.mi ${MENUS_MD} msgtouch
1.21 dsl 81: sed "s/@@VERSION@@/${VER}/" ${.ALLSRC} | \
82: awk -f ${UNIF_AWK} -v defines="${MD_OPTIONS}" > ${.TARGET}
1.1 phil 83:
84: menu_defs.c: msg_defs.h
1.3 lukem 85:
1.16 sommerfe 86: XOBJS:=${SRCS:M*.c:R:O:S/$/.o/g}
87:
88: ${XOBJS}: msg_defs.h menu_defs.h
CVSweb <webmaster@jp.NetBSD.org>