home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / games / volume15 / robot_hunt / part04 / Makefile < prev    next >
Makefile  |  1993-01-27  |  3KB  |  100 lines

  1. #
  2. # Copyright (c) 1985 Regents of the University of California.
  3. # All rights reserved.
  4. #
  5. # Redistribution and use in source and binary forms are permitted
  6. # provided that the above copyright notice and this paragraph are
  7. # duplicated in all such forms and that any documentation,
  8. # advertising materials, and other materials related to such
  9. # distribution and use acknowledge that the software was developed
  10. # by the University of California, Berkeley.  The name of the
  11. # University may not be used to endorse or promote products derived
  12. # from this software without specific prior written permission.
  13. # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  14. # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  15. # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  16. #
  17. #    @(#)Makefile    5.7 (Berkeley) 9/23/88
  18. #
  19. #  Hunt
  20. #  Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold
  21. #  San Francisco, California
  22. #
  23.  
  24. HDR=    hunt.h
  25. DSRC=    answer.c driver.c draw.c execute.c expl.c makemaze.c shots.c \
  26.     terminal.c extern.c pathname.c
  27. DOBJ=    answer.o driver.o draw.o execute.o expl.o makemaze.o shots.o \
  28.     terminal.o extern.o
  29. PSRC=    hunt.c connect.c playit.c pathname.c robot.c
  30. POBJ=    hunt.o connect.o playit.o robot.o
  31. MAN=    hunt.0
  32.  
  33. # Flags are:
  34. #    DEBUG    Don't trust everything in the code
  35. #    INTERNET    Use the Internet domain IPC instead of UNIX domain
  36. #    BROADCAST    Use internet broadcasting code when looking for driver
  37. #    OLDIPC        Use 4.1a internet system calls (must also define
  38. #            INTERNET but not BROADCAST)
  39. #    RANDOM    Include doors which disperse shots randomly
  40. #    REFLECT    Include diagonal walls that reflect shots
  41. #    MONITOR    Include code for watching the game from the sidelines
  42. #    OOZE    Include slime shots
  43. #    FLY    Make people fly when walls regenerate under them
  44. #    START_FLYING    Players enter flying (FLY must also be defined)
  45. #    VOLCANO    Include occasional large slime explosions
  46. #    ROBOT    Allow "-r" to turn on a hunt robot.
  47. #    DAEMON    Run as a daemon.  ROBOT must be on, too.
  48. #
  49. # NOTE: if you change the domain (INTERNET vs UNIX) then "make newdomain"
  50. #
  51. DEFS=    -DBROADCAST -DRANDOM -DREFLECT -DMONITOR -DINTERNET \
  52.     -DOOZE -DFLY -DROBOT -DDAEMON
  53. CFLAGS=    -g ${DEFS}
  54.  
  55. all: hunt hunt.driver
  56.  
  57. hunt: ${POBJ} pathname.o
  58.     ${CC} -o $@ ${POBJ} pathname.o -lcurses -ltermlib
  59.  
  60. hunt.driver: ${DOBJ} pathname.o
  61.     ${CC} -o $@ ${DOBJ} pathname.o
  62.  
  63. debug: hunt.dbg hunt.driver.dbg
  64.  
  65. hunt.dbg: ${POBJ} pathname.dbg.o
  66.     ${CC} -o $@ ${POBJ} pathname.dbg.o -lcurses -ltermlib
  67.  
  68. hunt.driver.dbg: ${DOBJ} pathname.dbg.o
  69.     ${CC} -o $@ ${DOBJ} pathname.dbg.o
  70.  
  71. pathname.dbg.o: pathname.c
  72.     @echo ${CC} ${CFLAGS} -DDEBUG -c pathname.c -o pathname.dbg.o
  73.     @rm -f x.c
  74.     @ln pathname.c x.c
  75.     @${CC} ${CFLAGS} -DDEBUG -c x.c
  76.     @mv x.o pathname.dbg.o
  77.     @rm -f x.c
  78.  
  79. install: ${MAN}
  80.     install -s -o games -g bin -m 700 hunt.driver ${DESTDIR}/usr/games/lib/hunt.driver
  81.     install -s -o games -g bin -m 700 hunt ${DESTDIR}/usr/games/hide
  82.     install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat6
  83.     (cd ${DESTDIR}/usr/games; rm -f hunt; ln -s dm hunt; chown games.bin hunt)
  84.  
  85. lint: ${DSRC} ${PSRC}
  86.     lint -chapbx ${DEFS} ${DSRC}
  87.     lint -chapbx ${DEFS} ${PSRC} -lcurses
  88.  
  89. tags: ${DSRC} ${PSRC}
  90.     ctags ${DSRC} ${PSRC}
  91.  
  92. clean:
  93.     rm -f hunt hunt.driver *.o tags core tmp debug_file
  94.  
  95. cleandir: clean
  96.     rm -f ${MAN} tags .depend
  97.  
  98. depend:
  99.     mkdep ${DSRC} ${PSRC}
  100.