home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.mdf / Apps / Games / UnixGames / accordian / Source / makefile < prev    next >
Encoding:
Makefile  |  1995-02-25  |  1.8 KB  |  95 lines

  1. #
  2. # makefile for accordian
  3. #
  4.  
  5. # The high score file:
  6. WINFILE = /home/baggins/ericl/lib/accordian.wins
  7.  
  8. # Where the program will live
  9. DESTDIR = /home/baggins/ericl/bin
  10.  
  11. # Where the manpage will live
  12. MANDIR = /home/baggins/ericl/man
  13.  
  14.  
  15. # Which random number generator your system uses
  16. # these worked under SunOS (BSD-ish)
  17. RANDOM = random
  18. SRANDOM = srandom
  19. # these worked under IRIX (SysV-ish)
  20. #RANDOM = lrand48
  21. #SRANDOM = srand48
  22.  
  23. # where the default pager lives
  24. # bsd-ish systems use;
  25. PAGER = /usr/ucb/more
  26. # irix uses:
  27. #PAGER = /usr/bsd/more
  28. # most SysV machines use:
  29. #PAGER = /usr/bin/more
  30.  
  31.  
  32. # compiler options
  33. CC = cc -arch m68k -arch i386 -arch hppa -arch sparc
  34.  
  35. # these worked under SunOS
  36. LOCAL_CFLAGS = -g
  37. LOCAL_LFLAGS = -g
  38. LLIBS = -lcurses -ltermcap
  39.  
  40. # these worked under SYS_V (SGI IRIX)
  41. # (note: IRIX uses "-cckr" to make the compiler like K+R C.
  42. # Your machine may need something different to specify this.)
  43. #LOCAL_CFLAGS = -g -cckr
  44. #LOCAL_LFLAGS = -g
  45. #LLIBS = -lcurses
  46.  
  47.  
  48. CFLAGS = $(LOCAL_CFLAGS) -DRANDOM=$(RANDOM) -DSRANDOM=$(SRANDOM) \
  49.     -DACCORDIAN_WINFILE=\"$(WINFILE)\" -DDEFAULT_PAGER=\"$(PAGER)\"
  50. LFLAGS = $(LOCAL_LFLAGS)
  51.  
  52.  
  53. OBJS =    accordian.o \
  54.     cards.o \
  55.     help.o
  56.  
  57. accordian: $(OBJS)
  58.     $(CC) $(LFLAGS) $(OBJS) -o $@ $(LLIBS)
  59.  
  60. ##  Creating manpages.
  61. .SUFFIXES:    .6 .man
  62. .man.6:
  63.     @rm -f $@
  64.     nroff -man $< > $@
  65.     chmod 444 $@
  66.  
  67. install: accordian accordian.6
  68.     cp accordian $(DESTDIR)
  69.     chmod 711 $(DESTDIR)/accordian
  70.     cp accordian.6 $(MANDIR)/accordian.6
  71.     chmod 644 $(MANDIR)/accordian.6
  72.  
  73. $(OBJS) : cards.h makefile
  74.  
  75. clobber:
  76.     make clean
  77.     @ rm -f accordian accordian.6 accordian.sh
  78. clean:
  79.     @ rm -f $(OBJS)
  80.  
  81. #
  82. # all the stuff that gets packed into the archive file
  83. #
  84. SHARSTUFF = \
  85.     README \
  86.     makefile \
  87.     accordian.c \
  88.     help.c \
  89.     cards.c \
  90.     cards.h \
  91.     accordian.man
  92.  
  93. shar:
  94.     shar $(SHARSTUFF) > accordian.sh
  95.