Changeset 1665


Ignore:
Timestamp:
Jun 30, 2008, 11:14:11 PM (17 years ago)
Author:
bird
Message:

Converted to a sub-makefile setup ('single' makefile).

Location:
trunk
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/Config.kmk

    r1605 r1665  
    256256
    257257
    258 LIB_KDEP = $(PATH_OBJ)/src/lib/kDep/$(TOOL_$(TEMPLATE_LIB_TOOL)_ARLIBPREF)kDep$(TOOL_$(TEMPLATE_LIB_TOOL)_ARLIBSUFF)
    259 LIB_KUTIL = $(PATH_OBJ)/src/lib/kUtil/$(TOOL_$(TEMPLATE_LIB_TOOL)_ARLIBPREF)kUtil$(TOOL_$(TEMPLATE_LIB_TOOL)_ARLIBSUFF)
    260 
    261 
     258LIB_KDEP = $(PATH_OBJ)/kDep/$(TOOL_$(TEMPLATE_LIB_TOOL)_ARLIBPREF)kDep$(TOOL_$(TEMPLATE_LIB_TOOL)_ARLIBSUFF)
     259LIB_KUTIL = $(PATH_OBJ)/kUtil/$(TOOL_$(TEMPLATE_LIB_TOOL)_ARLIBPREF)kUtil$(TOOL_$(TEMPLATE_LIB_TOOL)_ARLIBSUFF)
     260
     261
  • TabularUnified trunk/Makefile.kmk

    r1544 r1665  
    11# $Id$
    22## @file
    3 # Top-Level Makefile for kBuild.
     3# Top-Level Sub-Makefile for kBuild.
    44#
    55
     
    2525#
    2626
    27 DEPTH = .
    28 include $(PATH_KBUILD)/header.kmk
     27SUB_DEPTH = .
     28include $(KBUILD_PATH)/subheader.kmk
    2929
    30 SUBDIRS = src
     30include $(PATH_SUB_CURRENT)/src/Makefile.kmk
    3131
    3232
     
    7373
    7474
    75 include $(FILE_KBUILD_FOOTER)
     75include $(FILE_KBUILD_SUB_FOOTER)
    7676
  • TabularUnified trunk/src/Makefile.kmk

    r1509 r1665  
    11# $Id$
    22## @file
    3 # Makefile for the source directory.
     3# Sub-makefile for the source directory.
    44#
    55
     
    2525#
    2626
    27 DEPTH = ..
    28 include $(PATH_KBUILD)/header.kmk
     27SUB_DEPTH = ..
     28include $(KBUILD_PATH)/subheader.kmk
    2929
    30 SUBDIRS = lib kmk sed kDepPre kObjCache
     30include $(PATH_SUB_CURRENT)/lib/Makefile.kmk
     31include $(PATH_SUB_CURRENT)/kmk/Makefile.kmk
     32include $(PATH_SUB_CURRENT)/sed/Makefile.kmk
     33include $(PATH_SUB_CURRENT)/kDepPre/Makefile.kmk
     34include $(PATH_SUB_CURRENT)/kObjCache/Makefile.kmk
    3135ifneq ($(KBUILD_TARGET),win)
    32 SUBDIRS += ash
     36 include $(PATH_SUB_CURRENT)/ash/Makefile.kmk
    3337endif
    3438
    35 include $(FILE_KBUILD_FOOTER)
     39include $(FILE_KBUILD_SUB_FOOTER)
    3640
  • TabularUnified trunk/src/ash/Makefile.kmk

    r1624 r1665  
    11# $Id: Makefile.kmk 785 2007-01-24 22:21:56Z bird $
    22## @file
    3 # ash
     3# Sub-makefile for kmk_ash.
    44#
    55
     
    2525#
    2626
    27 DEPTH = ../..
    28 include $(PATH_KBUILD)/header.kmk
     27SUB_DEPTH = ../..
     28include $(KBUILD_PATH)/subheader.kmk
    2929
    3030#INSTALLS = ash.man
     
    4646kmk_ash_DEFS.freebsd = \
    4747        HAVE_SYS_SIGNAME HAVE_SYSCTL_H HAVE_SETPROGNAME
    48 kmk_ash_INCS = $(PATH_TARGET) . # (the last is because of error.h)
    49 kmk_ash_CFLAGS.win = -I. ## @todo kBuild bug.
     48kmk_ash_INCS = $(PATH_kmk_ash) . # (the last is because of error.h)
     49kmk_ash_CFLAGS.win = -I. ## @todo kBuild bug?
    5050kmk_ash_INCS.win = win
    5151kmk_ash_SOURCES = \
     
    7575        bltin/kill.c \
    7676        bltin/test.c \
    77         $(PATH_TARGET)/arith.c \
    78         $(PATH_TARGET)/builtins.c \
    79         $(PATH_TARGET)/init.c \
    80         $(PATH_TARGET)/nodes.c
     77        $(PATH_kmk_ash)/arith.c \
     78        $(PATH_kmk_ash)/builtins.c \
     79        $(PATH_kmk_ash)/init.c \
     80        $(PATH_kmk_ash)/nodes.c
    8181kmk_ash_SOURCES.linux = \
    8282        sys_signame.c \
     
    9696
    9797kmk_ash_INTERMEDIATES = \
    98         $(PATH_TARGET)/arith.h \
    99         $(PATH_TARGET)/builtins.h \
    100         $(PATH_TARGET)/nodes.h \
    101         $(PATH_TARGET)/token.h
     98        $(PATH_kmk_ash)/arith.h \
     99        $(PATH_kmk_ash)/builtins.h \
     100        $(PATH_kmk_ash)/nodes.h \
     101        $(PATH_kmk_ash)/token.h
    102102kmk_ash_CLEAN = \
    103103        $(kmk_ash_INTERMEDIATES) \
    104         $(PATH_TARGET)/arith.c \
    105         $(PATH_TARGET)/arith_lex.c \
    106         $(PATH_TARGET)/builtins.c \
    107         $(PATH_TARGET)/init.c \
    108         $(PATH_TARGET)/nodes.c
     104        $(PATH_kmk_ash)/arith.c \
     105        $(PATH_kmk_ash)/arith_lex.c \
     106        $(PATH_kmk_ash)/builtins.c \
     107        $(PATH_kmk_ash)/init.c \
     108        $(PATH_kmk_ash)/nodes.c
    109109
    110110kmk_ash.man_TEMPLATE = usr.bin.man
     
    115115
    116116if1of ($(KBUILD_TARGET), win nt)
    117 
    118117#
    119118# Use the pregenerated code.
    120119#
    121120kmk_ash_DEPS :=
    122 kmk_ash_SOURCES += $(PATH_TARGET)/arith_lex.c
     121kmk_ash_SOURCES += $(PATH_kmk_ash)/arith_lex.c
     122
     123include $(FILE_KBUILD_SUB_FOOTER)
    123124
    124125define def_copy_generated
    125 $(PATH_TARGET)/$(src): generated/$(src)
     126$(PATH_kmk_ash)/$(src): generated/$(src)
    126127        $$(RM) -f $$@
    127128        $$(CP) -f $$^ $$@
    128 kmk_ash_DEPS += $(PATH_TARGET)/$(src)
    129129endef
    130130
     
    132132$(eval $(def_copy_generated)))
    133133
    134 include $(FILE_KBUILD_FOOTER)
    135134
    136135else
     136#
     137# Generate the code on the fly.
     138#
    137139
    138140ifeq (1,2) #disabled for now.
     
    142144kmk_ash_LEXFLAGS = -8
    143145else
    144 kmk_ash_SOURCES += $(PATH_TARGET)/arith_lex.c
     146kmk_ash_SOURCES += $(PATH_kmk_ash)/arith_lex.c
    145147endif
    146148
    147 include $(FILE_KBUILD_FOOTER)
     149include $(FILE_KBUILD_SUB_FOOTER)
    148150
    149151#
     
    160162endif
    161163
    162 $(PATH_TARGET)/arith.h + $(PATH_TARGET)/arith.c: arith.y | $(call DIRDEP,$(PATH_TARGET))
     164$(PATH_kmk_ash)/arith.h + $(PATH_kmk_ash)/arith.c: $(kmk_ash_PATH)/arith.y | $(call DIRDEP,$(PATH_kmk_ash))
    163165        $(YACC) -ld $^
    164         $(MV) -f y.tab.c $(PATH_TARGET)/arith.c
    165         $(MV) -f y.tab.h $(PATH_TARGET)/arith.h
     166        $(MV) -f y.tab.c $(PATH_kmk_ash)/arith.c
     167        $(MV) -f y.tab.h $(PATH_kmk_ash)/arith.h
    166168
    167169ifndef kmk_ash_LEXTOOL
    168 $(PATH_TARGET)/arith_lex.c: arith_lex.l | $(call DIRDEP,$(PATH_TARGET))
     170$(PATH_kmk_ash)/arith_lex.c: $(kmk_ash_PATH)/arith_lex.l | $(call DIRDEP,$(PATH_kmk_ash))
    169171        flex -8 -o$@ $^                     # 8-bit lex scanner for arithmetic
    170172endif
    171173
    172 $(PATH_TARGET)/builtins.h + $(PATH_TARGET)/builtins.c: $(PATH_CURRENT)/mkbuiltins shell.h builtins.def | $(call DIRDEP,$(PATH_TARGET))
     174$(PATH_kmk_ash)/builtins.h + $(PATH_kmk_ash)/builtins.c: \
     175                $(kmk_ash_PATH)/mkbuiltins \
     176                $(kmk_ash_PATH)/shell.h \
     177                $(kmk_ash_PATH)/builtins.def \
     178                | $(call DIRDEP,$(PATH_kmk_ash))
    173179        $(BOOTSTRAP_SHELL) $+ $(dir $@)
    174         [ -f $(PATH_TARGET)/builtins.h ]
    175 
    176 $(PATH_TARGET)/nodes.h + $(PATH_TARGET)/nodes.c: $(PATH_CURRENT)/mknodes.sh nodetypes nodes.c.pat | $(call DIRDEP,$(PATH_TARGET))
     180        [ -f $(PATH_kmk_ash)/builtins.h ]
     181
     182$(PATH_kmk_ash)/nodes.h + $(PATH_kmk_ash)/nodes.c: \
     183                $(kmk_ash_PATH)/mknodes.sh \
     184                $(kmk_ash_PATH)/nodetypes \
     185                $(kmk_ash_PATH)/nodes.c.pat \
     186                | $(call DIRDEP,$(PATH_kmk_ash))
    177187        $(BOOTSTRAP_SHELL) $+ $(dir $@)
    178188        [ -f $(dir $@)/nodes.h ]
    179189
    180 $(PATH_TARGET)/token.h: $(PATH_CURRENT)/mktokens | $(call DIRDEP,$(PATH_TARGET))
     190$(PATH_kmk_ash)/token.h: $(kmk_ash_PATH)/mktokens | $(call DIRDEP,$(PATH_kmk_ash))
    181191        $(BOOTSTRAP_SHELL) $+
    182192        $(MV) token.h $@
    183193
    184 $(PATH_TARGET)/init.c: $(PATH_CURRENT)/mkinit.sh $(filter-out $(PATH_TARGET)/%,$(kmk_ash_SOURCES)) | $(call DIRDEP,$(PATH_TARGET))
     194$(PATH_kmk_ash)/init.c: \
     195                $(kmk_ash_PATH)/mkinit.sh \
     196                $(abspathex $(filter-out $(PATH_kmk_ash)/%,$(kmk_ash_SOURCES)), $(kmk_ash_PATH)) \
     197                | $(call DIRDEP,$(PATH_kmk_ash))
    185198        $(BOOTSTRAP_SHELL) $+
    186199        $(MV) init.c $@
    187200
    188 endif
     201endif # generate on the fly
  • TabularUnified trunk/src/fastdep/Makefile.kmk

    r1509 r1665  
    11# $Id: Makefile.kmk 785 2007-01-24 22:21:56Z bird $
    22## @file
    3 # Testing the VAC308 tool / ancient dependency generator.
     3# Sub-makefile for testing the VAC308 tool / ancient dependency generator.
    44#
    55
     
    2525#
    2626
    27 DEPTH = ../..
    28 include $(PATH_KBUILD)/header.kmk
     27SUB_DEPTH = ../..
     28include $(KBUILD_PATH)/subheader.kmk
    2929
    3030
     
    5555
    5656
    57 include $(FILE_KBUILD_FOOTER)
     57include $(FILE_KBUILD_SUB_FOOTER)
    5858
  • TabularUnified trunk/src/kDepPre/Makefile.kmk

    r1509 r1665  
    11# $Id$
    22## @file
    3 # kDepPre - Precompiler base dependency generator.
     3# Sub-makefile for kDepPre, the precompiler based dependency generator.
    44#
    55
     
    2525#
    2626
    27 DEPTH = ../..
    28 include $(PATH_KBUILD)/header.kmk
     27SUB_DEPTH = ../..
     28include $(KBUILD_PATH)/subheader.kmk
    2929
    3030PROGRAMS += kDepPre
     
    3535kDepPre_DEFS           += NEED_ISBLANK=1 __WIN32__=1
    3636endif
    37 kDepPre_SOURCES         = $(PATH_CURRENT)/kDepPre.c
     37kDepPre_SOURCES         = kDepPre.c
    3838
    39 include $(FILE_KBUILD_FOOTER)
     39include $(FILE_KBUILD_SUB_FOOTER)
     40
  • TabularUnified trunk/src/kObjCache/Makefile.kmk

    r1509 r1665  
    11# $Id: Makefile.kmk 785 2007-01-24 22:21:56Z bird $
    22## @file
    3 # kObjCache
     3# Sub-makefile for kObjCache.
    44#
    55
     
    2525#
    2626
    27 DEPTH ?= ../..
    28 #SUB_DEPTH = ../..
     27SUB_DEPTH = ../..
    2928include $(PATH_KBUILD)/subheader.kmk
    3029
  • TabularUnified trunk/src/kash/Makefile.kmk

    r1604 r1665  
    11# $Id$
    22## @file
    3 # kBuild Makefile for kash.
     3# Sub-makefile for kash.
    44#
    55
     
    2525#
    2626
    27 DEPTH = ../..
    28 include $(PATH_KBUILD)/header.kmk
     27SUB_DEPTH = ../..
     28include $(KBUILD_PATH)/subheader.kmk
    2929
    3030#
     
    4949kash_DEFS.freebsd = \
    5050        HAVE_SYS_SIGNAME HAVE_SYSCTL_H HAVE_SETPROGNAME
    51 kash_INCS = $(PATH_TARGET) . # (the last is because of error.h)
     51kash_INCS = $(PATH_kash) . # (the last is because of error.h)
    5252kash_SOURCES = \
    5353        main.c \
     
    7777        bltin/test.c \
    7878        \
    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 \
    8484        \
    8585        setmode.c \
     
    9898
    9999kash_ORDERDEPS = \
    100         $(PATH_TARGET)/arith.h \
    101         $(PATH_TARGET)/builtins.h \
    102         $(PATH_TARGET)/nodes.h \
    103         $(PATH_TARGET)/token.h
     100        $(PATH_kash)/arith.h \
     101        $(PATH_kash)/builtins.h \
     102        $(PATH_kash)/nodes.h \
     103        $(PATH_kash)/token.h
    104104kash_CLEAN = \
    105105        $(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.c
     106        $(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
    111111
    112112##
     
    125125kash_ORDERDEPS :=
    126126kash_INCS += generated
    127 kash_SOURCES := $(patsubst $(PATH_TARGET)/%,generated/%,$(kash_SOURCES))
     127kash_SOURCES := $(patsubst $(PATH_kash)/%,generated/%,$(kash_SOURCES))
    128128
    129 include $(FILE_KBUILD_FOOTER)
     129include $(FILE_KBUILD_SUB_FOOTER)
    130130
    131131else
    132132
    133 include $(FILE_KBUILD_FOOTER)
     133include $(FILE_KBUILD_SUB_FOOTER)
    134134
    135135#
     
    144144YACC ?= yacc
    145145
    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))
    147147        $(YACC) -ld $^
    148         $(MV) -f y.tab.c $(PATH_TARGET)/arith.c
    149         $(MV) -f y.tab.h $(PATH_TARGET)/arith.h
     148        $(MV) -f y.tab.c $(PATH_kash)/arith.c
     149        $(MV) -f y.tab.h $(PATH_kash)/arith.h
    150150
    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))
    152152        flex -8 -o$@ $^                     # 8-bit lex scanner for arithmetic
    153153
    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))
    155155        $(BOOTSTRAP_SHELL) $+ $(dir $@)
    156         [ -f $(PATH_TARGET)/builtins.h ]
     156        [ -f $(PATH_kash)/builtins.h ]
    157157
    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))
    159159        $(BOOTSTRAP_SHELL) $+ $(dir $@)
    160160        [ -f $(dir $@)/nodes.h ]
    161161
    162 $(PATH_TARGET)/token.h: $(PATH_CURRENT)/mktokens | $(call DIRDEP,$(PATH_TARGET))
     162$(PATH_kash)/token.h: $(kash_PATH)/mktokens | $(call DIRDEP,$(PATH_kash))
    163163        $(BOOTSTRAP_SHELL) $+
    164164        $(MV) token.h $@
    165165
    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))
    167167        $(BOOTSTRAP_SHELL) $+
    168168        $(MV) init.c $@
  • TabularUnified trunk/src/kmk/Makefile.kmk

    r1604 r1665  
    11# $Id$
    22## @file
    3 # kmk / GNU Make
     3# Sub-makefile for kmk / GNU Make.
    44#
    55
     
    2525#
    2626
    27 
    28 DEPTH = ../..
    29 include $(PATH_KBUILD)/header.kmk
     27SUB_DEPTH = ../..
     28include $(KBUILD_PATH)/subheader.kmk
    3029
    3130
     
    3938        $(TEMPLATE_BIN_DEFS) \
    4039        KBUILD_SVN_REV=$(KBUILD_SVN_REV)
    41 TEMPLATE_BIN-KMK_DEPS = $(PATH_TARGET)/config.h
     40TEMPLATE_BIN-KMK_DEPS = $(PATH_kmk)/config.h
    4241TEMPLATE_BIN-KMK_CLEAN = $(TEMPLATE_BIN-KMK_DEPS)
    4342TEMPLATE_BIN-KMK_DEPS.solaris = \
    44         $(PATH_TARGET)/fts.h \
    45         $(PATH_TARGET)/paths.h
     43        $(PATH_kmk)/fts.h \
     44        $(PATH_kmk)/paths.h
    4645TEMPLATE_BIN-KMK_CLEAN.solaris = $(TEMPLATE_BIN-KMK_DEPS.solaris)
    4746TEMPLATE_BIN-KMK_DEPS.win     = \
    48         $(PATH_TARGET)/fts.h \
    49         $(PATH_TARGET)/sysexits.h \
    50         $(PATH_TARGET)/unistd.h \
    51         $(PATH_TARGET)/paths.h \
    52         $(PATH_TARGET)/grp.h \
    53         $(PATH_TARGET)/pwd.h \
    54         $(PATH_TARGET)/inttypes.h
     47        $(PATH_kmk)/fts.h \
     48        $(PATH_kmk)/sysexits.h \
     49        $(PATH_kmk)/unistd.h \
     50        $(PATH_kmk)/paths.h \
     51        $(PATH_kmk)/grp.h \
     52        $(PATH_kmk)/pwd.h \
     53        $(PATH_kmk)/inttypes.h
    5554TEMPLATE_BIN-KMK_CFLAGS.win.amd64 = $(TEMPLATE_BIN_CFLAGS.win.amd64) -wd4244 -wd4267
    5655TEMPLATE_BIN-KMK_CLEAN.win = $(TEMPLATE_BIN-KMK_DEPS.win)
    57 TEMPLATE_BIN-KMK_INCS = $(PATH_TARGET) . $(TEMPLATE_BIN_INCS)
     56TEMPLATE_BIN-KMK_INCS = $(PATH_kmk) . $(TEMPLATE_BIN_INCS)
    5857TEMPLATE_BIN-KMK_INCS.darwin = glob
    5958TEMPLATE_BIN-KMK_INCS.dragonfly = glob
     
    6362ifdef ELECTRIC_HEAP # for electric heap (see electric.c) - windows only.
    6463ifeq ($(KBUILD_TARGET),win)
    65  TEMPLATE_BIN-KMK_CFLAGS = $(TEMPLATE_BIN_CFLAGS) /FI$(PATH_CURRENT)/electric.h -DELECTRIC_HEAP=1
     64 TEMPLATE_BIN-KMK_CFLAGS = $(TEMPLATE_BIN_CFLAGS) /FI$(kmk_PATH)/electric.h -DELECTRIC_HEAP=1
    6665else
    67  TEMPLATE_BIN-KMK_CFLAGS = $(TEMPLATE_BIN_CFLAGS) -include $(PATH_CURRENT)/electric.h -DELECTRIC_HEAP=1
     66 TEMPLATE_BIN-KMK_CFLAGS = $(TEMPLATE_BIN_CFLAGS) -include $(kmk_PATH)/electric.h -DELECTRIC_HEAP=1
    6867endif
    6968endif
     
    377376
    378377
    379 include $(FILE_KBUILD_FOOTER)
     378include $(FILE_KBUILD_SUB_FOOTER)
    380379
    381380
     
    383382# Use checked in config.h instead of running ./Configure for it.
    384383#
    385 config.h.$(KBUILD_TARGET) := config.h.$(KBUILD_TARGET)
    386 $(PATH_TARGET)/config.h: $(config.h.$(KBUILD_TARGET))
     384kmk_config.h.$(KBUILD_TARGET) := $(kmk_PATH)/config.h.$(KBUILD_TARGET)
     385$(PATH_kmk)/config.h: $(kmk_config.h.$(KBUILD_TARGET))
    387386        $(MKDIR) -p $(dir $@)
    388387        $(CP) $^ $@
     
    391390# Some missing headers.
    392391#
    393 $(PATH_TARGET)/fts.h: kmkbuiltin/ftsfake.h | $(call DIRDEP,$(PATH_TARGET))
     392$(PATH_kmk)/fts.h: kmkbuiltin/ftsfake.h | $(call DIRDEP,$(PATH_kmk))
    394393        $(CP) $^ $@
    395394
    396 $(PATH_TARGET)/unistd.h: | $(call DIRDEP,$(PATH_TARGET))
    397         $(ECHO_EXT) > $@
    398 
    399 $(PATH_TARGET)/sysexits.h: | $(call DIRDEP,$(PATH_TARGET))
    400         $(ECHO_EXT) > $@
    401 
    402 $(PATH_TARGET)/inttypes.h: | $(call DIRDEP,$(PATH_TARGET))
    403         $(ECHO_EXT) > $@
    404 
    405 $(PATH_TARGET)/paths.h: | $(call DIRDEP,$(PATH_TARGET))
    406         $(ECHO_EXT) > $@
    407 
    408 $(PATH_TARGET)/pwd.h: | $(call DIRDEP,$(PATH_TARGET))
    409         $(ECHO_EXT) > $@
    410 
    411 $(PATH_TARGET)/grp.h: | $(call DIRDEP,$(PATH_TARGET))
     395$(PATH_kmk)/unistd.h: | $(call DIRDEP,$(PATH_kmk))
     396        $(ECHO_EXT) > $@
     397
     398$(PATH_kmk)/sysexits.h: | $(call DIRDEP,$(PATH_kmk))
     399        $(ECHO_EXT) > $@
     400
     401$(PATH_kmk)/inttypes.h: | $(call DIRDEP,$(PATH_kmk))
     402        $(ECHO_EXT) > $@
     403
     404$(PATH_kmk)/paths.h: | $(call DIRDEP,$(PATH_kmk))
     405        $(ECHO_EXT) > $@
     406
     407$(PATH_kmk)/pwd.h: | $(call DIRDEP,$(PATH_kmk))
     408        $(ECHO_EXT) > $@
     409
     410$(PATH_kmk)/grp.h: | $(call DIRDEP,$(PATH_kmk))
    412411        $(ECHO_EXT) > $@
    413412
     
    463462
    464463test_stack:
    465         $(MAKE) -f testcase-stack.kmk
     464        $(MAKE) -f $(kmk_PATH)/testcase-stack.kmk
    466465
    467466test_math:
    468         $(MAKE) -f testcase-math.kmk
     467        $(MAKE) -f $(kmk_PATH)/testcase-math.kmk
    469468
    470469test_if1of:
    471         $(MAKE) -f testcase-if1of.kmk
     470        $(MAKE) -f $(kmk_PATH)/testcase-if1of.kmk
    472471
    473472test_local:
    474         $(MAKE) -f testcase-local.kmk
     473        $(MAKE) -f $(kmk_PATH)/testcase-local.kmk
    475474
    476475test_30_continued_on_failure_worker:
  • TabularUnified trunk/src/kmk/w32/Makefile.kmk

    r1509 r1665  
    11# $Id: Makefile.kmk 785 2007-01-24 22:21:56Z bird $
    22## @file
    3 # tstFileInfo / w32
     3# Sub-makefile for tstFileInfo / w32.
    44#
    55
     
    2525#
    2626
    27 
    28 DEPTH = ../../..
    29 include $(PATH_KBUILD)/header.kmk
     27SUB_DEPTH = ../../..
     28include $(KBUILD_PATH)/subheader.kmk
    3029
    3130#
     
    3635tstFileInfo_SOURCES = tstFileInfo.c
    3736
    38 include $(FILE_KBUILD_FOOTER)
     37include $(FILE_KBUILD_SUB_FOOTER)
     38
  • TabularUnified trunk/src/lib/Makefile.kmk

    r1509 r1665  
    11# $Id$
    22## @file
    3 # Various libraries and stuff.
     3# Sub-makefile for various libraries and stuff.
    44#
    55
     
    2525#
    2626
    27 DEPTH = ../..
    28 include $(PATH_KBUILD)/header.kmk
     27SUB_DEPTH = ../..
     28include $(KBUILD_PATH)/subheader.kmk
    2929
    3030LIBRARIES += kDep
     
    5252wrapper_NOINST = 1
    5353
    54 include $(FILE_KBUILD_FOOTER)
     54include $(FILE_KBUILD_SUB_FOOTER)
    5555
  • TabularUnified trunk/src/sed/Makefile.kmk

    r1604 r1665  
    11# $Id$
    22## @file
    3 # sed
     3# Sub-Makefile for kmk_sed.
    44#
    55
     
    2525#
    2626
    27 DEPTH = ../..
    28 include $(PATH_KBUILD)/header.kmk
     27SUB_DEPTH = ../..
     28include $(KBUILD_PATH)/subheader.kmk
    2929
    3030#
     
    3535kmk_sed_TEMPLATE = BIN
    3636kmk_sed_DEPS = \
    37         $(PATH_TARGET)/config.h \
    38         $(PATH_TARGET)/regex.h
     37        $(PATH_kmk_sed)/config.h \
     38        $(PATH_kmk_sed)/regex.h
    3939kmk_sed_CLEAN = $(kmk_sed_DEPS)
    4040kmk_sed_INCS = \
    41         $(PATH_TARGET) \
     41        $(PATH_kmk_sed) \
    4242        . \
    4343        lib \
     
    7979        ../lib/startuphacks-win.c
    8080
    81 include $(FILE_KBUILD_FOOTER)
     81include $(FILE_KBUILD_SUB_FOOTER)
    8282
    8383#
    8484# Use checked in config.h instead of running ./configure for it.
    8585#
    86 config.h.$(KBUILD_TARGET) := config.h.$(KBUILD_TARGET)
     86kmk_sed_config.h.$(KBUILD_TARGET) := $(kmk_sed_PATH)/config.h.$(KBUILD_TARGET)
    8787
    88 $(PATH_TARGET)/config.h: $(config.h.$(KBUILD_TARGET)) | $(call DIRDEP,$(PATH_TARGET))
    89         $(CP) $^ $@
     88$(PATH_kmk_sed)/config.h: $(kmk_sed_config.h.$(KBUILD_TARGET)) | $(call DIRDEP,$(PATH_kmk_sed))
     89        $(CP) -f $^ $@
    9090
    9191#
    9292# Use the regex lib shipped with sed and not anything installed on the system.
    9393#
    94 $(PATH_TARGET)/regex.h: lib/regex_.h | $(call DIRDEP,$(PATH_TARGET))
    95         $(CP) $^ $@
     94$(PATH_kmk_sed)/regex.h: $(kmk_sed_PATH)/lib/regex_.h | $(call DIRDEP,$(PATH_kmk_sed))
     95        $(CP) -f $^ $@
    9696
Note: See TracChangeset for help on using the changeset viewer.