Added -linker option to mklib, used to specify a particular program for
[mesa.git] / src / glut / ggi / Makefile
1 # Makefile for GLUT for ggi
2
3 TOP = ../../..
4
5 include $(TOP)/configs/current
6
7
8 ##### MACROS #####
9
10 GLUT_MAJOR = 3
11 GLUT_MINOR = 7
12 GLUT_TINY = 1
13
14 SOURCES = \
15 ggiglut.c
16
17
18 OBJECTS = $(SOURCES:.c=.o)
19
20
21 ##### RULES #####
22
23 .c.o:
24 $(CC) -c -I$(TOP)/include $(CFLAGS) $(GLUT_CFLAGS) $<
25
26
27
28 ##### TARGETS #####
29
30 default: $(LIB_DIR)/$(GLUT_LIB_NAME)
31
32
33 # Make the library
34 $(LIB_DIR)/$(GLUT_LIB_NAME): depend $(OBJECTS)
35 $(TOP)/bin/mklib -o $(GLUT_LIB) -linker $(CC) \
36 -major $(GLUT_MAJOR) -minor $(GLUT_MINOR) \
37 -patch $(GLUT_TINY) $(MKLIB_OPTIONS) -install $(LIB_DIR) \
38 $(GLUT_LIB_DEPS) $(OBJECTS)
39
40
41 clean:
42 -rm -f *.o *~
43 -rm -f *.lo
44 -rm -f *.la
45 -rm -rf .libs
46
47
48 depend: $(SOURCES)
49 touch depend
50 $(MKDEP) $(MKDEP_OPTIONS) -I$(TOP)/include $(SOURCES)
51
52 include depend