From f8c8c843ed7b93c09b27c2258aa329219bf8aaee Mon Sep 17 00:00:00 2001 From: cieciwa Date: Wed, 8 Nov 2000 12:51:27 +0000 Subject: [PATCH] 5a36f41b6b112353f8433ed19905fdc4 Makefile.PLD bf510bf1b384373aad5d7592049b98b5 Togl-1.6beta2.tar.gz 7b8ede6267d4329733aaf89056c0dfc8 Togl-tkInit.patch Changed files: Makefile.PLD -> 1.1 Togl-tkInit.patch -> 1.1 --- Makefile.PLD | 186 ++++++++++++++++++++++++++++++++++++++++++++++ Togl-tkInit.patch | 17 +++++ 2 files changed, 203 insertions(+) create mode 100644 Makefile.PLD create mode 100644 Togl-tkInit.patch diff --git a/Makefile.PLD b/Makefile.PLD new file mode 100644 index 0000000..5c1ad04 --- /dev/null +++ b/Makefile.PLD @@ -0,0 +1,186 @@ +# $Id$ + +# Togl - a Tk OpenGL widget +# Version 1.6 +# Copyright (C) 1996-1997 Brian Paul and Ben Bederson +# See the LICENSE file for copyright details. + + +# $Log$ +# Revision 1.15 1998/10/14 01:27:52 brianp +# bumped version to 1.6 +# +# Revision 1.14 1998/03/12 04:11:13 brianp +# updated LIBS for RedHat Linux 5.0 +# +# Revision 1.13 1998/03/12 03:08:43 brianp +# added gears demo +# +# Revision 1.12 1997/12/11 02:21:41 brianp +# updated version to 1.5 +# +# Revision 1.11 1997/09/18 03:43:00 brianp +# added zip archive target +# +# Revision 1.10 1997/09/17 02:51:45 brianp +# updated tar file list +# +# Revision 1.9 1997/09/17 02:46:01 brianp +# updated for version 1.4 +# +# Revision 1.8 1997/03/07 01:25:42 brianp +# added overlay demo +# +# Revision 1.7 1997/02/16 10:03:19 brianp +# updated for version 1.3 +# +# Revision 1.6 1996/12/13 21:23:41 brianp +# added -L/usr/X11/lib to LIBS +# +# Revision 1.5 1996/11/05 02:38:30 brianp +# added -f flag to rm commands +# added Togl.html to tar file +# +# Revision 1.4 1996/10/25 03:45:18 brianp +# changed tar commands +# +# Revision 1.3 1996/10/25 00:46:29 brianp +# added SHLINK and SH_LIB stuff +# +# Revision 1.2 1996/10/25 00:43:12 brianp +# misc cleanups +# +# Revision 1.1 1996/10/23 23:15:09 brianp +# Initial revision +# + + + +# Makefile for Togl demos +# You'll probably have to tinker with these macros: + + +# The C compiler: +CC = gcc + +# Compiler options: +COPTS = -c $(RPM_OPT_FLAGS) + +# Shared library linker command: +SHLINK = gcc -shared + +# Name for the shared lib: +SH_LIB = libtogl.so.1.3 +#SH_LIB = + +# Where to find tcl.h, tk.h, OpenGL/Mesa headers, etc: +INCLUDES = -I/usr/include -I/usr/include/tcl -I/usr/X11R6/include + +# Where to find libtcl.a, libtk.a, OpenGL/Mesa libraries: +LIBDIRS = -L/usr/lib -L/usr/X11R6/lib + +# Libraries to link with (-ldl for Linux only?): +LIBS = -ltk -ltcl -lGLU -lGL -L/usr/X11/lib -lX11 -lXmu -lXext -lXt -lm -ldl + +TK_FLAGS = + + +#### Shouldn't have to change anything beyond this point #### + + +CFLAGS = $(COPTS) $(INCLUDES) $(TK_FLAGS) + +LFLAGS = $(LIBDIRS) + + +DEMOS = $(SH_LIB) double texture index overlay gears + + +default: $(DEMOS) + + +# double demo +double: double.o togl.o + $(CC) $(LFLAGS) double.o togl.o $(LIBS) -o $@ + +double.o: double.c togl.h + $(CC) $(CFLAGS) double.c + + +# texture demo +texture: texture.o image.o togl.o + $(CC) $(LFLAGS) texture.o image.o togl.o $(LIBS) -o $@ + +texture.o: texture.c togl.h + $(CC) $(CFLAGS) texture.c + +image.o: image.c + $(CC) $(CFLAGS) image.c + + +# color index demo +index: index.o togl.o + $(CC) $(LFLAGS) index.o togl.o $(LIBS) -o $@ + +index.o: index.c togl.h + $(CC) $(CFLAGS) index.c + + +# overlay demo +overlay: overlay.o togl.o + $(CC) $(LFLAGS) overlay.o togl.o $(LIBS) -o $@ + +overlay.o: overlay.c togl.h + $(CC) $(CFLAGS) overlay.c + + +# gears demo +gears: gears.o togl.o + $(CC) $(LFLAGS) gears.o togl.o $(LIBS) -o $@ + +gears.o: gears.c togl.h + $(CC) $(CFLAGS) gears.c + + +# the togl widget +togl.o: togl.c togl.h + $(CC) $(CFLAGS) togl.c + + +$(SH_LIB): togl.o + $(SHLINK) $(LFLAGS) togl.o $(LIBS) -o $@ + + + +clean: + -rm -f *.o *~ core + +realclean: + -rm -f *.o *~ core + -rm -f $(DEMOS) + + + +TOGL = Togl-1.6 + +FILES = \ + $(TOGL)/README \ + $(TOGL)/Togl.html \ + $(TOGL)/LICENSE \ + $(TOGL)/Makefile \ + $(TOGL)/*.[ch] \ + $(TOGL)/*.tcl \ + $(TOGL)/tree2.rgba \ + $(TOGL)/ben.rgb + +tar: + cd .. ; \ + tar -cvf $(TOGL).tar $(FILES) ; \ + gzip $(TOGL).tar ; \ + mv $(TOGL).tar.gz $(TOGL) + + +zip: + cd .. ; \ + zip -r $(TOGL).zip $(FILES) ; \ + mv $(TOGL).zip $(TOGL) diff --git a/Togl-tkInit.patch b/Togl-tkInit.patch new file mode 100644 index 0000000..a032afe --- /dev/null +++ b/Togl-tkInit.patch @@ -0,0 +1,17 @@ +--- togl.c.org Tue Oct 20 03:28:25 1998 ++++ togl.c Wed Nov 8 13:23:38 2000 +@@ -127,11 +127,12 @@ + #elif TK_MAJOR_VERSION==8 && TK_MINOR_VERSION==0 && TK_RELEASE_SERIAL==2 + # include "tkInt8.0p2.h" + #else +- Sorry, you will have to edit togl.c to include the right tkInt.h file ++# include ++// Sorry, you will have to edit togl.c to include the right tkInt.h file + #endif + #elif defined(WIN32) + #if TK_MAJOR_VERSION<8 +- Sorry Windows version requires Tcl/Tk ver 8.0 or higher. ++// Sorry Windows version requires Tcl/Tk ver 8.0 or higher. + #endif + #include "tkInt.h" + #include "tkWinInt.h" -- 2.43.0