Makefile.bsd 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # $NetBSD: Makefile,v 1.39 2003/11/16 14:14:18 lukem Exp $
  2. # @(#)Makefile 8.2 (Berkeley) 4/27/95
  3. .include <bsd.own.mk>
  4. PROG= hack
  5. CPPFLAGS+=-I.
  6. DPSRCS+=hack.onames.h hack.h
  7. SRCS+= alloc.c hack.Decl.c hack.apply.c hack.bones.c hack.c hack.cmd.c \
  8. hack.do.c hack.do_name.c hack.do_wear.c hack.dog.c hack.eat.c \
  9. hack.end.c hack.engrave.c hack.fight.c hack.invent.c hack.ioctl.c \
  10. hack.lev.c hack.main.c hack.makemon.c hack.mhitu.c hack.mklev.c \
  11. hack.mkmaze.c hack.mkobj.c hack.mkshop.c hack.mon.c hack.monst.c \
  12. hack.o_init.c hack.objnam.c hack.options.c hack.pager.c hack.potion.c \
  13. hack.pri.c hack.read.c hack.rip.c hack.rumors.c hack.save.c \
  14. hack.search.c hack.shk.c hack.shknam.c hack.steal.c hack.termcap.c \
  15. hack.timeout.c hack.topl.c hack.track.c hack.trap.c hack.tty.c \
  16. hack.u_init.c hack.unix.c hack.vault.c hack.version.c hack.wield.c \
  17. hack.wizard.c hack.worm.c hack.worn.c hack.zap.c rnd.c
  18. MAN= hack.6
  19. DPADD+= ${LIBTERM} ${LIBCOMPAT}
  20. LDADD+= -ltermcap
  21. HIDEGAME=hidegame
  22. SETGIDGAME=yes
  23. CLEANFILES+=makedefs makedefs.lo
  24. FILES=help hh data
  25. FILESDIR=/var/games/hackdir
  26. CLEANFILES+=hack.onames.h
  27. hack.onames.h: makedefs def.objects.h
  28. ${_MKTARGET_CREATE}
  29. ./makedefs ${.CURDIR}/def.objects.h > hack.onames.h
  30. makedefs: makedefs.lo
  31. ${_MKTARGET_LINK}
  32. ${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC}
  33. hack.h: hack.onames.h
  34. .if !exists(${DESTDIR}${FILESDIR}/perm)
  35. afterinstall: clobber
  36. .endif
  37. clobber:
  38. ${_MKMSG_INSTALL} ${DESTDIR}/var/games/hackdir/perm
  39. ${INSTALL_FILE} -o games -g games -m 660 /dev/null \
  40. ${DESTDIR}/var/games/hackdir/perm
  41. ${_MKMSG_INSTALL} ${DESTDIR}/var/games/hackdir/record
  42. ${INSTALL_FILE} -o games -g games -m 660 /dev/null \
  43. ${DESTDIR}/var/games/hackdir/record
  44. ${_MKMSG_REMOVE} "${DESTDIR}/var/games/hackdir/bones*"
  45. rm -f ${DESTDIR}/var/games/hackdir/bones*
  46. .include <bsd.prog.mk>