home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3281 / Makefile < prev    next >
Makefile  |  1991-05-02  |  2KB  |  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. # Xenix - note, these work on xenix 2.2.3 & 2.3.1, but not on 2.3.2 - bizzare
  25. #CFLAGS=-g -M2m
  26. #CFLAGS=-O -M2m
  27. # SysV
  28. CFLAGS=-O
  29.  
  30. # Select libraries
  31. # Xenix
  32. #LIBS=-ltcap -ltermlib
  33. # SysV
  34. LIBS=-lcurses
  35.  
  36. # Object files
  37. OBJS=sort.o display_hand.o display_val.o rawmode.o cleanup.o payoff_val.o \
  38. deal.o id_hand.o draw.o setup_deck.o main.o 
  39.  
  40. # Exectuable
  41. EXEC=video
  42.  
  43. $(EXEC): $(OBJS)
  44.     $(CC) $(CFLAGS) $(OBJS) $(LIBS) -o $(EXEC)
  45.  
  46. main.o:        main.c vid_local.h vid_curses.h vid_poker.h
  47. deal.o:        deal.c vid_poker.h
  48. id_hand.o:    id_hand.c vid_poker.h vid_extern.h hand_value.h
  49. draw.o:        draw.c vid_poker.h vid_curses.h vid_local.h
  50. setup_deck.o:    setup_deck.c vid_extern.h vid_poker.h
  51. cleanup.o:    cleanup.c vid_extern.h
  52. display_hand.o:    display_hand.c vid_poker.h vid_extern.h vid_curses.h
  53. display_val.o:    display_val.c hand_value.h vid_curses.h vid_poker.h
  54. payoff_val.o:    payoff_val.c vid_poker.h vid_curses.h
  55. rawmode.o:    rawmode.c vid_extern.h vid_local.h
  56. sort:        sort.c vid_poker.h
  57.  
  58.  
  59. clean:
  60.     rm -f $(OBJS) core make.out lint.out vidpoker.tar*
  61. lint:
  62.     lint [a-z][a-z]*.c 2>&1 | tee lint.out
  63. tar:
  64.     tar cvf vidpoker.tar *.[ch] Makefile
  65. pack: tar
  66.     pack vidpoker.tar
  67. compress: tar
  68.     compress vidpoker.tar
  69.