]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - adventure/Makefile
Workaround a toolchain issue by renaming the 'setup' host tool to 'mkdata' to make...
[bsdgames-darwin.git] / adventure / Makefile
index c40da9874c1a68011e43f7d56c79bfeb76bd1567..8f3467e0063b9522d1b35c0f61758337f6727af1 100644 (file)
@@ -1,16 +1,19 @@
-#      $NetBSD: Makefile,v 1.7 1998/08/01 23:02:35 hubertf Exp $
+#      $NetBSD: Makefile,v 1.14 2013/02/16 16:30:28 jmcneill 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+=mkdata setup.lo data.c
 
-data.c: glorkz setup
-       ${.OBJDIR}/setup ${.CURDIR}/glorkz > data.c
+data.c: glorkz mkdata
+       ${_MKTARGET_CREATE}
+       ./mkdata ${.CURDIR}/glorkz > data.c
 
-setup: setup.c hdr.h
-       ${HOST_CC} -o setup ${.CURDIR}/setup.c
+setup.lo: hdr.h
+mkdata: setup.lo
+       ${_MKTARGET_LINK}
+       ${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC}
 
 .include <bsd.prog.mk>