3 # This Makefile is for use when distributing Tcl to the outside world.
 
   4 # It is normally set up by running the "config" script.  Before modifying
 
   5 # this file by hand, you should read through the "config" script to see
 
   8 # Some changes you may wish to make here:
 
  10 # 1. To compile for non-UNIX systems (so that only the non-UNIX-specific
 
  11 # commands are available), change the OBJS line below so it doesn't
 
  12 # include ${UNIX_OBJS}.  Also, add the switch "-DTCL_GENERIC_ONLY" to
 
  13 # CFLAGS.  Lastly, you'll have to provide your own replacement for the
 
  14 # "panic" procedure (see panic.c for what the current one does).
 
  16 # 2. ANSI-C procedure prototypes are turned on by default if supported
 
  17 # by the compiler.  To turn them off, add "-DNO_PROTOTYPE" to CFLAGS
 
  20 # 3. If you've put the Tcl script library in a non-standard place, change
 
  21 # the definition of TCL_LIBRARY to correspond to its location on your
 
  25 TCL_LIBRARY =   /usr/local/lib/tcl
 
  29 CFLAGS =        -O3 -I. -DTCL_LIBRARY=\"${TCL_LIBRARY}\" -DIS_LINUX
 
  30 #CFLAGS =       -g -I. -DTCL_LIBRARY=\"${TCL_LIBRARY}\" -DIS_LINUX
 
  59 OBJS = ${GENERIC_OBJS} ${UNIX_OBJS} ${COMPAT_OBJS}
 
  63 libtcl.a: ${OBJS} ${COMPAT_OBJS}
 
  65         ar cr libtcl.a ${OBJS}
 
  68 tcltest: tcltest.o libtcl.a
 
  69         ${CC} ${CFLAGS} tcltest.o libtcl.a -o tcltest
 
  72         ( echo cd tests ; echo source all ) | ./tcltest
 
  75         rm -f ${OBJS} libtcl.a tcltest.o tcltest
 
  77 # The following target is used during configuration to compile
 
  78 # a test program to see if certain facilities are available on
 
  82         ${CC} ${CFLAGS} test.c
 
  84 ${OBJS}: tcl.h tclhash.h tclint.h
 
  85 ${UNIX_OBJS}: tclunix.h