add the build infrastructure for the gallium r600 driver
ok mpi@
This commit is contained in:
parent
54ad3dfaaa
commit
65d2acd0c3
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.15 2013/06/13 10:39:28 jsg Exp $
|
||||
# $OpenBSD: Makefile,v 1.16 2013/06/17 23:30:25 jsg Exp $
|
||||
.include <bsd.xconf.mk>
|
||||
|
||||
SUBDIR= swrast
|
||||
@ -12,7 +12,7 @@ SUBDIR+= radeon r200 r300
|
||||
.if ${XENOCARA_BUILD_GALLIUM:L} == "yes" || ${XENOCARA_BUILD_GALLIUM} == "llvm"
|
||||
SUBDIR+=swrastg
|
||||
.if ${MACHINE} == i386 || ${MACHINE} == amd64 || ${MACHINE} == macppc
|
||||
SUBDIR+= r300g
|
||||
SUBDIR+= r300g r600g
|
||||
.endif
|
||||
.endif
|
||||
|
||||
|
66
lib/libGL/dri/r600g/Makefile
Normal file
66
lib/libGL/dri/r600g/Makefile
Normal file
@ -0,0 +1,66 @@
|
||||
# $OpenBSD: Makefile,v 1.1 2013/06/17 23:30:25 jsg Exp $
|
||||
|
||||
LIB= r600g_dri.so
|
||||
|
||||
CPPFLAGS= \
|
||||
-I${GALLIUM}/include \
|
||||
-I${GALLIUM}/auxiliary \
|
||||
-I${GALLIUM}/drivers \
|
||||
-I${GALLIUM}/drivers/r600 \
|
||||
-I${GALLIUM}/winsys \
|
||||
-I${GALLIUM}/state_trackers/dri/common
|
||||
|
||||
DRIVER_LIBS= \
|
||||
../../gallium/drivers/trace/libtrace_pic.a \
|
||||
../../gallium/drivers/rbug/librbug_pic.a \
|
||||
../../gallium/drivers/r600/libr600_pic.a
|
||||
|
||||
DRIVER_DEFINES = \
|
||||
-DGALLIUM_RBUG \
|
||||
-DGALLIUM_TRACE
|
||||
|
||||
WINSYS_SOURCES = \
|
||||
bof.c \
|
||||
evergreen_hw_context.c \
|
||||
radeon_bo.c \
|
||||
radeon_pciid.c \
|
||||
r600_bo.c \
|
||||
r600_drm.c \
|
||||
r600_hw_context.c \
|
||||
r600_bomgr.c
|
||||
|
||||
DRIDRM_SOURCES = \
|
||||
dri_context.c \
|
||||
dri_screen.c \
|
||||
dri_drawable.c \
|
||||
dri2.c
|
||||
|
||||
COMMON_GALLIUM_SOURCES = \
|
||||
utils.c \
|
||||
vblank.c \
|
||||
dri_util.c \
|
||||
xmlconfig.c
|
||||
|
||||
DRIVER_SOURCES = \
|
||||
target.c \
|
||||
|
||||
SRCS = \
|
||||
${WINSYS_SOURCES} \
|
||||
${DRIDRM_SOURCES} \
|
||||
${COMMON_GALLIUM_SOURCES} \
|
||||
${DRIVER_SOURCES}
|
||||
|
||||
LDADD= ../../mesa/libmesagallium/libmesagallium_pic.a \
|
||||
../../glsl/libglsl/libglsl_pic.a \
|
||||
${DRIVER_LIBS} \
|
||||
../../gallium/libgallium/libgallium_pic.a \
|
||||
-L${X11BASE}/lib -lexpat -lm -lstdc++ -lc
|
||||
DPADD= ../../mesa/libmesagallium/libmesagallium_pic.a
|
||||
|
||||
.include "../../gallium/Makefile.inc"
|
||||
.include <bsd.xorg.mk>
|
||||
|
||||
.PATH: ${GALLIUM}/state_trackers/dri/common
|
||||
.PATH: ${GALLIUM}/state_trackers/dri/drm
|
||||
.PATH: ${GALLIUM}/targets/dri-r600
|
||||
.PATH: ${GALLIUM}/winsys/r600/drm
|
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.3 2013/06/13 10:39:28 jsg Exp $
|
||||
# $OpenBSD: Makefile,v 1.4 2013/06/17 23:30:25 jsg Exp $
|
||||
.include <bsd.xconf.mk>
|
||||
|
||||
SUBDIR= rbug softpipe trace
|
||||
@ -9,7 +9,7 @@ SUBDIR+= llvmpipe
|
||||
|
||||
.if ${XENOCARA_BUILD_GALLIUM:L} == "yes" || ${XENOCARA_BUILD_GALLIUM} == "llvm" &&
|
||||
(${MACHINE} == i386 || ${MACHINE} == amd64 || ${MACHINE} == macppc)
|
||||
SUBDIR+= r300
|
||||
SUBDIR+= r300 r600
|
||||
.endif
|
||||
|
||||
build depend all install clean cleandir: _SUBDIRUSE
|
||||
|
27
lib/libGL/gallium/drivers/r600/Makefile
Normal file
27
lib/libGL/gallium/drivers/r600/Makefile
Normal file
@ -0,0 +1,27 @@
|
||||
# $OpenBSD: Makefile,v 1.1 2013/06/17 23:30:25 jsg Exp $
|
||||
|
||||
LIB = r600
|
||||
|
||||
SRCS = \
|
||||
r600_asm.c \
|
||||
r600_blit.c \
|
||||
r600_buffer.c \
|
||||
r600_pipe.c \
|
||||
r600_query.c \
|
||||
r600_resource.c \
|
||||
r600_shader.c \
|
||||
r600_state.c \
|
||||
r600_texture.c \
|
||||
r700_asm.c \
|
||||
evergreen_state.c \
|
||||
eg_asm.c \
|
||||
r600_translate.c \
|
||||
r600_state_common.c
|
||||
|
||||
CPPFLAGS+= -I${MESA}/../../include \
|
||||
-I${MESA} -I${X11BASE}/include -I/usr/include/dev/pci/drm
|
||||
CFLAGS+= -std=gnu99
|
||||
|
||||
.include <bsd.xorg.mk>
|
||||
|
||||
.PATH: ${MESA}/program
|
Loading…
Reference in New Issue
Block a user