Changeset 2224 in kBuild for trunk/src/ash/Makefile.kmk
- Timestamp:
- Jan 8, 2009 1:19:16 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ash/Makefile.kmk
r2019 r2224 5 5 6 6 # 7 # Copyright (c) 2005-200 8knut st. osmundsen <[email protected]>7 # Copyright (c) 2005-2009 knut st. osmundsen <[email protected]> 8 8 # 9 9 # This file is part of kBuild. … … 77 77 bltin/kill.c \ 78 78 bltin/test.c \ 79 $(PATH_kmk_ash)/arith.c \80 79 $(PATH_kmk_ash)/builtins.c \ 81 80 $(PATH_kmk_ash)/init.c \ … … 98 97 99 98 kmk_ash_INTERMEDIATES = \ 100 $(PATH_kmk_ash)/arith.h \101 99 $(PATH_kmk_ash)/builtins.h \ 102 100 $(PATH_kmk_ash)/nodes.h \ … … 104 102 kmk_ash_CLEAN = \ 105 103 $(kmk_ash_INTERMEDIATES) \ 106 $(PATH_kmk_ash)/arith.c \107 $(PATH_kmk_ash)/arith_lex.c \108 104 $(PATH_kmk_ash)/builtins.c \ 109 105 $(PATH_kmk_ash)/init.c \ … … 140 136 # 141 137 142 ifeq (1,2) #disabled for now. 143 kmk_ash_USES = lex #yacc 144 kmk_ash_SOURCES += arith_lex.l 138 USES += lex yacc 139 kmk_ash_USES = lex yacc 145 140 kmk_ash_LEXTOOL = FLEX 146 141 kmk_ash_LEXFLAGS = -8 147 else 148 kmk_ash_SOURCES += $(PATH_kmk_ash)/arith_lex.c 149 endif 142 #kmk_ash_YACCTOOL = BISON 143 kmk_ash_YACCTOOL = YACC 144 kmk_ash_YACCFLAGS = -ld 145 kmk_ash_SOURCES += \ 146 arith.y \ 147 arith_lex.l 148 150 149 151 150 include $(FILE_KBUILD_SUB_FOOTER) … … 160 159 # 161 160 BOOTSTRAP_SHELL ?= $(SHELL) 162 ifndef YACC163 YACC := $(firstword $(which byacc) $(which yacc) yacc)164 endif165 166 $(PATH_kmk_ash)/arith.h + $(PATH_kmk_ash)/arith.c: $(kmk_ash_PATH)/arith.y | $(call DIRDEP,$(PATH_kmk_ash))167 $(YACC) -ld $^168 $(MV) -f y.tab.c $(PATH_kmk_ash)/arith.c169 $(MV) -f y.tab.h $(PATH_kmk_ash)/arith.h170 171 ifndef kmk_ash_LEXTOOL172 $(PATH_kmk_ash)/arith_lex.c: $(kmk_ash_PATH)/arith_lex.l | $(call DIRDEP,$(PATH_kmk_ash))173 flex -8 -o$@ $^ # 8-bit lex scanner for arithmetic174 endif175 161 176 162 $(PATH_kmk_ash)/builtins.h + $(PATH_kmk_ash)/builtins.c: \ … … 202 188 203 189 endif # generate on the fly 190
Note:
See TracChangeset
for help on using the changeset viewer.