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

  1. #
  2. # This Makefile is for use when distributing Tcl to the outside world.
  3. # It is simplified so that it doesn't include any Sprite-specific stuff.
  4. #
  5. SHELL=/bin/sh
  6.  
  7. #
  8. #System V
  9. #
  10. #LIBS =
  11. #RANLIB=:
  12. #VOID= -DVOID=void
  13. #MODEL=
  14. #G=-g
  15.  
  16. #
  17. #System III Xenix
  18. #
  19. LIBS = -lx
  20. RANLIB= ranlib
  21. VOID= -DVOID=int
  22. MODEL= -Ml
  23. G=
  24.  
  25. #
  26. #BSD
  27. #
  28. #LIBS =
  29. #RANLIB= ranlib
  30. #VOID= -DVOID=void
  31. #MODEL=
  32. #G=-g
  33.  
  34. #
  35. #HPUX
  36. #
  37. #LIBS = -lBSD
  38. #RANLIB= ranlib
  39. #VOID= -DVOID=void
  40. #MODEL=
  41. #G=-g
  42.  
  43. CFLAGS = -I. -DTCL_VERSION=\"2.1\" ${VOID} ${MODEL} ${G}
  44.  
  45. GLOB=
  46. # GLOB=glob.o tclGlob.o
  47.  
  48. OBJS = ${GLOB} tclBasic.o tclCmdAH.o tclCmdIZ.o tclExpr.o \
  49.     tclProc.o tclUtil.o
  50.  
  51. LIBOBJS = panic.o strerror.o strtol.o strtoul.o l_init.o \
  52.     l_insert.o l_l_insert.o l_remove.o ckalloc.o argv.o \
  53.     stream.o
  54.  
  55. HDRS=list.h sprite.h stdlib.h string.h tcl.h tclInt.h ckalloc.h
  56. CSRCS = glob.c tclBasic.c tclCmdAH.c tclCmdIZ.c tclExpr.c \
  57.     tclGlob.c tclProc.c tclUtil.c
  58. LIBSRCS= ${LIBOBJS:.o=.c}
  59.  
  60. tcl.a: ${OBJS} ${LIBOBJS}
  61.     rm -f tcl.a
  62.     ar cr tcl.a ${OBJS} ${LIBOBJS}
  63.     ${RANLIB} tcl.a
  64.  
  65. tclTest: tclTest.o tcl.a
  66.     cc ${CFLAGS} tclTest.o tcl.a ${LIBS} -o tclTest
  67.  
  68. clean:
  69.     rm -f ${OBJS} ${LIBOBJS} tcl.a tclTest.o tclTest
  70.     rm -f Part?? MANIFEST~
  71.  
  72. ALLFILES= Makefile README stream.5 tclTest.c $(HDRS) $(CSRCS) $(LIBSRCS)
  73.  
  74. tcl.shar: $(ALLFILES)
  75.     shar $(ALLFILES) > tcl.shar
  76.  
  77. MANIFEST: $(ALLFILES)
  78.     sh -c 'if [ -r MANIFEST ] ;\
  79.         then makekit -m ;\
  80.         else makekit -oMANIFEST $(ALLFILES) ;\
  81.     fi'
  82.