Lines Matching +full:local +full:- +full:dir
1 # Mesa 3-D graphics library
3 # Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
4 # Copyright (C) 2010-2011 LunarG Inc.
30 intermediates := $(call local-generated-sources-dir)
31 prebuilt_intermediates := $(MESA_TOP)/prebuilt-intermediates
49 MESA_GEN_GLSL_H := $(addprefix $(call local-generated-sources-dir)/, \
54 define local-l-or-ll-to-c-or-cpp
55 @mkdir -p $(dir $@)
57 $(hide) $(LEX) --nounistd -o$@ $<
60 define glsl_local-y-to-c-and-h
61 @mkdir -p $(dir $@)
63 $(hide) $(YACC) -o $@ -p "glcpp_parser_" $<
68 define local-yy-to-cpp-and-h
69 @mkdir -p $(dir $@)
71 $(hide) $(YACC) -p "_mesa_glsl_" -o $@ $<
77 rm -f $(@:$1=$(YACC_HEADER_SUFFIX))
81 $(call local-l-or-ll-to-c-or-cpp)
84 $(call local-yy-to-cpp-and-h,.cpp)
88 $(intermediates)/glsl/glcpp/glcpp-lex.c: $(LOCAL_PATH)/glsl/glcpp/glcpp-lex.l
89 $(call local-l-or-ll-to-c-or-cpp)
91 $(intermediates)/glsl/glcpp/glcpp-parse.c: $(LOCAL_PATH)/glsl/glcpp/glcpp-parse.y
92 $(call glsl_local-y-to-c-and-h)
95 cp -a $< $@
98 cp -a $< $@
101 cp -a $< $@