Assorted mklib tweaks.
[mesa.git] / src / glw / Makefile.X11
1 # Makefile for SGI's OpenGL widgets
2
3
4 ##### MACROS #####
5
6 MAJOR = 1
7 MINOR = 0
8 TINY = 0
9
10 TOP = ../..
11
12 VPATH = RCS
13
14 INCDIRS = -I$(TOP)/include -I/usr/include/Motif1.2 -I/usr/contrib/X11R6/include -I/usr/X11R6/include
15 LIBDIR = $(TOP)/lib
16
17 # Use these sources for Motif (and Xt) support. Requires Motif header files.
18 #SOURCES = GLwDrawA.c GLwMDrawA.c
19
20 # OR, use these sources for non-Motif (Xt only) build:
21 SOURCES = GLwDrawA.c
22
23
24 OBJECTS = $(SOURCES:.c=.o)
25
26
27
28 ##### RULES #####
29
30 .c.o:
31 $(CC) -c $(INCDIRS) $(CFLAGS) $<
32
33
34
35 ##### TARGETS #####
36
37 default:
38 @echo "Specify a target configuration"
39
40 clean:
41 -rm -f *.o *~
42
43 targets: $(LIBDIR)/$(GLW_LIB) message
44
45
46 # Make the library
47 $(LIBDIR)/$(GLW_LIB): $(OBJECTS)
48 $(TOP)/bin/mklib -o GLw -major $(MAJOR) -minor $(MINOR) \
49 -patch $(TINY) $(GLW_LIB_DEPS) -install $(LIBDIR) \
50 $(MKLIB_OPTIONS) $(OBJECTS)
51
52
53 message:
54 @echo
55 @echo "************************************************************************"
56 @echo "*** Edit widgets-sgi/Makefile.X11 to enable Motif support, if needed ***"
57 @echo "************************************************************************"
58 @echo
59
60
61 include $(TOP)/Make-config
62
63 include depend
64
65
66
67 #
68 # Run 'make depend' to update the dependencies if you change what's included
69 # by any source file.
70 #
71 dep: $(SOURCES)
72 makedepend -fdepend -Y -I$(TOP)/include $(SOURCES)