Makefile.bsd 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # $NetBSD: Makefile,v 1.33 2004/02/08 22:14:27 lukem Exp $
  2. # @(#)Makefile 8.1 (Berkeley) 5/31/93
  3. .include <bsd.own.mk>
  4. PROG= phantasia
  5. SRCS= fight.c gamesupport.c interplayer.c io.c main.c misc.c phantglobs.c
  6. DPADD= ${LIBM} ${LIBCURSES}
  7. LDADD= -lm -lcurses
  8. HIDEGAME=hidegame
  9. SETGIDGAME=yes
  10. USETBL=
  11. MAN= phantasia.6
  12. FILESDIR=/var/games/phantasia
  13. FILESOWN=games
  14. FILESGRP=games
  15. FILESMODE=0660
  16. ALLFILES=gold lastdead mess monsters void motd characs scoreboard
  17. FILES=gold lastdead mess monsters void motd
  18. # don't overwrite existing characters or scorefile
  19. .for file in characs scoreboard
  20. .if !exists(${DESTDIR}${FILESDIR}/${file})
  21. FILES+=${file}
  22. .endif
  23. .endfor
  24. CLEANFILES+=map setup setup.lo host_phantglobs.lo ${ALLFILES} files.stamp
  25. realall: ${FILES}
  26. ${FILES}: files.stamp
  27. files.stamp: setup monsters.asc
  28. ${_MKMSG_CREATE} ${FILES}
  29. rm -f ${.TARGET}
  30. ./setup -m ${.CURDIR}/monsters.asc
  31. touch ${.TARGET}
  32. setup: host_phantglobs.lo setup.lo ${LIBM}
  33. ${_MKTARGET_LINK}
  34. ${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC:M*.lo} -lm
  35. BUILDSYMLINKS+= phantglobs.c host_phantglobs.c
  36. HOST_CPPFLAGS+= -I${.CURDIR}
  37. # Make Phantasia map. Change the map commands reflect your installation.
  38. # PLOTDEVICE is used for plotting the map. Change as appropriate.
  39. map: map.c
  40. ${CC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET}
  41. ./map | plot > /dev/tty
  42. .include <bsd.prog.mk>