This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project gfxprim.git.
The branch, master has been updated via 7f6bea085c6d5bdcef77c514eb41a96aac13e6d1 (commit) from db5988548d394fcf94da3d66ff85c40afd719fc1 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- http://repo.or.cz/w/gfxprim.git/commit/7f6bea085c6d5bdcef77c514eb41a96aac13e...
commit 7f6bea085c6d5bdcef77c514eb41a96aac13e6d1 Author: Cyril Hrubis metan@ucw.cz Date: Tue May 24 01:31:08 2011 +0200
build: Added infrastructure for using python generators.
diff --git a/gen.mk b/gen.mk new file mode 100644 index 0000000..56803bc --- /dev/null +++ b/gen.mk @@ -0,0 +1,27 @@ +# +# This is makefile rule for generating C sources from python generators +# +ifndef LIBNAME +$(error LIBNAME not defined, fix your library Makefile) +endif + +# +# Headers goes into include/core/ +# +INCLUDE_PREFIX=$(TOPDIR)/include/$(LIBNAME)/ +RGENHEADERS=$(addprefix $(INCLUDE_PREFIX),$(GENHEADERS)) + +# +# Generate genfiles for generated sources +# +CSOURCES+=$(GENSOURCES) + +# +# Make the targets build actually +# +all: $(RGENHEADERS) + +# +# And clean them +# +CLEAN+=$(GENSOURCES) $(RGENHEADERS) diff --git a/libs/core/Makefile b/libs/core/Makefile index e740c3b..0ef2e5b 100644 --- a/libs/core/Makefile +++ b/libs/core/Makefile @@ -1,5 +1,12 @@ TOPDIR=../.. -CSOURCES=$(shell ls *.c) +GENSOURCES=GP_Pixel.gen.c +GENHEADERS=GP_Pixel.gen.h +CSOURCES=$(filter-out $(wildcard *.gen.c),$(wildcard *.c)) LIBNAME=core + +include $(TOPDIR)/gen.mk include $(TOPDIR)/include.mk include $(TOPDIR)/lib.mk + +GP_Pixel.gen.c $(INCLUDE_PREFIX)GP_Pixel.gen.h: gen/make_GP_Pixel.py + python gen/make_GP_Pixel.py $(INCLUDE_PREFIX)GP_Pixel.gen.h GP_Pixel.gen.c
-----------------------------------------------------------------------
Summary of changes: gen.mk | 27 +++++++++++++++++++++++++++ libs/core/Makefile | 9 ++++++++- 2 files changed, 35 insertions(+), 1 deletions(-) create mode 100644 gen.mk
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos@gmail.com if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.