Ignore:
Timestamp:
Nov 26, 2006, 2:46:21 PM (19 years ago)
Author:
bird
Message:

MSC hacking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ash/Makefile.kmk

    r630 r632  
    1717kmk_ash_DEFS.linux = BSD
    1818kmk_ash_DEFS.win = \
    19         PC_PATH_SEP PC_DRIVE_LETTERS PC_EXE_EXTS
     19        BSD PC_PATH_SEP PC_DRIVE_LETTERS PC_EXE_EXTS
    2020kmk_ash_DEFS.os2 = \
    2121        HAVE_SYS_SIGNAME HAVE_SYSCTL_H HAVE_SETPROGNAME \
    2222        EXEC_HASH_BANG_SCRIPT PC_OS2_LIBPATHS PC_PATH_SEP PC_DRIVE_LETTERS PC_EXE_EXTS
    2323kmk_ash_INCS = $(PATH_TARGET) . # (the last is because of error.h)
     24kmk_ash_INCS.win = win
    2425kmk_ash_SOURCES = \
    2526        alias.c \
     
    5758        strlcpy.c \
    5859        setmode.c
     60#kmk_ash_SOURCES.win = \
     61#       win/mscfakes.c
     62
    5963kmk_ash_DEPS = \
    6064        $(PATH_TARGET)/arith.h \
     
    7579#ash.man_SYMLINKS = \
    7680#       ash.1.gz=>sh.1
     81
     82
     83
     84ifeq ($(filter-out nt win win32 win64,$(BUILD_TARGET)),)
     85
     86#
     87# Use the pregenerated code.
     88#
     89kmk_ash_DEPS :=
     90
     91define def_copy_generated
     92$(PATH_TARGET)/$(src): generated/$(src)
     93        $$(RM) -f $$@
     94        $$(CP) -f $$^ $$@
     95kmk_ash_DEPS += $(PATH_TARGET)/$(src)
     96endef
     97
     98$(foreach src, arith.h arith.c arith_lex.c builtins.h builtins.c nodes.h nodes.c token.h init.c,\
     99$(eval $(def_copy_generated)))
     100
     101include $(PATH_KBUILD)/footer.kmk
     102
     103else
    77104
    78105include $(PATH_KBUILD)/footer.kmk
     
    112139        $(MV) init.c $@
    113140
     141endif
Note: See TracChangeset for help on using the changeset viewer.