initial rev
[mesa.git] / src / glw / Makefile.X11
1 # Makefile for OpenGL widgets
2
3 # NOTE: widget code is from SGI. See any of the .c or .h files for the
4 # complete copyright. Mesa's GNU copyright DOES NOT apply to this widget
5 # code.
6
7
8 ##### MACROS #####
9
10 VPATH = RCS
11
12 INCDIRS = -I../include -I/usr/include/Motif1.2 -I/usr/X11R6/include
13 LIBDIR = ../lib
14
15 SOURCES = GLwDrawA.c GLwMDrawA.c
16
17
18 OBJECTS = $(SOURCES:.c=.o)
19
20
21
22 ##### RULES #####
23
24 .c.o:
25 $(CC) -c $(INCDIRS) $(CFLAGS) $<
26
27
28
29 ##### TARGETS #####
30
31 default:
32 @echo "Specify a target configuration"
33
34 clean:
35 -rm *.o *~
36
37 # The name of the library file comes from Make-config
38 #XXX GLW_LIB = libGLw.a
39
40 targets: $(LIBDIR)/$(GLW_LIB)
41
42
43 # Make the library
44 $(LIBDIR)/$(GLW_LIB): $(OBJECTS)
45 $(MAKELIB) $(GLW_LIB) $(MAJOR) $(MINOR) $(OBJECTS)
46 mv $(GLW_LIB)* $(LIBDIR)
47
48 include ../Make-config
49
50 include depend
51
52
53
54 #
55 # Run 'make depend' to update the dependencies if you change what's included
56 # by any source file.
57 #
58 dep: $(SOURCES)
59 makedepend -fdepend -Y -I../include $(SOURCES)