]> git.pld-linux.org Git - packages/Togl.git/blob - Makefile.PLD
- fixed typo,
[packages/Togl.git] / Makefile.PLD
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:
64 CC = gcc
65
66 # Compiler options:
67 COPTS = -c $(RPM_OPT_FLAGS)
68
69 # Shared library linker command:
70 SHLINK = gcc -shared
71
72 # Name for the shared lib:
73 SH_LIB = libtogl.so.1.3
74 #SH_LIB = 
75
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
78
79 # Where to find libtcl.a, libtk.a, OpenGL/Mesa libraries:
80 LIBDIRS = -L/usr/lib -L/usr/X11R6/lib
81
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
84
85 TK_FLAGS =
86
87
88 #### Shouldn't have to change anything beyond this point ####
89
90
91 CFLAGS = $(COPTS) $(INCLUDES) $(TK_FLAGS)
92
93 LFLAGS = $(LIBDIRS)
94
95
96 DEMOS = $(SH_LIB) double texture index overlay gears
97
98
99 default: $(DEMOS)
100
101
102 # double demo
103 double: double.o togl.o
104         $(CC) $(LFLAGS) double.o togl.o $(LIBS) -o $@
105
106 double.o: double.c togl.h
107         $(CC) $(CFLAGS) double.c
108
109
110 # texture demo
111 texture: texture.o image.o togl.o
112         $(CC) $(LFLAGS) texture.o image.o togl.o $(LIBS) -o $@
113
114 texture.o: texture.c togl.h
115         $(CC) $(CFLAGS) texture.c
116
117 image.o: image.c
118         $(CC) $(CFLAGS) image.c
119
120
121 # color index demo
122 index: index.o togl.o
123         $(CC) $(LFLAGS) index.o togl.o $(LIBS) -o $@
124
125 index.o: index.c togl.h
126         $(CC) $(CFLAGS) index.c
127
128
129 # overlay demo
130 overlay: overlay.o togl.o
131         $(CC) $(LFLAGS) overlay.o togl.o $(LIBS) -o $@
132
133 overlay.o: overlay.c togl.h
134         $(CC) $(CFLAGS) overlay.c
135
136
137 # gears demo
138 gears: gears.o togl.o
139         $(CC) $(LFLAGS) gears.o togl.o $(LIBS) -o $@
140
141 gears.o: gears.c togl.h
142         $(CC) $(CFLAGS) gears.c
143
144
145 # the togl widget
146 togl.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
155 clean:
156         -rm -f *.o *~ core
157
158 realclean:
159         -rm -f *.o *~ core
160         -rm -f $(DEMOS)
161
162
163
164 TOGL = Togl-1.6
165
166 FILES = \
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
176 tar:
177         cd .. ; \
178         tar -cvf $(TOGL).tar $(FILES) ; \
179         gzip $(TOGL).tar ; \
180         mv $(TOGL).tar.gz $(TOGL)
181
182
183 zip:
184         cd .. ; \
185         zip -r $(TOGL).zip $(FILES) ; \
186         mv $(TOGL).zip $(TOGL)
This page took 0.039636 seconds and 3 git commands to generate.