2 # This is makefile rule for generating C sources from python generators
5 $(error LIBNAME not defined
, fix your library Makefile
)
9 # Headers goes into include/core/
11 INCLUDE_PREFIX
=$(TOPDIR
)/include/$(LIBNAME
)/
12 RGENHEADERS
=$(addprefix $(INCLUDE_PREFIX
),$(GENHEADERS
))
15 # Generate genfiles for generated sources
17 CSOURCES
+=$(GENSOURCES
)
20 # Make the genrated headers actually build
27 CLEAN
+=$(GENSOURCES
) $(RGENHEADERS
)
30 # Currently, just depend on all python files
32 GENERATORS
=$(PYTHON_FILES
)
35 # Generated files depend on python generators and libs
37 %.gen.c
%.gen.h
: $(GENERATORS
)