2 # This is a simplified Makefile for use in Tk distributions.  Before using
 
   3 # it to compile Tk, you may wish to reset some of the following variables:
 
   5 # TCL_DIR -             Name of directory holding tcl.h and tcl.a.
 
   6 # XLIB -                Name of archive containing Xlib binaries.
 
   9 # You may also wish to add some of the following switches to the CFLAGS
 
  12 # -DX11R3               Causes code that depends on R4 facilities not to
 
  13 #                       be compiled.  I haven't tested Tk with R3 in quite
 
  14 #                       a while, so this switch may not be enough to
 
  15 #                       generate a working R3 version of Tk.  Furthermore,
 
  16 #                       use of this switch will disable some of the facilities
 
  17 #                       of Tk related to window managers.
 
  18 # -DNO_PROTOTYPE        Turns off ANSI-style procedure prototypes and the
 
  19 #                       corresponding compile-time checks.  Without this
 
  20 #                       defininition, prototypes will be turned on if the
 
  21 #                       compiler supports ANSI C by defining __STDC__.
 
  22 # -DTK_LIBRARY=\"dir\"  Arranges for dir, which must be the name of a
 
  23 #                       directory, to be the library directory for Tk scripts.
 
  24 #                       This value gets put into the variable $tk_library
 
  25 #                       when a new application is created.  The library
 
  26 #                       defaults to /usr/local/lib/tk, so you don't need the
 
  27 #                       switch unless your library is in a non-standard place.
 
  32 CFLAGS          = -I. -I$(XINCLUDE) -I$(TCL_DIR) -O3 -DTK_VERSION=\"2.3\" -DUSE_XPM3 -DIS_LINUX
 
  33 #CFLAGS         = -I. -I$(XINCLUDE) -I$(TCL_DIR) -g -DTK_VERSION=\"2.3\" -DUSE_XPM3 -DIS_LINUX
 
  36 XINCLUDE        = /usr/include/X11
 
  37 XLIB            = -L/usr/X11R6/lib -lX11 -lXpm
 
  39 LIBS = libtk.a $(TCL_DIR)/libtcl.a
 
 170         $(CC) $(CFLAGS) main.o $(LINKS) $(XLIB) -lm -o wish
 
 174         ar cr libtk.a $(OBJS)
 
 178         cd $(TCL_DIR); make libtcl.a
 
 182         rm -f $(OBJS) main.o libtk.a wish *~
 
 184 $(OBJS): tk.h tkint.h tkconfig.h
 
 185 $(WIDGOBJS): default.h
 
 186 $(CANVOBJS): default.h tkcanvas.h