summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/dri_client/Makefile
blob: a6071586eb80da54e2e5a5feab42229584a31b35 (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
# src/mesa/drivers/dri/gamma/Makefile

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

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

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



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

INCLUDES = \
	-I$(TOP)/include \
	-I$(TOP)/include/GL/internal \
	-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