VirtualBox

Changeset 1665 in kBuild for trunk/src/kash/Makefile.kmk


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 $@
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette