Expand out the N(x) macro so that tags can find functions like
[mesa.git] / src / mesa / drivers / dri / dri_client / Makefile
1 # src/mesa/drivers/dri/gamma/Makefile
2
3 TOP = ../../../../..
4 include $(TOP)/configs/current
5
6 # Get rid of this:
7 #
8 DEFINES += -DGLX_DIRECT_RENDERING
9
10 C_SOURCES = \
11 xf86drm.c \
12 xf86drmHash.c \
13 xf86drmRandom.c \
14 xf86drmSL.c \
15
16
17
18 OBJECTS = $(C_SOURCES:.c=.o)
19
20 INCLUDES = \
21 -I$(TOP)/include \
22 -I$(DRM_SOURCE_PATH)/shared \
23 -I$(TOP)/include/GL/internal \
24 -I$(TOP)/src/mesa \
25 -I$(TOP)/src/mesa/main \
26 -I$(TOP)/src/mesa/glapi \
27 -Iimports
28
29
30 ##### RULES #####
31
32 .c.o:
33 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
34
35
36 ##### TARGETS #####
37
38 default: depend dri.a
39
40
41 # Run 'make dep' to update the dependencies if you change
42 # what's included by any source file.
43 depend: $(C_SOURCES) $(ASM_SOURCES)
44 touch depend
45 $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) \
46 $(C_SOURCES) $(ASM_SOURCES)
47
48
49 dri.a: $(OBJECTS)
50 rm -f $@
51 ar rcv $@ $(OBJECTS)
52 ranlib $@
53
54 # Remove .o and backup files
55 clean:
56 -rm -f *.o */*.o *~ *.so *.a depend depend.bak
57
58 install:
59
60 include depend