$(LIBDRM_CFLAGS) \
-I$(TOP)/src/gallium/drivers/nouveau/include
-C_SOURCES = nouveau_screen.c \
- nouveau_fence.c \
- nouveau_mm.c \
- nouveau_buffer.c \
- nouveau_video.c
+# get C_SOURCES
+include Makefile.sources
include ../../Makefile.template
--- /dev/null
+C_SOURCES := \
+ nouveau_screen.c \
+ nouveau_fence.c \
+ nouveau_mm.c \
+ nouveau_buffer.c \
+ nouveau_video.c
nouveau = env.ConvenienceLibrary(
target = 'nouveau',
- source = [
- 'nouveau_screen.c',
- ])
+ source = env.ParserSourceList('Makefile.sources', 'C_SOURCES')
+ )
Export('nouveau')
LIBNAME = nv50
-C_SOURCES = \
- nv50_context.c \
- nv50_draw.c \
- nv50_formats.c \
- nv50_miptree.c \
- nv50_resource.c \
- nv50_screen.c \
- nv50_state.c \
- nv50_state_validate.c \
- nv50_surface.c \
- nv50_tex.c \
- nv50_transfer.c \
- nv50_vbo.c \
- nv50_program.c \
- nv50_shader_state.c \
- nv50_pc.c \
- nv50_pc_print.c \
- nv50_pc_emit.c \
- nv50_tgsi_to_nc.c \
- nv50_pc_optimize.c \
- nv50_pc_regalloc.c \
- nv50_push.c \
- nv50_query.c
+# get C_SOURCES
+include Makefile.sources
LIBRARY_INCLUDES = \
$(LIBDRM_CFLAGS)
--- /dev/null
+C_SOURCES := \
+ nv50_context.c \
+ nv50_draw.c \
+ nv50_formats.c \
+ nv50_miptree.c \
+ nv50_resource.c \
+ nv50_screen.c \
+ nv50_state.c \
+ nv50_state_validate.c \
+ nv50_surface.c \
+ nv50_tex.c \
+ nv50_transfer.c \
+ nv50_vbo.c \
+ nv50_program.c \
+ nv50_shader_state.c \
+ nv50_pc.c \
+ nv50_pc_print.c \
+ nv50_pc_emit.c \
+ nv50_tgsi_to_nc.c \
+ nv50_pc_optimize.c \
+ nv50_pc_regalloc.c \
+ nv50_push.c \
+ nv50_query.c
nv50 = env.ConvenienceLibrary(
target = 'nv50',
- source = [
- 'nv50_context.c',
- 'nv50_draw.c',
- 'nv50_formats.c',
- 'nv50_miptree.c',
- 'nv50_resource.c',
- 'nv50_screen.c',
- 'nv50_state.c',
- 'nv50_state_validate.c',
- 'nv50_surface.c',
- 'nv50_tex.c',
- 'nv50_transfer.c',
- 'nv50_vbo.c',
- 'nv50_program.c',
- 'nv50_shader_state.c',
- 'nv50_pc.c',
- 'nv50_pc_print.c',
- 'nv50_pc_emit.c',
- 'nv50_tgsi_to_nc.c',
- 'nv50_pc_optimize.c',
- 'nv50_pc_regalloc.c',
- 'nv50_push.c',
- 'nv50_query.c'
- ])
+ source = env.ParserSourceList('Makefile.sources', 'C_SOURCES')
+ )
Export('nv50')
LIBNAME = nvc0
-C_SOURCES = \
- nvc0_context.c \
- nvc0_draw.c \
- nvc0_formats.c \
- nvc0_miptree.c \
- nvc0_resource.c \
- nvc0_screen.c \
- nvc0_state.c \
- nvc0_state_validate.c \
- nvc0_surface.c \
- nvc0_tex.c \
- nvc0_transfer.c \
- nvc0_vbo.c \
- nvc0_program.c \
- nvc0_shader_state.c \
- nvc0_pc.c \
- nvc0_pc_print.c \
- nvc0_pc_emit.c \
- nvc0_tgsi_to_nc.c \
- nvc0_pc_optimize.c \
- nvc0_pc_regalloc.c \
- nvc0_push.c \
- nvc0_push2.c \
- nvc0_query.c
+# get C_SOURCES
+include Makefile.sources
LIBRARY_INCLUDES = \
$(LIBDRM_CFLAGS)
--- /dev/null
+C_SOURCES := \
+ nvc0_context.c \
+ nvc0_draw.c \
+ nvc0_formats.c \
+ nvc0_miptree.c \
+ nvc0_resource.c \
+ nvc0_screen.c \
+ nvc0_state.c \
+ nvc0_state_validate.c \
+ nvc0_surface.c \
+ nvc0_tex.c \
+ nvc0_transfer.c \
+ nvc0_vbo.c \
+ nvc0_program.c \
+ nvc0_shader_state.c \
+ nvc0_pc.c \
+ nvc0_pc_print.c \
+ nvc0_pc_emit.c \
+ nvc0_tgsi_to_nc.c \
+ nvc0_pc_optimize.c \
+ nvc0_pc_regalloc.c \
+ nvc0_push.c \
+ nvc0_push2.c \
+ nvc0_query.c
nvc0 = env.ConvenienceLibrary(
target = 'nvc0',
- source = [
- 'nvc0_context.c',
- 'nvc0_draw.c',
- 'nvc0_formats.c',
- 'nvc0_miptree.c',
- 'nvc0_resource.c',
- 'nvc0_screen.c',
- 'nvc0_state.c',
- 'nvc0_state_validate.c',
- 'nvc0_surface.c',
- 'nvc0_tex.c',
- 'nvc0_transfer.c',
- 'nvc0_vbo.c',
- 'nvc0_program.c',
- 'nvc0_shader_state.c',
- 'nvc0_pc.c',
- 'nvc0_pc_print.c',
- 'nvc0_pc_emit.c',
- 'nvc0_tgsi_to_nc.c',
- 'nvc0_pc_optimize.c',
- 'nvc0_pc_regalloc.c',
- 'nvc0_push.c',
- 'nvc0_push2.c',
- 'nvc0_query.c'
- ])
+ source = env.ParserSourceList('Makefile.sources', 'C_SOURCES')
+ )
Export('nvc0')
LIBNAME = nvfx
-C_SOURCES = \
- nv04_2d.c \
- nvfx_buffer.c \
- nvfx_context.c \
- nvfx_clear.c \
- nvfx_draw.c \
- nvfx_fragprog.c \
- nvfx_fragtex.c \
- nv30_fragtex.c \
- nv40_fragtex.c \
- nvfx_miptree.c \
- nvfx_push.c \
- nvfx_query.c \
- nvfx_resource.c \
- nvfx_screen.c \
- nvfx_state.c \
- nvfx_state_emit.c \
- nvfx_state_fb.c \
- nvfx_surface.c \
- nvfx_transfer.c \
- nvfx_vbo.c \
- nvfx_vertprog.c
+# get C_SOURCES
+include Makefile.sources
LIBRARY_INCLUDES = \
$(LIBDRM_CFLAGS) \
--- /dev/null
+C_SOURCES := \
+ nv04_2d.c \
+ nvfx_buffer.c \
+ nvfx_context.c \
+ nvfx_clear.c \
+ nvfx_draw.c \
+ nvfx_fragprog.c \
+ nvfx_fragtex.c \
+ nv30_fragtex.c \
+ nv40_fragtex.c \
+ nvfx_miptree.c \
+ nvfx_push.c \
+ nvfx_query.c \
+ nvfx_resource.c \
+ nvfx_screen.c \
+ nvfx_state.c \
+ nvfx_state_emit.c \
+ nvfx_state_fb.c \
+ nvfx_surface.c \
+ nvfx_transfer.c \
+ nvfx_vbo.c \
+ nvfx_vertprog.c
nvfx = env.ConvenienceLibrary(
target = 'nvfx',
- source = [
- 'nv04_2d.c',
- 'nvfx_buffer.c',
- 'nvfx_context.c',
- 'nvfx_clear.c',
- 'nvfx_draw.c',
- 'nvfx_fragprog.c',
- 'nvfx_fragtex.c',
- 'nv30_fragtex.c',
- 'nv40_fragtex.c',
- 'nvfx_miptree.c',
- 'nvfx_push.c',
- 'nvfx_query.c',
- 'nvfx_resource.c',
- 'nvfx_screen.c',
- 'nvfx_state.c',
- 'nvfx_state_emit.c',
- 'nvfx_state_fb.c',
- 'nvfx_surface.c',
- 'nvfx_transfer.c',
- 'nvfx_vbo.c',
- 'nvfx_vertprog.c',
- ])
+ source = env.ParserSourceList('Makefile.sources', 'C_SOURCES')
+ )
Export('nvfx')