diff options
author | bde <bde@FreeBSD.org> | 1998-07-07 01:41:58 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-07-07 01:41:58 +0000 |
commit | 78764e3ba621751472f66ff7b872c7f63b29df3a (patch) | |
tree | f84f56918eb52e499bbf3aba416dcad3748523bf /games | |
parent | 1e950b5e647919fadd4dc45a86065a4e5839c6e1 (diff) | |
download | FreeBSD-src-78764e3ba621751472f66ff7b872c7f63b29df3a.zip FreeBSD-src-78764e3ba621751472f66ff7b872c7f63b29df3a.tar.gz |
Added a `build-tools' target for internal tools.
Honor LDFLAGS for building internal tools.
Always build intermediate object files explicitly so that binaries don't
change when they are rebuilt.
Fixed some style bugs.
Diffstat (limited to 'games')
-rw-r--r-- | games/hack/Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/games/hack/Makefile b/games/hack/Makefile index b07c4c6..5f0cf31 100644 --- a/games/hack/Makefile +++ b/games/hack/Makefile @@ -20,11 +20,13 @@ CFLAGS+= -fwritable-strings -I${.CURDIR} -I. HIDEGAME=hidegame CLEANFILES+= hack.onames.h makedefs +build-tools: makedefs + hack.onames.h: makedefs def.objects.h ./makedefs ${.CURDIR}/def.objects.h > hack.onames.h -makedefs: makedefs.c - ${CC} ${CFLAGS} -o ${.TARGET} ${.CURDIR}/${.PREFIX}.c +makedefs: makedefs.o + ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC} beforeinstall: ${INSTALL} -c -o bin -g bin -m ${NOBINMODE} /dev/null \ @@ -34,9 +36,9 @@ beforeinstall: ${INSTALL} -c -o bin -g ${BINGRP} -m 440 ${.CURDIR}/rumors \ ${DESTDIR}/var/games/hackdir/rumors ${INSTALL} -c -o bin -g bin -m ${NOBINMODE} \ - ${.CURDIR}/help ${.CURDIR}/hh ${.CURDIR}/data \ - ${DESTDIR}/var/games/hackdir + ${.CURDIR}/help ${.CURDIR}/hh ${.CURDIR}/data \ + ${DESTDIR}/var/games/hackdir rm -f ${DESTDIR}/var/games/hackdir/bones* \ - ${DESTDIR}/var/games/hackdir/save/* + ${DESTDIR}/var/games/hackdir/save/* .include <bsd.prog.mk> |