diff options
author | Chia-I Wu <[email protected]> | 2011-08-08 10:40:12 +0900 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2011-08-13 13:57:10 +0800 |
commit | 786e5a2fb47e39c67a342eb22d84c665d058ee10 (patch) | |
tree | 64db732a5d66190a8eae62b0e30a7b4e0f7473c4 /src/mapi/shared-glapi | |
parent | 5076561b35b9c2c78f277ab03bf1e642094ee20e (diff) |
glapi: add glapi_gen.mk to help header generation
glapi_gen.mk is supposed to be included by glapi users to simplify
header generation. This commit also makes es1api, es2api, and
shared-glapi use it.
Reviewed-by: Brian Paul <[email protected]>
[olv: updated after reviewing to prefix all variables in glapi_gen.mk by
glapi_gen]
Diffstat (limited to 'src/mapi/shared-glapi')
-rw-r--r-- | src/mapi/shared-glapi/Makefile | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mapi/shared-glapi/Makefile b/src/mapi/shared-glapi/Makefile index c928f822c81..3de864d891c 100644 --- a/src/mapi/shared-glapi/Makefile +++ b/src/mapi/shared-glapi/Makefile @@ -34,17 +34,16 @@ $(glapi_OBJECTS): %.o: $(MAPI)/%.c $(glapi_SOURCES): glapi_mapi_tmp.h -.PHONY: glapi_mapi_tmp.h -glapi_mapi_tmp.h: - @$(MAKE) -C $(GLAPI)/gen-es shared-glapi +include $(GLAPI)/gen/glapi_gen.mk +glapi_mapi_tmp.h: $(GLAPI)/gen/gl_and_es_API.xml $(glapi_gen_mapi_deps) + $(call glapi_gen_mapi,$<,shared-glapi) .PHONY: clean clean: -rm -f $(TOP)/$(LIB_DIR)/$(GLAPI_LIB_NAME) -rm -f $(glapi_OBJECTS) -rm -f depend depend.bak - @# clean generated sources/headers - @$(MAKE) -C $(GLAPI)/gen-es clean-shared-glapi + -rm -f glapi_mapi_tmp.h install: $(INSTALL) -d $(DESTDIR)$(INSTALL_LIB_DIR) |