# SccsId = "%W% %G% polymer"
# Copyright 1997 SF Bellenot All Rights Reserved

XINCLUDES = -I/usr/openwin/include
TCLINCLUDES = -I/usr/local/include
GLINCLUDES = -I/usr/local/include

TCLLIBDIR = /usr/local/lib
XLIBDIR = /usr/openwin/lib

# Path to "togl.h":
TOGLDIR = /home/m3/bellenot/m0/gl/tcl/Togl-1.2/
TOGLINCLUDES = -I$(TOGLDIR)
# Path to "togl.o":
TOGLOBJECT = $(TOGLDIR)/togl.o

INCLUDES = $(XINCLUDES) $(TCLINCLUDES) $(GLINCLUDES) $(TOGLINCLUDES)

CFLAGS = -g $(INCLUDES)

# OpenGL
#GL_LIBS = -lGLU -lGL
# Mesa
GL_LIBS = -lMesaGLU -lMesaGL

# Tcl/Tk
TCLLIB = -ltk4.2 -ltcl7.6

# X11-libs
X11LIBS = -lXmu -lXext -lX11 -lsocket -lnsl -lm

# Tiff-libs
TIFFLIBS = -ltiff

LPATH = -L$(XLIBDIR) -L$(TCLLIBDIR)
RPATH = -R $(XLIBDIR):$(TCLLIBDIR)

LIBS = $(RPATH) $(LPATH) $(GL_LIBS) $(TCLLIB) $(X11LIBS) $(TIFFLIBS)

OTHER = \
	Makefile \
	README \
	COPYRIGHT \
	lab.tcl \
	license.shellylib
 
HEADERS = \
	polymerl.h
 
SRC = \
	polymerl.c \
	lab.c \
	render.c \
	hydrogen.c \
	teaching_aid.c \
	gen.c \
	rdwrt.c \
	screenDump.c 
 
OBJS = \
	$(TOGLOBJECT) \
	polymerl.o \
	lab.o \
	render.o \
	hydrogen.o \
	teaching_aid.o \
	gen.o \
	rdwrt.o \
	screenDump.o 
 
lab: $(OBJS)
	$(CC) -o $@ $(OBJS) $(LIBS)
 
depend:
	makedepend $(INCLUDES) $(SRC)

clean:
	rm -f *.o lab *.bak

safe:
	mcopy -n *.c *.h *.tcl lab Makefile "A:"

copy:
	cp *.c *.h *.tcl lab Makefile /home/m2/zduan/COMPUTER/POLYMER/copy/.

tar:
	(cd ..; tar cFFf polymer-1.0.tar polymer-1.0; gzip -9 polymer-1.0.tar )

# DO NOT DELETE THIS LINE -- make depend depends on it.

polymerl.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h
polymerl.o: /usr/include/sys/va_list.h /usr/include/math.h
polymerl.o: /usr/openwin/include/GL/gl.h polymerl.h /usr/include/stdlib.h
polymerl.o: /usr/include/ctype.h /usr/openwin/include/X11/Xlib.h
polymerl.o: /usr/include/sys/types.h /usr/include/sys/isa_defs.h
polymerl.o: /usr/include/sys/machtypes.h /usr/openwin/include/X11/X.h
polymerl.o: /usr/openwin/include/X11/Xfuncproto.h
polymerl.o: /usr/openwin/include/X11/Xosdefs.h /usr/include/stddef.h
polymerl.o: /usr/openwin/include/X11/Xutil.h /usr/openwin/include/GL/glu.h
lab.o: /usr/include/math.h /usr/include/stdlib.h
lab.o: /usr/include/sys/feature_tests.h /usr/include/stdio.h
lab.o: /usr/include/sys/va_list.h /usr/include/string.h
lab.o: /usr/local/include/tcl.h /usr/local/include/tk.h
lab.o: /usr/openwin/include/X11/Xlib.h /usr/include/sys/types.h
lab.o: /usr/include/sys/isa_defs.h /usr/include/sys/machtypes.h
lab.o: /usr/openwin/include/X11/X.h /usr/openwin/include/X11/Xfuncproto.h
lab.o: /usr/openwin/include/X11/Xosdefs.h /usr/include/stddef.h
lab.o: /home/m3/bellenot/m0/gl/tcl/Togl-1.2/togl.h
lab.o: /usr/openwin/include/GL/glx.h /usr/openwin/include/X11/Xutil.h
lab.o: /usr/openwin/include/X11/Xmd.h /usr/openwin/include/GL/gl.h
lab.o: /usr/openwin/include/GL/glxproto.h /usr/openwin/include/GL/glxmd.h
lab.o: polymerl.h /usr/include/ctype.h /usr/openwin/include/GL/glu.h
render.o: /usr/include/math.h /usr/include/stdlib.h
render.o: /usr/include/sys/feature_tests.h /usr/include/stdio.h
render.o: /usr/include/sys/va_list.h /usr/include/string.h
render.o: /usr/local/include/tcl.h /usr/local/include/tk.h
render.o: /usr/openwin/include/X11/Xlib.h /usr/include/sys/types.h
render.o: /usr/include/sys/isa_defs.h /usr/include/sys/machtypes.h
render.o: /usr/openwin/include/X11/X.h /usr/openwin/include/X11/Xfuncproto.h
render.o: /usr/openwin/include/X11/Xosdefs.h /usr/include/stddef.h
render.o: /home/m3/bellenot/m0/gl/tcl/Togl-1.2/togl.h
render.o: /usr/openwin/include/GL/glx.h /usr/openwin/include/X11/Xutil.h
render.o: /usr/openwin/include/X11/Xmd.h /usr/openwin/include/GL/gl.h
render.o: /usr/openwin/include/GL/glxproto.h /usr/openwin/include/GL/glxmd.h
render.o: polymerl.h /usr/include/ctype.h /usr/openwin/include/GL/glu.h
hydrogen.o: /usr/include/math.h /usr/include/stdlib.h
hydrogen.o: /usr/include/sys/feature_tests.h /usr/include/stdio.h
hydrogen.o: /usr/include/sys/va_list.h /usr/include/string.h
hydrogen.o: /usr/local/include/tcl.h /usr/local/include/tk.h
hydrogen.o: /usr/openwin/include/X11/Xlib.h /usr/include/sys/types.h
hydrogen.o: /usr/include/sys/isa_defs.h /usr/include/sys/machtypes.h
hydrogen.o: /usr/openwin/include/X11/X.h
hydrogen.o: /usr/openwin/include/X11/Xfuncproto.h
hydrogen.o: /usr/openwin/include/X11/Xosdefs.h /usr/include/stddef.h
hydrogen.o: /home/m3/bellenot/m0/gl/tcl/Togl-1.2/togl.h
hydrogen.o: /usr/openwin/include/GL/glx.h /usr/openwin/include/X11/Xutil.h
hydrogen.o: /usr/openwin/include/X11/Xmd.h /usr/openwin/include/GL/gl.h
hydrogen.o: /usr/openwin/include/GL/glxproto.h
hydrogen.o: /usr/openwin/include/GL/glxmd.h polymerl.h /usr/include/ctype.h
hydrogen.o: /usr/openwin/include/GL/glu.h
teaching_aid.o: /usr/include/math.h /usr/include/stdlib.h
teaching_aid.o: /usr/include/sys/feature_tests.h /usr/include/stdio.h
teaching_aid.o: /usr/include/sys/va_list.h /usr/include/string.h
teaching_aid.o: /usr/local/include/tcl.h /usr/local/include/tk.h
teaching_aid.o: /usr/openwin/include/X11/Xlib.h /usr/include/sys/types.h
teaching_aid.o: /usr/include/sys/isa_defs.h /usr/include/sys/machtypes.h
teaching_aid.o: /usr/openwin/include/X11/X.h
teaching_aid.o: /usr/openwin/include/X11/Xfuncproto.h
teaching_aid.o: /usr/openwin/include/X11/Xosdefs.h /usr/include/stddef.h
teaching_aid.o: /home/m3/bellenot/m0/gl/tcl/Togl-1.2/togl.h
teaching_aid.o: /usr/openwin/include/GL/glx.h
teaching_aid.o: /usr/openwin/include/X11/Xutil.h
teaching_aid.o: /usr/openwin/include/X11/Xmd.h /usr/openwin/include/GL/gl.h
teaching_aid.o: /usr/openwin/include/GL/glxproto.h
teaching_aid.o: /usr/openwin/include/GL/glxmd.h polymerl.h
teaching_aid.o: /usr/include/ctype.h /usr/openwin/include/GL/glu.h
gen.o: /usr/include/math.h /usr/include/stdlib.h
gen.o: /usr/include/sys/feature_tests.h /usr/include/stdio.h
gen.o: /usr/include/sys/va_list.h /usr/include/string.h
gen.o: /usr/local/include/tcl.h /usr/local/include/tk.h
gen.o: /usr/openwin/include/X11/Xlib.h /usr/include/sys/types.h
gen.o: /usr/include/sys/isa_defs.h /usr/include/sys/machtypes.h
gen.o: /usr/openwin/include/X11/X.h /usr/openwin/include/X11/Xfuncproto.h
gen.o: /usr/openwin/include/X11/Xosdefs.h /usr/include/stddef.h
gen.o: /home/m3/bellenot/m0/gl/tcl/Togl-1.2/togl.h
gen.o: /usr/openwin/include/GL/glx.h /usr/openwin/include/X11/Xutil.h
gen.o: /usr/openwin/include/X11/Xmd.h /usr/openwin/include/GL/gl.h
gen.o: /usr/openwin/include/GL/glxproto.h /usr/openwin/include/GL/glxmd.h
gen.o: polymerl.h /usr/include/ctype.h /usr/openwin/include/GL/glu.h
rdwrt.o: /usr/include/math.h /usr/include/stdlib.h
rdwrt.o: /usr/include/sys/feature_tests.h /usr/include/stdio.h
rdwrt.o: /usr/include/sys/va_list.h /usr/include/string.h polymerl.h
rdwrt.o: /usr/include/ctype.h /usr/openwin/include/X11/Xlib.h
rdwrt.o: /usr/include/sys/types.h /usr/include/sys/isa_defs.h
rdwrt.o: /usr/include/sys/machtypes.h /usr/openwin/include/X11/X.h
rdwrt.o: /usr/openwin/include/X11/Xfuncproto.h
rdwrt.o: /usr/openwin/include/X11/Xosdefs.h /usr/include/stddef.h
rdwrt.o: /usr/openwin/include/X11/Xutil.h /usr/openwin/include/GL/gl.h
rdwrt.o: /usr/openwin/include/GL/glu.h
screenDump.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h
screenDump.o: /usr/include/sys/va_list.h /usr/include/stdlib.h
screenDump.o: /usr/openwin/include/X11/Xlib.h /usr/include/sys/types.h
screenDump.o: /usr/include/sys/isa_defs.h /usr/include/sys/machtypes.h
screenDump.o: /usr/openwin/include/X11/X.h
screenDump.o: /usr/openwin/include/X11/Xfuncproto.h
screenDump.o: /usr/openwin/include/X11/Xosdefs.h /usr/include/stddef.h
screenDump.o: /usr/openwin/include/X11/Intrinsic.h
screenDump.o: /usr/openwin/include/X11/Xutil.h
screenDump.o: /usr/openwin/include/X11/Xresource.h /usr/include/string.h
screenDump.o: /usr/openwin/include/X11/Core.h
screenDump.o: /usr/openwin/include/X11/Composite.h
screenDump.o: /usr/openwin/include/X11/Constraint.h
screenDump.o: /usr/openwin/include/X11/Object.h
screenDump.o: /usr/openwin/include/X11/RectObj.h /usr/openwin/include/GL/gl.h
screenDump.o: /usr/openwin/include/GL/glx.h /usr/openwin/include/X11/Xmd.h
screenDump.o: /usr/openwin/include/GL/glxproto.h
screenDump.o: /usr/openwin/include/GL/glxmd.h /usr/local/include/tk.h
screenDump.o: /usr/local/include/tiffio.h /usr/local/include/tiff.h
screenDump.o: /usr/include/stdarg.h /usr/include/varargs.h
