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.1 2000/11/08 12:51:27 cieciwa
12 # 5a36f41b6b112353f8433ed19905fdc4 Makefile.PLD
13 # bf510bf1b384373aad5d7592049b98b5 Togl-1.6beta2.tar.gz
14 # 7b8ede6267d4329733aaf89056c0dfc8 Togl-tkInit.patch
16 # Revision 1.15 1998/10/14 01:27:52 brianp
17 # bumped version to 1.6
19 # Revision 1.14 1998/03/12 04:11:13 brianp
20 # updated LIBS for RedHat Linux 5.0
22 # Revision 1.13 1998/03/12 03:08:43 brianp
25 # Revision 1.12 1997/12/11 02:21:41 brianp
26 # updated version to 1.5
28 # Revision 1.11 1997/09/18 03:43:00 brianp
29 # added zip archive target
31 # Revision 1.10 1997/09/17 02:51:45 brianp
32 # updated tar file list
34 # Revision 1.9 1997/09/17 02:46:01 brianp
35 # updated for version 1.4
37 # Revision 1.8 1997/03/07 01:25:42 brianp
40 # Revision 1.7 1997/02/16 10:03:19 brianp
41 # updated for version 1.3
43 # Revision 1.6 1996/12/13 21:23:41 brianp
44 # added -L/usr/X11/lib to LIBS
46 # Revision 1.5 1996/11/05 02:38:30 brianp
47 # added -f flag to rm commands
48 # added Togl.html to tar file
50 # Revision 1.4 1996/10/25 03:45:18 brianp
51 # changed tar commands
53 # Revision 1.3 1996/10/25 00:46:29 brianp
54 # added SHLINK and SH_LIB stuff
56 # Revision 1.2 1996/10/25 00:43:12 brianp
59 # Revision 1.1 1996/10/23 23:15:09 brianp
65 # Makefile for Togl demos
66 # You'll probably have to tinker with these macros:
73 COPTS = -c $(RPM_OPT_FLAGS)
75 # Shared library linker command:
78 # Name for the shared lib:
79 SH_LIB = libtogl.so.1.3
82 # Where to find tcl.h, tk.h, OpenGL/Mesa headers, etc:
83 INCLUDES = -I/usr/include -I/usr/include/tcl -I/usr/X11R6/include
85 # Where to find libtcl.a, libtk.a, OpenGL/Mesa libraries:
86 LIBDIRS = -L/usr/lib -L/usr/X11R6/lib
88 # Libraries to link with (-ldl for Linux only?):
89 LIBS = -ltk -ltcl -lGLU -lGL -L/usr/X11/lib -lX11 -lXmu -lXext -lXt -lm -ldl
94 #### Shouldn't have to change anything beyond this point ####
97 CFLAGS = $(COPTS) $(INCLUDES) $(TK_FLAGS)
102 DEMOS = $(SH_LIB) double texture index overlay gears
109 double: double.o togl.o
110 $(CC) $(LFLAGS) double.o togl.o $(LIBS) -o $@
112 double.o: double.c togl.h
113 $(CC) $(CFLAGS) double.c
117 texture: texture.o image.o togl.o
118 $(CC) $(LFLAGS) texture.o image.o togl.o $(LIBS) -o $@
120 texture.o: texture.c togl.h
121 $(CC) $(CFLAGS) texture.c
124 $(CC) $(CFLAGS) image.c
128 index: index.o togl.o
129 $(CC) $(LFLAGS) index.o togl.o $(LIBS) -o $@
131 index.o: index.c togl.h
132 $(CC) $(CFLAGS) index.c
136 overlay: overlay.o togl.o
137 $(CC) $(LFLAGS) overlay.o togl.o $(LIBS) -o $@
139 overlay.o: overlay.c togl.h
140 $(CC) $(CFLAGS) overlay.c
144 gears: gears.o togl.o
145 $(CC) $(LFLAGS) gears.o togl.o $(LIBS) -o $@
147 gears.o: gears.c togl.h
148 $(CC) $(CFLAGS) gears.c
152 togl.o: togl.c togl.h
153 $(CC) $(CFLAGS) togl.c
157 $(SHLINK) $(LFLAGS) togl.o $(LIBS) -o $@
184 tar -cvf $(TOGL).tar $(FILES) ; \
186 mv $(TOGL).tar.gz $(TOGL)
191 zip -r $(TOGL).zip $(FILES) ; \
192 mv $(TOGL).zip $(TOGL)