aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/dri_client/Makefile
blob: 14ba1948b280fb29b1bd18d862cca6b3e2eae595 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# src/mesa/drivers/dri/gamma/Makefile

TOP = ../../../../..
include $(TOP)/configs/current

# Get rid of this:
#
DEFINES += -DGLX_DIRECT_RENDERING 

C_SOURCES = \
	dri_glx.c \
	dri_util.c \
	glcontextmodes.c \
	XF86dri.c \
	xf86drm.c \
	xf86drmHash.c \
	xf86drmRandom.c \
	xf86drmSL.c \



OBJECTS = $(C_SOURCES:.c=.o)  

INCLUDES = \
	-I$(TOP)/include \
	-I$(TOP)/src/mesa \
	-I$(TOP)/src/mesa/main \
	-I$(TOP)/src/mesa/glapi \
	-Iimports


##### RULES #####

.c.o:
	$(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@


##### TARGETS #####

default: depend dri.a


# Run 'make dep' to update the dependencies if you change
# what's included by any source file.
depend: $(C_SOURCES) $(ASM_SOURCES)
	touch depend
	makedepend -fdepend -Y $(INCLUDES) \
		$(C_SOURCES) $(ASM_SOURCES) >& /dev/null


dri.a:	$(OBJECTS)
	rm -f $@
	ar rcv $@ $(OBJECTS)
	ranlib $@

# Remove .o and backup files
clean:
	-rm -f *.o */*.o *~ *.so *.a

include depend