Changeset 1665 in kBuild for trunk/src/kash/Makefile.kmk
- Timestamp:
- Jun 30, 2008 9:14:11 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/Makefile.kmk
r1604 r1665 1 1 # $Id$ 2 2 ## @file 3 # kBuild Makefile for kash.3 # Sub-makefile for kash. 4 4 # 5 5 … … 25 25 # 26 26 27 DEPTH = ../..28 include $( PATH_KBUILD)/header.kmk27 SUB_DEPTH = ../.. 28 include $(KBUILD_PATH)/subheader.kmk 29 29 30 30 # … … 49 49 kash_DEFS.freebsd = \ 50 50 HAVE_SYS_SIGNAME HAVE_SYSCTL_H HAVE_SETPROGNAME 51 kash_INCS = $(PATH_ TARGET) . # (the last is because of error.h)51 kash_INCS = $(PATH_kash) . # (the last is because of error.h) 52 52 kash_SOURCES = \ 53 53 main.c \ … … 77 77 bltin/test.c \ 78 78 \ 79 $(PATH_ TARGET)/arith.c \80 $(PATH_ TARGET)/arith_lex.c \81 $(PATH_ TARGET)/builtins.c \82 $(PATH_ TARGET)/init.c \83 $(PATH_ TARGET)/nodes.c \79 $(PATH_kash)/arith.c \ 80 $(PATH_kash)/arith_lex.c \ 81 $(PATH_kash)/builtins.c \ 82 $(PATH_kash)/init.c \ 83 $(PATH_kash)/nodes.c \ 84 84 \ 85 85 setmode.c \ … … 98 98 99 99 kash_ORDERDEPS = \ 100 $(PATH_ TARGET)/arith.h \101 $(PATH_ TARGET)/builtins.h \102 $(PATH_ TARGET)/nodes.h \103 $(PATH_ TARGET)/token.h100 $(PATH_kash)/arith.h \ 101 $(PATH_kash)/builtins.h \ 102 $(PATH_kash)/nodes.h \ 103 $(PATH_kash)/token.h 104 104 kash_CLEAN = \ 105 105 $(kash_ORDERDEPS) \ 106 $(PATH_ TARGET)/arith.c \107 $(PATH_ TARGET)/arith_lex.c \108 $(PATH_ TARGET)/builtins.c \109 $(PATH_ TARGET)/init.c \110 $(PATH_ TARGET)/nodes.c106 $(PATH_kash)/arith.c \ 107 $(PATH_kash)/arith_lex.c \ 108 $(PATH_kash)/builtins.c \ 109 $(PATH_kash)/init.c \ 110 $(PATH_kash)/nodes.c 111 111 112 112 ## … … 125 125 kash_ORDERDEPS := 126 126 kash_INCS += generated 127 kash_SOURCES := $(patsubst $(PATH_ TARGET)/%,generated/%,$(kash_SOURCES))127 kash_SOURCES := $(patsubst $(PATH_kash)/%,generated/%,$(kash_SOURCES)) 128 128 129 include $(FILE_KBUILD_ FOOTER)129 include $(FILE_KBUILD_SUB_FOOTER) 130 130 131 131 else 132 132 133 include $(FILE_KBUILD_ FOOTER)133 include $(FILE_KBUILD_SUB_FOOTER) 134 134 135 135 # … … 144 144 YACC ?= yacc 145 145 146 $(PATH_ TARGET)/arith.h $(PATH_TARGET)/arith.c: arith.y | $(call DIRDEP,$(PATH_TARGET))146 $(PATH_kash)/arith.h $(PATH_kash)/arith.c: arith.y | $(call DIRDEP,$(PATH_kash)) 147 147 $(YACC) -ld $^ 148 $(MV) -f y.tab.c $(PATH_ TARGET)/arith.c149 $(MV) -f y.tab.h $(PATH_ TARGET)/arith.h148 $(MV) -f y.tab.c $(PATH_kash)/arith.c 149 $(MV) -f y.tab.h $(PATH_kash)/arith.h 150 150 151 $(PATH_ TARGET)/arith_lex.c: arith_lex.l | $(call DIRDEP,$(PATH_TARGET))151 $(PATH_kash)/arith_lex.c: arith_lex.l | $(call DIRDEP,$(PATH_kash)) 152 152 flex -8 -o$@ $^ # 8-bit lex scanner for arithmetic 153 153 154 $(PATH_ TARGET)/builtins.h $(PATH_TARGET)/builtins.c: $(PATH_CURRENT)/mkbuiltins shell.h builtins.def | $(call DIRDEP,$(PATH_TARGET))154 $(PATH_kash)/builtins.h $(PATH_kash)/builtins.c: $(kash_PATH)/mkbuiltins shell.h builtins.def | $(call DIRDEP,$(PATH_kash)) 155 155 $(BOOTSTRAP_SHELL) $+ $(dir $@) 156 [ -f $(PATH_ TARGET)/builtins.h ]156 [ -f $(PATH_kash)/builtins.h ] 157 157 158 $(PATH_ TARGET)/nodes.h $(PATH_TARGET)/nodes.c: $(PATH_CURRENT)/mknodes.sh nodetypes nodes.c.pat | $(call DIRDEP,$(PATH_TARGET))158 $(PATH_kash)/nodes.h $(PATH_kash)/nodes.c: $(kash_PATH)/mknodes.sh nodetypes nodes.c.pat | $(call DIRDEP,$(PATH_kash)) 159 159 $(BOOTSTRAP_SHELL) $+ $(dir $@) 160 160 [ -f $(dir $@)/nodes.h ] 161 161 162 $(PATH_ TARGET)/token.h: $(PATH_CURRENT)/mktokens | $(call DIRDEP,$(PATH_TARGET))162 $(PATH_kash)/token.h: $(kash_PATH)/mktokens | $(call DIRDEP,$(PATH_kash)) 163 163 $(BOOTSTRAP_SHELL) $+ 164 164 $(MV) token.h $@ 165 165 166 $(PATH_ TARGET)/init.c: $(PATH_CURRENT)/mkinit.sh $(filter-out $(PATH_TARGET)/%,$(kash_SOURCES)) | $(call DIRDEP,$(PATH_TARGET))166 $(PATH_kash)/init.c: $(kash_PATH)/mkinit.sh $(filter-out $(PATH_kash)/%,$(kash_SOURCES)) | $(call DIRDEP,$(PATH_kash)) 167 167 $(BOOTSTRAP_SHELL) $+ 168 168 $(MV) init.c $@
Note:
See TracChangeset
for help on using the changeset viewer.