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

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

LIBNAME = swrast_dri.so

DRIVER_SOURCES = \
	swrast.c \
	swrast_span.c

C_SOURCES = \
	$(SWRAST_COMMON_SOURCES) \
	$(DRIVER_SOURCES)

ASM_SOURCES =

SWRAST_COMMON_SOURCES = \
	../../common/driverfuncs.c \
	../common/utils.c

include ../Makefile.template


dri-swrast: $(OBJECTS)
	$(MKLIB) -major $(MESA_MAJOR) -minor $(MESA_MINOR) -patch $(MESA_TINY) \
		-o swrast_dri.so -noprefix $(OBJECTS) -lmesadri \
		$(EXTRA_MODULES) $(DRI_LIB_DEPS)

dri-swrast-install: dri-swrast
	$(INSTALL) -d $(DESTDIR)$(INSTALL_LIB_DIR)
	$(INSTALL) -d $(DESTDIR)$(INSTALL_LIB_DIR)/dri
	$(MINSTALL) swrast_dri.so $(DESTDIR)$(INSTALL_LIB_DIR)/dri