From c9609d433e795dc468e0696f57c0fb838182fb1c Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Fri, 25 May 2012 18:27:04 -0500 Subject: connectivity: use gbuild api for flex (this hide a -Werror problem on Mac) Change-Id: I7b5551932db6e3e6037ad4f98ed77a29b4dec5db --- connectivity/Library_dbtools.mk | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'connectivity') diff --git a/connectivity/Library_dbtools.mk b/connectivity/Library_dbtools.mk index 33de116632cd..3336815c93e0 100644 --- a/connectivity/Library_dbtools.mk +++ b/connectivity/Library_dbtools.mk @@ -79,22 +79,14 @@ $(eval $(call gb_Library_add_noexception_objects,dbtools,\ $(eval $(call gb_Library_add_grammars,dbtools,\ connectivity/source/parse/sqlbison \ )) - -$(SRCDIR)/connectivity/source/parse/sqlflex.l: $(call gb_YaccTarget_get_target,connectivity/source/parse/sqlbison) -$(WORKDIR)/CustomTarget/connectivity/sqlflex.cxx: $(SRCDIR)/connectivity/source/parse/sqlflex.l - mkdir -p $(dir $@) - flex -i -8 -PSQLyy -L -o$@ $< +$(eval $(call gb_Library_add_scanners,dbtools,\ +connectivity/source/parse/sqlflex \ +)) -$(call gb_Library_get_clean_target,dbtools): dbtools_flex_clean +$(call gb_LexTarget_get_scanner_target,connectivity/source/parse/sqlflex) : T_LEXFLAGS := -i -8 -PSQLyy -L -.PHONY: dbtools_flex_clean -dbtools_flex_clean: - rm -rf $(WORKDIR)/CustomTarget/connectivity -$(eval $(call gb_Library_add_generated_exception_objects,dbtools,\ - CustomTarget/connectivity/sqlflex \ -)) $(eval $(call gb_Library_add_exception_objects,dbtools,\ connectivity/source/commontools/predicateinput \ -- cgit