home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3431 / Makefile < prev    next >
Encoding:
Makefile  |  1991-05-28  |  1.9 KB  |  70 lines

  1. #
  2. # Copyright (C) 1991 by Jay Konigsberg. mail: jak@sactoh0
  3. #
  4. # Permission to use, copy, modify, and distribute this  software  and  its
  5. # documentation is hereby  granted,  provided  that  the  above  copyright
  6. # notice appear in all copies  and that  both  the  copyright  notice  and
  7. # this permission notice appear in supporting documentation. This software
  8. # is provided "as is" without express or implied  warranty.  However,  the
  9. # author retains all Copyright priviliges and rights  to  renumeration  if
  10. # this software is sold.
  11. #
  12. # Also, and very important. This game is for recrecation ONLY and is NOT
  13. # to be used for gambling in any way. 
  14. #
  15.  
  16. # Makefile for video_poker
  17. #
  18.  
  19. # Select complier and options
  20. #CC=gcc
  21. #CFLAGS=-O -traditional -Wall
  22.  
  23. CC=cc
  24. #CFLAGS=-g
  25. CFLAGS=-O
  26.  
  27. # Select libraries
  28. # Xenix
  29. #LIBS=-ltcap -ltermlib
  30. # SysV
  31. LIBS=-lcurses
  32.  
  33. # Object files
  34. OBJS=sort.o display_hand.o display_val.o rawmode.o cleanup.o payoff_val.o \
  35. deal.o id_hand.o draw.o setup_deck.o main.o draw_back.o
  36.  
  37. # Exectuable
  38. EXEC=video
  39.  
  40. $(EXEC): $(OBJS)
  41.     $(CC) $(CFLAGS) $(OBJS) $(LIBS) -o $(EXEC)
  42.  
  43. main.o:        main.c vid_local.h vid_curses.h vid_poker.h
  44. deal.o:        deal.c vid_poker.h
  45. id_hand.o:    id_hand.c vid_poker.h vid_extern.h hand_value.h
  46. draw.o:        draw.c vid_poker.h vid_curses.h vid_local.h vid_extern.h
  47. setup_deck.o:    setup_deck.c vid_extern.h vid_poker.h
  48. cleanup.o:    cleanup.c vid_extern.h
  49. display_hand.o:    display_hand.c vid_poker.h vid_extern.h vid_curses.h
  50. display_val.o:    display_val.c hand_value.h vid_curses.h vid_poker.h
  51. payoff_val.o:    payoff_val.c vid_poker.h vid_curses.h
  52. rawmode.o:    rawmode.c vid_extern.h vid_local.h
  53. sort:        sort.c vid_poker.h
  54. draw_back.o:    draw_back.c vid_curses.h
  55.  
  56.  
  57. clean:
  58.     rm -f $(OBJS) core make.out lint.out video.shar vidpoker.tar*
  59. lint:
  60.     lint [a-z][a-z]*.c 2>&1 | tee lint.out
  61. tar:
  62.     tar cvf vidpoker.tar *.[ch] Makefile
  63. pack: tar
  64.     pack vidpoker.tar
  65. compress: tar
  66.     compress vidpoker.tar
  67. shar:
  68.     shar Makefile *.[ch] > video.shar
  69.