home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1555 / Makefile < prev    next >
Encoding:
Makefile  |  1990-12-28  |  1.4 KB  |  74 lines

  1. # Makefile.mnu
  2.  
  3. #
  4. # TARGET should be set to ONE of the following
  5. # DOS_IO  XENIX_IO  SYSV_IO
  6. #
  7. TARGET=SYSV_IO
  8.  
  9. #
  10. # EXE should be set to the name of the executable file
  11. #
  12. EXE=menu
  13.  
  14. #
  15. # PERIOD is the time to wait for characters to arrive
  16. #  XENIX_IO - PERIOD is in milliseconds as argument to nap()   - 100
  17. #  SYSV_IO  - PERIOD is in      seconds as argument to alarm() - 1
  18. #  DOS_IO   - PERIOD is ignored
  19. #
  20. PERIOD=1
  21.  
  22. #
  23. # LIBS should be set to the libraries that containg the termcap/terminfo
  24. #        capabilities (like tgoto and tgetent) (eg. -ltermcap)
  25. #      if XENIX_IO is defined then LIBS should include -lx 
  26. #
  27. LIBS=-ltermcap
  28.  
  29. # Use this next line at csusac
  30. #LIBS=/iwb/lib/libtermlib.a
  31.  
  32. #
  33. # CCFLAGS should be set to any CFLAGS deviation
  34. #         DOS_IO              set to  -dos (Xenix cc only)
  35. #         SYSV_IO or XENIX_IO set to  -s
  36. #
  37. CCFLAGS=-s
  38.  
  39. #
  40. #  End of user configuration
  41. #
  42. CFLAGS=$(CCFLAGS) -O -D$(TARGET) -DPERIOD=$(PERIOD)
  43.  
  44. HDRS=io.h proto.h
  45. SRCS=menu.c io.c
  46. OBJS=menu.o io.o
  47.  
  48. $(EXE): $(OBJS)
  49.     cc $(CFLAGS) -o $(EXE) $(OBJS) $(LIBS)
  50.  
  51. menu.o: menu.c  $(HDRS)
  52.     cc -c $(CFLAGS) menu.c
  53.  
  54. io.o: io.c  $(HDRS)
  55.     cc -c $(CFLAGS) io.c
  56.  
  57. clean:
  58. #    rm -f core $(OBJS) $(EXE) >/dev/null 2>&1
  59.     rm -f core $(OBJS) $(EXE) 
  60.  
  61. shar:
  62.     make clean
  63.     shar `find . -type f -print` > menu.shar 
  64.  
  65. tar:
  66.     tar cvf menu.tar $(SRCS) $(HDRS) Makefile.mnu test.scr
  67.  
  68. test:
  69.     ./menu test.scr
  70.  
  71. tags: 
  72.     ctags $(SRCS)
  73.     mv tags menu.tag
  74.