# Makefile 
# Change of paths may be needed - no specific compiler options 
# may need some tweeking for your system.  
#  
#  COPYRIGHT
#  Michael K. Ganley
#  mikegan@world.std.com
#  Brian Krisler
#  bekdyn@world.std.com
#  January 20 1997
#
#

# You may replace the *.so stuff with *.a stuff instead
# if you have all of the *.a libraries.
CC		= gcc -g
LINKER		= $(CC)
LIBS		= /usr/lib/libtk.so \
			/usr/lib/libtcl.so \
			/usr/X11R6/lib/libX11.so 

# -ldl is needed for *.so libraries.

LLIBS		= -ltk -ltcl -lm -ldl


# Flags
CFLAGS =  -I/usr/local/include \
			-I/usr/X11/include \
			-I/usr/src/tk \
			-I/usr/src/tcl 

COFLAGS		= -q
LDFLAGS		= -I/usr/X11/include \
			-I/usr/src/tk \
			-I/usr/src/tcl


all:	simple

simple:	simple.o libtk.so
	$(CC) -o simple simple.o $(LDFLAGS) $(LIBS) $(LLIBS)

libtk.so :

clean:
	rm -f simple *.o

