gallium: rearrange vertex info/layout validation
[mesa.git] / src / mesa / pipe / Makefile.template
1 # -*-makefile-*-
2
3
4 # We still have a dependency on the "dri" buffer manager. Most likely
5 # the interface can be reused in non-dri environments, and also as a
6 # frontend to simpler memory managers.
7 #
8 COMMON_SOURCES =
9
10 OBJECTS = $(C_SOURCES:.c=.o) \
11 $(CPP_SOURCES:.cpp=.o) \
12 $(ASM_SOURCES:.S=.o)
13
14
15 ### Include directories
16 INCLUDES = \
17 -I. \
18 -I$(TOP)/src/mesa/pipe \
19 -I$(TOP)/src/mesa \
20 -I$(TOP)/include \
21 $(DRIVER_INCLUDES)
22
23
24 ##### RULES #####
25
26 .c.o:
27 $(CC) -c $(INCLUDES) $(CFLAGS) $(DRIVER_DEFINES) $< -o $@
28
29 .cpp.o:
30 $(CXX) -c $(INCLUDES) $(CXXFLAGS) $(DRIVER_DEFINES) $< -o $@
31
32 .S.o:
33 $(CC) -c $(INCLUDES) $(CFLAGS) $(DRIVER_DEFINES) $< -o $@
34
35
36 ##### TARGETS #####
37
38 default: depend symlinks $(LIBNAME)
39
40
41 $(LIBNAME): $(OBJECTS) Makefile $(TOP)/src/mesa/pipe/Makefile.template
42 $(TOP)/bin/mklib -o $@ -static $(OBJECTS) $(DRIVER_LIBS)
43
44
45 depend: $(C_SOURCES) $(CPP_SOURCES) $(ASM_SOURCES) $(SYMLINKS)
46 rm -f depend
47 touch depend
48 $(MKDEP) $(MKDEP_OPTIONS) $(DRIVER_DEFINES) $(INCLUDES) $(C_SOURCES) $(CPP_SOURCES) \
49 $(ASM_SOURCES) 2> /dev/null
50
51
52 # Emacs tags
53 tags:
54 etags `find . -name \*.[ch]` `find ../include`
55
56
57 # Remove .o and backup files
58 clean::
59 -rm -f *.o */*.o *~ *.so *~ server/*.o $(SYMLINKS)
60 -rm -f depend depend.bak
61
62
63 include depend