Changeset 2224 for trunk/kBuild
- Timestamp:
- Jan 8, 2009, 2:19:16 AM (17 years ago)
- Location:
- trunk/kBuild
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/FLEX.kmk
r2018 r2224 5 5 6 6 # 7 # Copyright (c) 2008 knut st. osmundsen <bird-src-spam@anduin.net>7 # Copyright (c) 2008-2009 knut st. osmundsen <bird-src-spam@anduin.net> 8 8 # 9 9 # This file is part of kBuild. … … 34 34 TOOL_FLEX = flex 35 35 TOOL_FLEX_LEX ?= flex$(HOSTSUFF_EXE) 36 TOOL_FLEX_LEXFLAGS ?= 36 37 #TOOL_FLEX_LEXFLAGS ?= 38 TOOL_FLEX_LEX_OUT_FILE = $(evalcall KB_FN_OPT_TEST_SHORT_LONG,+,--c++,$(flags),$(outbase).cpp,$(outbase).c) 37 39 TOOL_FLEX_LEX_OUTPUT = 40 TOOL_FLEX_LEX_OUTPUT_MAYBE = 38 41 TOOL_FLEX_LEX_DEPEND = 39 42 TOOL_FLEX_LEX_DEPORD = 40 43 define TOOL_FLEX_LEX_CMDS 41 $( TOOL_FLEX_LEX) $(flags) -o $(out) $(source)44 $(QUIET)$(TOOL_FLEX_LEX) $(flags) -o $(out) $(source) 42 45 endef 43 46 44 -
trunk/kBuild/units/lex.kmk
r2018 r2224 5 5 6 6 # 7 # Copyright (c) 2008 knut st. osmundsen <bird-src-spam@anduin.net>7 # Copyright (c) 2008-2009 knut st. osmundsen <bird-src-spam@anduin.net> 8 8 # 9 9 # This file is part of kBuild. … … 32 32 # 33 33 34 ifdef UNIT_lex 35 $(error kBuild: The lex unit was included twice!) 36 endif 34 37 UNIT_lex = lex 38 39 # Add our target properties. 40 PROPS_TOOLS += LEXTOOL 41 PROPS_SINGLE += LEXTOOL 42 PROPS_ACCUMULATE_R += LEXFLAGS 35 43 36 44 # Add ourselves to the default source handlers. … … 73 81 _OUT_FILES += $(out) $(output_extra) $(output_maybe) 74 82 $(target)_GEN_SOURCES_ += $(out) 83 $(target)_INTERMEDIATES += $(intermediates) 75 84 76 85 endef # def_lex_rule … … 125 134 local output_maybe := $(TOOL_$(tool)_LEX_OUTPUT_MAYBE) 126 135 local deps += $(TOOL_$(tool)_LEX_DEPEND) $(source) 127 local orderdeps += $(TOOL_$(tool)_LEX_DEPORD) 136 local orderdeps += $(TOOL_$(tool)_LEX_DEPORD) $(dirdep) 137 138 # Whether it generates a header file depends on the tool / flags. 139 local intermediates := $(filter %.h %.hpp %.h++ %.H,$(output_extra)) 128 140 129 141 # generate the rule.
Note:
See TracChangeset
for help on using the changeset viewer.