main/api_exec_es2.c: main/APIspec.xml main/es_generator.py main/APIspecutil.py main/APIspec.py
$(PYTHON2) $(PYTHON_FLAGS) main/es_generator.py -S main/APIspec.xml -V GLES2.0 > $@
+program/program_parse.tab.c program/program_parse.tab.h: program/program_parse.y
+ bison -v -d --output=program/program_parse.tab.c $<
+
+program/lex.yy.c: program/program_lexer.l
+ flex --never-interactive --outfile=$@ $<
+
######################################################################
# Helper libraries used by many drivers:
+++ /dev/null
-all: program_parse.tab.c lex.yy.c
-
-program_parse.tab.c program_parse.tab.h: program_parse.y
- bison -v -d $<
-
-lex.yy.c: program_lexer.l
- flex --never-interactive $<
PROGRAM_SOURCES = \
program/arbprogparse.c \
program/hash_table.c \
- program/lex.yy.c \
program/nvfragparse.c \
program/nvvertparse.c \
program/program.c \
- program/program_parse.tab.c \
program/program_parse_extra.c \
program/prog_cache.c \
program/prog_execute.c \
program/register_allocate.c \
program/symbol_table.c
+PROGRAM_GENERATED_SOURCES = \
+ program/lex.yy.c \
+ program/program_parse.tab.c
+
SHADER_CXX_SOURCES = \
program/ir_to_mesa.cpp \
program/sampler.cpp
# Sources for building non-Gallium drivers
-MESA_SOURCES = \
+MESA_SOURCES_FOR_DEPEND = \
$(MAIN_SOURCES) \
$(MATH_SOURCES) \
$(MATH_XFORM_SOURCES) \
$(COMMON_DRIVER_SOURCES)\
$(ASM_C_SOURCES)
+MESA_SOURCES = \
+ $(MESA_SOURCES_FOR_DEPEND) \
+ $(PROGRAM_GENERATED_SOURCES)
+
MESA_CXX_SOURCES = \
$(SHADER_CXX_SOURCES)
# All the core C sources, for dependency checking
ALL_SOURCES = \
- $(MESA_SOURCES) \
+ $(MESA_SOURCES_FOR_DEPEND) \
$(MESA_CXX_SOURCES) \
$(MESA_ASM_SOURCES) \
$(STATETRACKER_SOURCES)