Added -linker option to mklib, used to specify a particular program for
[mesa.git] / src / glw / Makefile
1 # src/glw/Makefile
2
3 TOP = ../..
4 include $(TOP)/configs/current
5
6 MAJOR = 1
7 MINOR = 0
8 TINY = 0
9
10 INCDIRS = -I$(TOP)/include -I/usr/include/Motif1.2 -I/usr/contrib/X11R6/include -I/usr/X11R6/include
11
12
13 OBJECTS = $(GLW_SOURCES:.c=.o)
14
15
16
17 ##### RULES #####
18
19 .c.o:
20 $(CC) -c $(INCDIRS) $(CFLAGS) $<
21
22
23
24 ##### TARGETS #####
25
26 default: $(LIB_DIR)/$(GLW_LIB_NAME)
27
28
29 clean:
30 -rm depend depend.bak
31 -rm -f *.o *~
32
33
34 # Make the library
35 $(LIB_DIR)/$(GLW_LIB_NAME): $(OBJECTS)
36 $(TOP)/bin/mklib -o $(GLW_LIB) -linker $(CC) \
37 -major $(MAJOR) -minor $(MINOR) -patch $(TINY) \
38 $(MKLIB_OPTIONS) -install $(LIB_DIR) \
39 $(GLW_LIB_DEPS) $(OBJECTS)
40
41
42 #
43 # Run 'make depend' to update the dependencies if you change what's included
44 # by any source file.
45 #
46 depend: $(GLW_SOURCES)
47 touch depend
48 $(MKDEP) $(MKDEP_OPTIONS) -I$(TOP)/include $(GLW_SOURCES) \
49 > /dev/null
50
51
52 include depend