home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / program / termcap / makefile < prev    next >
Encoding:
Makefile  |  1987-10-27  |  1.1 KB  |  64 lines

  1. #
  2. #  FILE
  3. #
  4. #    Makefile    build termcap library
  5. #
  6. #  KEY WORDS
  7. #
  8. #    libraries
  9. #    test functions
  10. #
  11. #  SYNOPSIS
  12. #
  13. #    make        compile the library sources
  14. #    make tests    compile sources for tests
  15. #
  16. #  DESCRIPTION
  17. #
  18. #    Standard make file for building the termcap library and tests.
  19. #
  20. #  AUTHOR
  21. #
  22. #    Fred Fish
  23. #
  24.  
  25. MWCDIR    =    c:
  26. CC    =    $(MWCDIR)\bin\cc.ttp
  27. CFLAGS    =    -O
  28.  
  29. TSOURCES =    testtcp.c 
  30. LSOURCES =    tgetent.c tgetflag.c tgetnum.c tgetstr.c tgoto.c tputs.c \
  31.         isdigit.c fgetlr.c
  32.  
  33.  
  34. TOBJECTS =    testtcp.o
  35. LOBJECTS =    tgetent.o tgetflag.o tgetnum.o tgetstr.o tgoto.o \
  36.         tputs.o isdigit.o fgetlr.o
  37.  
  38. termcap.lib :    $(LOBJECTS)
  39.     echo Now put all the object files into library "libtermcap.a"
  40.     ar rs libtermc.a $(LOBJECTS)
  41.  
  42. install: libtermc.a
  43.     mv libtermc.a $(MWCDIR)\lib\libtermc.a
  44.  
  45. all: termcap.lib tests
  46.  
  47. tests :        testtcp.tos worms.ttp
  48.  
  49. worms.ttp:    worms.o
  50.     $(CC) $(CFLAGS) -o worms.ttp worms.o -ltermc
  51.  
  52. testtcp.tos :    testtcp.o
  53.         $(CC) -o testtcp.tos testtcp.o -ltermc
  54.  
  55. testtcp.o :    testtcp.c
  56.         $(CC) -c $(CFLAGS) testtcp.c
  57.  
  58. #
  59. #    Clean up the directory.
  60. #
  61.  
  62. clean:
  63.         rm  *.o
  64.