VirtualBox

Ignore:
Timestamp:
Sep 9, 2008 12:47:19 AM (16 years ago)
Author:
vboxsync
Message:

recompiler/Makefile: some PATH_TARGET elimination.

File:
1 edited

Legend:

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

    r11805 r12246  
    307307endif
    308308VBoxREMImp_SOURCES.win      = VBoxREM.def
    309 VBoxREMImp_SOURCES.os2      = $(PATH_TARGET)/VBoxREMOS2.def
     309VBoxREMImp_SOURCES.os2      = $(PATH_VBoxREMImp)/VBoxREMOS2.def
    310310ifeq ($(filter win os2,$(KBUILD_TARGET)),)
    311 VBoxREMImp_SOURCES          = $(PATH_TARGET)/VBoxREMImp.c
    312 VBoxREMImp_CLEAN            = $(PATH_TARGET)/VBoxREMImp.c
     311VBoxREMImp_SOURCES          = $(PATH_VBoxREMImp)/VBoxREMImp.c
     312VBoxREMImp_CLEAN            = $(PATH_VBoxREMImp)/VBoxREMImp.c
    313313endif
    314314ifneq ($(filter-out darwin os2 win,$(KBUILD_TARGET)),)
     
    318318VBoxREMImp_LDFLAGS.l4       = -T$(L4_LIBDIR)/../main_rel.ld -nostdlib
    319319
    320 $(PATH_TARGET)/VBoxREMImp.c: $(VBOX_PATH_RECOMPILER_SRC)/VBoxREM.def $(VBOX_PATH_RECOMPILER_SRC)/Sun/deftoimp.sed $(MAKEFILE_CURRENT) | $(call DIRDEP,$(PATH_TARGET))
     320$$(PATH_VBoxREMImp)/VBoxREMImp.c: $(VBOX_PATH_RECOMPILER_SRC)/VBoxREM.def $(VBOX_PATH_RECOMPILER_SRC)/Sun/deftoimp.sed $(MAKEFILE_CURRENT) | $$(dir $$@)
    321321        $(call MSG_GENERATE,,$@)
    322         $(QUIET)$(MKDIR) -p $(PATH_TARGET)
    323         $(QUIET)$(APPEND) [email protected] '#ifdef VBOX_HAVE_VISIBILITY_HIDDEN'
    324         $(QUIET)$(APPEND) [email protected] '# define EXPORT __attribute__((visibility("default")))'
    325         $(QUIET)$(APPEND) [email protected] '#else'
    326         $(QUIET)$(APPEND) [email protected] '# define EXPORT'
    327         $(QUIET)$(APPEND) [email protected] '#endif'
    328         $(QUIET)$(APPEND) [email protected] ''
    329         $(QUIET)$(SED) -f $(VBOX_PATH_RECOMPILER_SRC)/Sun/deftoimp.sed $< >> [email protected]
    330         $(QUIET)$(MV) -f [email protected] $@
    331 
    332 $(VBoxREMImp_SOURCES.os2): $(VBOX_PATH_RECOMPILER_SRC)/VBoxREM.def $(MAKEFILE_CURRENT) | $(call DIRDEP,$(PATH_TARGET))
     322        $(QUIET)$(APPEND) -t $@ '#ifdef VBOX_HAVE_VISIBILITY_HIDDEN'
     323        $(QUIET)$(APPEND)    $@ '# define EXPORT __attribute__((visibility("default")))'
     324        $(QUIET)$(APPEND)    $@ '#else'
     325        $(QUIET)$(APPEND)    $@ '# define EXPORT'
     326        $(QUIET)$(APPEND)    $@ '#endif'
     327        $(QUIET)$(APPEND)    $@ ''
     328        $(QUIET)$(SED) -f $(VBOX_PATH_RECOMPILER_SRC)/Sun/deftoimp.sed --append $@ $<
     329
     330$$(PATH_VBoxREMImp)/VBoxREMOS2.def: $(VBOX_PATH_RECOMPILER_SRC)/VBoxREM.def $(MAKEFILE_CURRENT) | $$(dir $$@)
    333331        $(SED) \
    334332                -e 's/^[ \t][ \t]*REMR3/    _REMR3/' \
    335333                -e 's/\.[Dd][Ll][Ll]//' \
    336334                -e 's/^LIBRARY .*/LIBRARY VBoxREM INITINSTANCE TERMINSTANCE\nDATA MULTIPLE\n/' \
    337                 $< > [email protected]
    338         $(MV) -f [email protected] $@
     335                --output $@ \
     336                $<
    339337
    340338include $(KBUILD_PATH)/subfooter.kmk
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