Improve how various "simple" host tools are built and invoked.
This commit is contained in:
parent
abdaf2f3be
commit
e606e2dcb2
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.72 2003/10/21 10:01:19 lukem Exp $
|
||||
# $NetBSD: Makefile,v 1.73 2003/11/16 14:14:18 lukem Exp $
|
||||
# @(#)Makefile 8.4 (Berkeley) 5/5/95
|
||||
|
||||
.include <bsd.own.mk>
|
||||
@ -40,7 +40,7 @@ CPPFLAGS+=-DSMALL
|
||||
${NETBSDSRCDIR}/usr.bin/printf \
|
||||
${NETBSDSRCDIR}/bin/kill
|
||||
|
||||
CLEANFILES+= mkinit mknodes mksyntax
|
||||
CLEANFILES+= mkinit mkinit.lo mknodes mknodes.lo mksyntax mksyntax.lo
|
||||
CLEANFILES+= ${GENSRCS} ${GENHDRS} y.tab.h
|
||||
CLEANFILES+= trace
|
||||
|
||||
@ -79,13 +79,13 @@ COMPATOBJDIR!= cd ${NETBSDSRCDIR}/tools/compat && ${PRINTOBJDIR}
|
||||
NBCOMPATLIB= -L${COMPATOBJDIR} -lnbcompat
|
||||
.endif
|
||||
|
||||
mkinit: mkinit.c
|
||||
mkinit: mkinit.lo
|
||||
${_MKTARGET_LINK}
|
||||
${HOST_LINK.c} -o mkinit ${.IMPSRC} ${NBCOMPATLIB}
|
||||
${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB}
|
||||
|
||||
mknodes: mknodes.c
|
||||
mknodes: mknodes.lo
|
||||
${_MKTARGET_LINK}
|
||||
${HOST_LINK.c} -o mknodes ${.IMPSRC} ${NBCOMPATLIB}
|
||||
${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB}
|
||||
|
||||
.if (${MACHINE_ARCH} == "powerpc") || \
|
||||
(${MACHINE_CPU} == "arm")
|
||||
@ -94,8 +94,8 @@ TARGET_CHARFLAG?= -DTARGET_CHAR="unsigned char"
|
||||
TARGET_CHARFLAG?= -DTARGET_CHAR="signed char"
|
||||
.endif
|
||||
|
||||
mksyntax: mksyntax.c
|
||||
mksyntax: mksyntax.lo
|
||||
${_MKTARGET_LINK}
|
||||
${HOST_LINK.c} ${TARGET_CHARFLAG} -o mksyntax ${.IMPSRC} ${NBCOMPATLIB}
|
||||
${HOST_LINK.c} ${TARGET_CHARFLAG} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB}
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -1,18 +1,19 @@
|
||||
# $NetBSD: Makefile,v 1.12 2003/10/21 10:01:19 lukem Exp $
|
||||
# $NetBSD: Makefile,v 1.13 2003/11/16 14:14:18 lukem Exp $
|
||||
# @(#)Makefile 8.1 (Berkeley) 6/12/93
|
||||
|
||||
PROG= adventure
|
||||
SRCS= main.c init.c done.c save.c subr.c vocab.c wizard.c io.c data.c crc.c
|
||||
MAN= adventure.6
|
||||
HIDEGAME=hidegame
|
||||
CLEANFILES+=setup data.c
|
||||
CLEANFILES+=setup setup.lo data.c
|
||||
|
||||
data.c: glorkz setup
|
||||
${_MKTARGET_CREATE}
|
||||
./setup ${.CURDIR}/glorkz > data.c
|
||||
|
||||
setup: setup.c hdr.h
|
||||
setup.lo: hdr.h
|
||||
setup: setup.lo
|
||||
${_MKTARGET_LINK}
|
||||
${HOST_LINK.c} -o setup ${.CURDIR}/setup.c
|
||||
${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC}
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.38 2003/10/21 10:01:19 lukem Exp $
|
||||
# $NetBSD: Makefile,v 1.39 2003/11/16 14:14:18 lukem Exp $
|
||||
# @(#)Makefile 8.2 (Berkeley) 4/27/95
|
||||
|
||||
.include <bsd.own.mk>
|
||||
@ -22,7 +22,7 @@ DPADD+= ${LIBTERM} ${LIBCOMPAT}
|
||||
LDADD+= -ltermcap
|
||||
HIDEGAME=hidegame
|
||||
SETGIDGAME=yes
|
||||
CLEANFILES+=makedefs
|
||||
CLEANFILES+=makedefs makedefs.lo
|
||||
FILES=help hh data
|
||||
FILESDIR=/var/games/hackdir
|
||||
|
||||
@ -31,9 +31,9 @@ hack.onames.h: makedefs def.objects.h
|
||||
${_MKTARGET_CREATE}
|
||||
./makedefs ${.CURDIR}/def.objects.h > hack.onames.h
|
||||
|
||||
makedefs: makedefs.c
|
||||
makedefs: makedefs.lo
|
||||
${_MKTARGET_LINK}
|
||||
${HOST_LINK.c} -o makedefs ${.CURDIR}/makedefs.c
|
||||
${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC}
|
||||
|
||||
hack.h: hack.onames.h
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.26 2003/10/21 10:01:19 lukem Exp $
|
||||
# $NetBSD: Makefile,v 1.27 2003/11/16 14:14:18 lukem Exp $
|
||||
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
||||
|
||||
.include <bsd.own.mk>
|
||||
@ -8,7 +8,7 @@ SRCS= monop.c cards.c execute.c getinp.c houses.c jail.c malloc.c misc.c \
|
||||
morg.c print.c prop.c rent.c roll.c spec.c trade.c
|
||||
MAN= monop.6
|
||||
HIDEGAME=hidegame
|
||||
CLEANFILES+=initdeck cards.pck
|
||||
CLEANFILES+=initdeck initdeck.lo cards.pck
|
||||
.if ${MKSHARE} != "no"
|
||||
FILES=cards.pck
|
||||
FILESDIR=/usr/share/games
|
||||
@ -16,9 +16,9 @@ FILESDIR=/usr/share/games
|
||||
|
||||
realall: ${FILES}
|
||||
|
||||
initdeck: initdeck.c
|
||||
initdeck: initdeck.lo
|
||||
${_MKTARGET_LINK}
|
||||
${HOST_LINK.c} -o initdeck ${.CURDIR}/initdeck.c
|
||||
${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC}
|
||||
|
||||
cards.pck: initdeck
|
||||
${_MKTARGET_CREATE}
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.31 2003/10/21 10:01:19 lukem Exp $
|
||||
# $NetBSD: Makefile,v 1.32 2003/11/16 14:14:18 lukem Exp $
|
||||
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
||||
|
||||
.include <bsd.own.mk>
|
||||
@ -30,13 +30,13 @@ CLEANFILES+=map setup setup.lo host_phantglobs.lo ${ALLFILES}
|
||||
|
||||
realall: ${FILES}
|
||||
|
||||
${FILES}: setup
|
||||
${_MKTARGET_CREATE}
|
||||
${FILES}: setup monsters.asc
|
||||
${_MKMSG_CREATE} ${FILES}
|
||||
./setup -m ${.CURDIR}/monsters.asc
|
||||
|
||||
setup: host_phantglobs.lo setup.lo monsters.asc ${LIBM}
|
||||
setup: host_phantglobs.lo setup.lo ${LIBM}
|
||||
${_MKTARGET_LINK}
|
||||
${HOST_LINK.c} host_phantglobs.lo setup.lo -o ${.TARGET} -lm
|
||||
${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC:M*.lo} -lm
|
||||
|
||||
BUILDSYMLINKS+= phantglobs.c host_phantglobs.c
|
||||
HOST_CPPFLAGS+= -I${.CURDIR}
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.4 2002/12/08 20:19:58 thorpej Exp $
|
||||
# $NetBSD: Makefile,v 1.5 2003/11/16 14:14:18 lukem Exp $
|
||||
|
||||
HOSTPROGNAME= ${_TOOL_PREFIX}compile_et
|
||||
HOST_SRCDIR= usr.bin/compile_et
|
||||
@ -9,9 +9,14 @@ HOST_CPPFLAGS= -I${DIST}/heimdal/lib/roken
|
||||
.PATH: ${.CURDIR}/../../lib/libc/string
|
||||
HOST_SRCS+= strlcpy.c strlcat.c
|
||||
|
||||
make-print-version.lo: ${.CURDIR}/../../include/heimdal/version.h
|
||||
make-print-version: make-print-version.lo
|
||||
${_MKTARGET_LINK}
|
||||
${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC}
|
||||
|
||||
DPSRCS= print_version.h
|
||||
print_version.h: make-print-version.c ${.CURDIR}/../../include/heimdal/version.h
|
||||
${HOST_LINK.c} -o make-print-version ${>:M*.c}
|
||||
print_version.h: make-print-version
|
||||
${_MKTARGET_CREATE}
|
||||
./make-print-version print_version.h
|
||||
|
||||
.include "${.CURDIR}/../Makefile.host"
|
||||
|
Loading…
Reference in New Issue
Block a user