]> git.pld-linux.org Git - packages/Togl.git/blame - Togl-Makefile.PLD
- removed all Group fields translations (oure rpm now can handle translating
[packages/Togl.git] / Togl-Makefile.PLD
CommitLineData
141fada9 1# $Id$
2
3# Togl - a Tk OpenGL widget
4# Version 1.6
5# Copyright (C) 1996-1997 Brian Paul and Ben Bederson
6# See the LICENSE file for copyright details.
7
8
9# $Log$
10# Revision 1.1 2000/11/08 12:51:27 cieciwa
11#
12# 5a36f41b6b112353f8433ed19905fdc4 Makefile.PLD
13# bf510bf1b384373aad5d7592049b98b5 Togl-1.6beta2.tar.gz
14# 7b8ede6267d4329733aaf89056c0dfc8 Togl-tkInit.patch
15#
16# Revision 1.15 1998/10/14 01:27:52 brianp
17# bumped version to 1.6
18#
19# Revision 1.14 1998/03/12 04:11:13 brianp
20# updated LIBS for RedHat Linux 5.0
21#
22# Revision 1.13 1998/03/12 03:08:43 brianp
23# added gears demo
24#
25# Revision 1.12 1997/12/11 02:21:41 brianp
26# updated version to 1.5
27#
28# Revision 1.11 1997/09/18 03:43:00 brianp
29# added zip archive target
30#
31# Revision 1.10 1997/09/17 02:51:45 brianp
32# updated tar file list
33#
34# Revision 1.9 1997/09/17 02:46:01 brianp
35# updated for version 1.4
36#
37# Revision 1.8 1997/03/07 01:25:42 brianp
38# added overlay demo
39#
40# Revision 1.7 1997/02/16 10:03:19 brianp
41# updated for version 1.3
42#
43# Revision 1.6 1996/12/13 21:23:41 brianp
44# added -L/usr/X11/lib to LIBS
45#
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
49#
50# Revision 1.4 1996/10/25 03:45:18 brianp
51# changed tar commands
52#
53# Revision 1.3 1996/10/25 00:46:29 brianp
54# added SHLINK and SH_LIB stuff
55#
56# Revision 1.2 1996/10/25 00:43:12 brianp
57# misc cleanups
58#
59# Revision 1.1 1996/10/23 23:15:09 brianp
60# Initial revision
61#
62
63
64
65# Makefile for Togl demos
66# You'll probably have to tinker with these macros:
67
68
69# The C compiler:
70CC = gcc
71
72# Compiler options:
73COPTS = -c $(RPM_OPT_FLAGS)
74
75# Shared library linker command:
76SHLINK = gcc -shared
77
78# Name for the shared lib:
79SH_LIB = libtogl.so.1.3
80#SH_LIB =
81
82# Where to find tcl.h, tk.h, OpenGL/Mesa headers, etc:
83INCLUDES = -I/usr/include -I/usr/include/tcl -I/usr/X11R6/include
84
85# Where to find libtcl.a, libtk.a, OpenGL/Mesa libraries:
86LIBDIRS = -L/usr/lib -L/usr/X11R6/lib
87
88# Libraries to link with (-ldl for Linux only?):
89LIBS = -ltk -ltcl -lGLU -lGL -L/usr/X11/lib -lX11 -lXmu -lXext -lXt -lm -ldl
90
91TK_FLAGS =
92
93
94#### Shouldn't have to change anything beyond this point ####
95
96
97CFLAGS = $(COPTS) $(INCLUDES) $(TK_FLAGS)
98
99LFLAGS = $(LIBDIRS)
100
101
102DEMOS = $(SH_LIB) double texture index overlay gears
103
104
105default: $(DEMOS)
106
107
108# double demo
109double: double.o togl.o
110 $(CC) $(LFLAGS) double.o togl.o $(LIBS) -o $@
111
112double.o: double.c togl.h
113 $(CC) $(CFLAGS) double.c
114
115
116# texture demo
117texture: texture.o image.o togl.o
118 $(CC) $(LFLAGS) texture.o image.o togl.o $(LIBS) -o $@
119
120texture.o: texture.c togl.h
121 $(CC) $(CFLAGS) texture.c
122
123image.o: image.c
124 $(CC) $(CFLAGS) image.c
125
126
127# color index demo
128index: index.o togl.o
129 $(CC) $(LFLAGS) index.o togl.o $(LIBS) -o $@
130
131index.o: index.c togl.h
132 $(CC) $(CFLAGS) index.c
133
134
135# overlay demo
136overlay: overlay.o togl.o
137 $(CC) $(LFLAGS) overlay.o togl.o $(LIBS) -o $@
138
139overlay.o: overlay.c togl.h
140 $(CC) $(CFLAGS) overlay.c
141
142
143# gears demo
144gears: gears.o togl.o
145 $(CC) $(LFLAGS) gears.o togl.o $(LIBS) -o $@
146
147gears.o: gears.c togl.h
148 $(CC) $(CFLAGS) gears.c
149
150
151# the togl widget
152togl.o: togl.c togl.h
153 $(CC) $(CFLAGS) togl.c
154
155
156$(SH_LIB): togl.o
157 $(SHLINK) $(LFLAGS) togl.o $(LIBS) -o $@
158
159
160
161clean:
162 -rm -f *.o *~ core
163
164realclean:
165 -rm -f *.o *~ core
166 -rm -f $(DEMOS)
167
168
169
170TOGL = Togl-1.6
171
172FILES = \
173 $(TOGL)/README \
174 $(TOGL)/Togl.html \
175 $(TOGL)/LICENSE \
176 $(TOGL)/Makefile \
177 $(TOGL)/*.[ch] \
178 $(TOGL)/*.tcl \
179 $(TOGL)/tree2.rgba \
180 $(TOGL)/ben.rgb
181
182tar:
183 cd .. ; \
184 tar -cvf $(TOGL).tar $(FILES) ; \
185 gzip $(TOGL).tar ; \
186 mv $(TOGL).tar.gz $(TOGL)
187
188
189zip:
190 cd .. ; \
191 zip -r $(TOGL).zip $(FILES) ; \
192 mv $(TOGL).zip $(TOGL)
This page took 0.054781 seconds and 4 git commands to generate.