VirtualBox

Changeset 10185 in vbox for trunk


Ignore:
Timestamp:
Jul 4, 2008 1:48:28 AM (16 years ago)
Author:
vboxsync
Message:

Converting to sub-makefile...

File:
1 edited

Legend:

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

    r10184 r10185  
    5353        $(PATH_$(REM_MOD))/gen-op.h \
    5454        $(PATH_$(REM_MOD))/opc.h
     55
     56#
     57# Globals
     58#
     59VBOX_PATH_RECOMPILER_SRC := $(PATH_SUB_CURRENT)
    5560
    5661
     
    311316VBoxREMImp_LDFLAGS.l4       = -T$(L4_LIBDIR)/../main_rel.ld -nostdlib
    312317
    313 $(PATH_TARGET)/VBoxREMImp.c: VBoxREM.def Sun/deftoimp.sed Makefile.kmk | $(call DIRDEP,$(PATH_TARGET))
     318$(PATH_TARGET)/VBoxREMImp.c: $(VBOX_PATH_RECOMPILER_SRC)/VBoxREM.def $(VBOX_PATH_RECOMPILER_SRC)/Sun/deftoimp.sed Makefile.kmk | $(call DIRDEP,$(PATH_TARGET))
    314319        $(call MSG_GENERATE,,$@)
    315320        $(QUIET)$(MKDIR) -p $(PATH_TARGET)
     
    320325        $(QUIET)$(APPEND) [email protected] '#endif'
    321326        $(QUIET)$(APPEND) [email protected] ''
    322         $(QUIET)$(SED) -f Sun/deftoimp.sed VBoxREM.def >> [email protected]
     327        $(QUIET)$(SED) -f $(VBOX_PATH_RECOMPILER_SRC)/Sun/deftoimp.sed $< >> [email protected]
    323328        $(QUIET)$(MV) -f [email protected] $@
    324329
    325 $(VBoxREMImp_SOURCES.os2): VBoxREM.def $(MAKEFILE) | $(call DIRDEP,$(PATH_TARGET))
     330$(VBoxREMImp_SOURCES.os2): $(VBOX_PATH_RECOMPILER_SRC)/VBoxREM.def $(MAKEFILE) | $(call DIRDEP,$(PATH_TARGET))
    326331        $(SED) \
    327332                -e 's/^[ \t][ \t]*REMR3/    _REMR3/' \
    328333                -e 's/\.[Dd][Ll][Ll]//' \
    329334                -e 's/^LIBRARY .*/LIBRARY VBoxREM INITINSTANCE TERMINSTANCE\nDATA MULTIPLE\n/' \
    330                 VBoxREM.def > [email protected]
     335                $< > [email protected]
    331336        $(MV) -f [email protected] $@
    332337
     
    413418# The rule.
    414419$(PATH_$(REM_MOD))/op.S: \
    415                 target-i386/op.c \
    416                 Sun/staged-op-elf-$(KBUILD_TARGET_ARCH).S \
    417                 Sun/op-validate.sed \
    418                 Sun/op-darwin.sed \
    419                 Sun/op-undefined.lst \
    420                 Makefile.kmk \
     420                $(VBOX_PATH_RECOMPILER_SRC)/target-i386/op.c \
     421                $(VBOX_PATH_RECOMPILER_SRC)/Sun/staged-op-elf-$(KBUILD_TARGET_ARCH).S \
     422                $(VBOX_PATH_RECOMPILER_SRC)/Sun/op-validate.sed \
     423                $(VBOX_PATH_RECOMPILER_SRC)/Sun/op-darwin.sed \
     424                $(VBOX_PATH_RECOMPILER_SRC)/Sun/op-undefined.lst \
     425                $(VBOX_PATH_RECOMPILER_SRC)/Makefile.kmk \
    421426                $(comp-cmds COMPILE_OP_CMDS,COMPILE_OP_CMDS_PREV,FORCE) \
    422427                | $(call DIRDEP,$(PATH_$(REM_MOD)))
     
    434439        else \
    435440                $(ECHO_EXT) "Using staged op.S [gcc v$${major_ver}.$${minor_ver}.$${bugfix_ver}]" && \
    436                 $(CP_EXT) -f Sun/staged-op-elf-$(KBUILD_TARGET_ARCH).S [email protected]; \
     441                $(CP_EXT) -f $(VBOX_PATH_RECOMPILER_SRC)/Sun/staged-op-elf-$(KBUILD_TARGET_ARCH).S [email protected]; \
    437442        fi
    438443else
    439         $(CP) Sun/staged-op-elf-$(KBUILD_TARGET_ARCH).S [email protected]
    440 endif
    441         $(SED) -f Sun/op-validate.sed [email protected]
     444        $(CP) $(VBOX_PATH_RECOMPILER_SRC)/Sun/staged-op-elf-$(KBUILD_TARGET_ARCH).S [email protected]
     445endif
     446        $(SED) -f $(VBOX_PATH_RECOMPILER_SRC)/Sun/op-validate.sed [email protected]
    442447ifeq ($(KBUILD_TARGET),darwin)
    443         $(SED) -f Sun/op-darwin.sed [email protected] > [email protected]
    444         $(SED) -e 's/^\(.*\)$$/#define \1 _\1/' Sun/op-undefined.lst > [email protected]
     448        $(SED) -f $(VBOX_PATH_RECOMPILER_SRC)/Sun/op-darwin.sed [email protected] > [email protected]
     449        $(SED) -e 's/^\(.*\)$$/#define \1 _\1/' $(VBOX_PATH_RECOMPILER_SRC)/Sun/op-undefined.lst > [email protected]
    445450        $(CAT_EXT) [email protected] >> [email protected]
    446451endif
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