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