3 # Togl - a Tk OpenGL widget
5 # Copyright (C) 1996-1997 Brian Paul and Ben Bederson
6 # See the LICENSE file for copyright details.
10 # Revision 1.15 1998/10/14 01:27:52 brianp
11 # bumped version to 1.6
13 # Revision 1.14 1998/03/12 04:11:13 brianp
14 # updated LIBS for RedHat Linux 5.0
16 # Revision 1.13 1998/03/12 03:08:43 brianp
19 # Revision 1.12 1997/12/11 02:21:41 brianp
20 # updated version to 1.5
22 # Revision 1.11 1997/09/18 03:43:00 brianp
23 # added zip archive target
25 # Revision 1.10 1997/09/17 02:51:45 brianp
26 # updated tar file list
28 # Revision 1.9 1997/09/17 02:46:01 brianp
29 # updated for version 1.4
31 # Revision 1.8 1997/03/07 01:25:42 brianp
34 # Revision 1.7 1997/02/16 10:03:19 brianp
35 # updated for version 1.3
37 # Revision 1.6 1996/12/13 21:23:41 brianp
38 # added -L/usr/X11/lib to LIBS
40 # Revision 1.5 1996/11/05 02:38:30 brianp
41 # added -f flag to rm commands
42 # added Togl.html to tar file
44 # Revision 1.4 1996/10/25 03:45:18 brianp
45 # changed tar commands
47 # Revision 1.3 1996/10/25 00:46:29 brianp
48 # added SHLINK and SH_LIB stuff
50 # Revision 1.2 1996/10/25 00:43:12 brianp
53 # Revision 1.1 1996/10/23 23:15:09 brianp
59 # Makefile for Togl demos
60 # You'll probably have to tinker with these macros:
67 COPTS = -c $(RPM_OPT_FLAGS)
69 # Shared library linker command:
72 # Name for the shared lib:
73 SH_LIB = libtogl.so.1.3
76 # Where to find tcl.h, tk.h, OpenGL/Mesa headers, etc:
77 INCLUDES = -I/usr/include -I/usr/include/tcl -I/usr/X11R6/include
79 # Where to find libtcl.a, libtk.a, OpenGL/Mesa libraries:
80 LIBDIRS = -L/usr/lib -L/usr/X11R6/lib
82 # Libraries to link with (-ldl for Linux only?):
83 LIBS = -ltk -ltcl -lGLU -lGL -L/usr/X11/lib -lX11 -lXmu -lXext -lXt -lm -ldl
88 #### Shouldn't have to change anything beyond this point ####
91 CFLAGS = $(COPTS) $(INCLUDES) $(TK_FLAGS)
96 DEMOS = $(SH_LIB) double texture index overlay gears
103 double: double.o togl.o
104 $(CC) $(LFLAGS) double.o togl.o $(LIBS) -o $@
106 double.o: double.c togl.h
107 $(CC) $(CFLAGS) double.c
111 texture: texture.o image.o togl.o
112 $(CC) $(LFLAGS) texture.o image.o togl.o $(LIBS) -o $@
114 texture.o: texture.c togl.h
115 $(CC) $(CFLAGS) texture.c
118 $(CC) $(CFLAGS) image.c
122 index: index.o togl.o
123 $(CC) $(LFLAGS) index.o togl.o $(LIBS) -o $@
125 index.o: index.c togl.h
126 $(CC) $(CFLAGS) index.c
130 overlay: overlay.o togl.o
131 $(CC) $(LFLAGS) overlay.o togl.o $(LIBS) -o $@
133 overlay.o: overlay.c togl.h
134 $(CC) $(CFLAGS) overlay.c
138 gears: gears.o togl.o
139 $(CC) $(LFLAGS) gears.o togl.o $(LIBS) -o $@
141 gears.o: gears.c togl.h
142 $(CC) $(CFLAGS) gears.c
146 togl.o: togl.c togl.h
147 $(CC) $(CFLAGS) togl.c
151 $(SHLINK) $(LFLAGS) togl.o $(LIBS) -o $@
178 tar -cvf $(TOGL).tar $(FILES) ; \
180 mv $(TOGL).tar.gz $(TOGL)
185 zip -r $(TOGL).zip $(FILES) ; \
186 mv $(TOGL).zip $(TOGL)