OPTIMIZE_FLAG = -O2

# Point this at where your tcl include files live.  Mine live in
# /usr/include, so I don't need this.
# TCL_INCLUDE_DIR = -I/usr/include
TCL_INCLUDE_DIR = -I/home/nop/tk3.0/tcl

# Point this at where your tk include files live.
TK_INCLUDE_DIR = -I/home/nop/tk3.0

# Point this at where your tclX include files live, etc.
TCLX_INCLUDE_DIR =

# Point this at where your X11 include files live.
# X11_INCLUDE_DIR = -I/usr/include
X11_INCLUDE_DIR = -I/usr/X386/include

CFLAGS = $(OPTIMIZE_FLAG) $(XCFLAGS) $(TCL_INCLUDE_DIR) $(TK_INCLUDE_DIR) $(TCLX_INCLUDE_DIR) $(X11_INCLUDE_DIR)

# Point this at your extended tcl library
TCLLIB = /usr/lib/libtcl.a

# Point this at your extended tk library
TKLIB = /usr/lib/libtk.a

# Include whatever flags you need to make ld find your x libraries
LD_FLAGS = -L/usr/X386/lib/jump 

tkmoo: $(TCLLIB) $(TKLIB) tkmoo.o
	$(CC) tkmoo.o $(TCLLIB) $(TKLIB) $(LD_FLAGS) -lX11 -lm -o tkmoo