make/gensrc/Gensrc-jdk.hotspot.agent.gmk
changeset 50854 55db6189e827
parent 50848 efaf00d8858a
child 53683 48ff68e2fe5c
equal deleted inserted replaced
50853:5ee8decaf35e 50854:55db6189e827
    33 SA_PROPERTIES := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.hotspot.agent/sa.properties
    33 SA_PROPERTIES := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.hotspot.agent/sa.properties
    34 
    34 
    35 SA_BUILD_VERSION_PROP_NAME := "sun.jvm.hotspot.runtime.VM.saBuildVersion"
    35 SA_BUILD_VERSION_PROP_NAME := "sun.jvm.hotspot.runtime.VM.saBuildVersion"
    36 
    36 
    37 $(SA_PROPERTIES): $(call DependOnVariable, VERSION_STRING)
    37 $(SA_PROPERTIES): $(call DependOnVariable, VERSION_STRING)
    38 	$(MKDIR) -p $(@D)
    38 	$(call MakeTargetDir)
    39 	$(ECHO) "$(SA_BUILD_VERSION_PROP_NAME)=$(VERSION_STRING)" > $@
    39 	$(ECHO) "$(SA_BUILD_VERSION_PROP_NAME)=$(VERSION_STRING)" > $@
    40 
    40 
    41 TARGETS += $(SA_PROPERTIES)
    41 TARGETS += $(SA_PROPERTIES)
    42 
    42 
    43 ################################################################################
    43 ################################################################################
    47   MACH_EXC_HEADER := $(MIG_OUTPUT_DIR)/mach_exc.h
    47   MACH_EXC_HEADER := $(MIG_OUTPUT_DIR)/mach_exc.h
    48   MACH_EXC_USER := $(MIG_OUTPUT_DIR)/mach_excUser.c
    48   MACH_EXC_USER := $(MIG_OUTPUT_DIR)/mach_excUser.c
    49   MACH_EXC_SERVER := $(MIG_OUTPUT_DIR)/mach_excServer.c
    49   MACH_EXC_SERVER := $(MIG_OUTPUT_DIR)/mach_excServer.c
    50 
    50 
    51   $(MACH_EXC_SERVER): $(SDKROOT)/usr/include/mach/mach_exc.defs
    51   $(MACH_EXC_SERVER): $(SDKROOT)/usr/include/mach/mach_exc.defs
    52 	$(MIG) -isysroot $(SDKROOT) -server $@ -user $(MACH_EXC_USER) \
    52 	$(call MakeTargetDir)
       
    53 	$(MIG) $(if $(SDKROOT), -isysroot $(SDKROOT)) \
       
    54 	    -server $@ -user $(MACH_EXC_USER) \
    53 	    -header $(MACH_EXC_HEADER) $(SDKROOT)/usr/include/mach/mach_exc.defs
    55 	    -header $(MACH_EXC_HEADER) $(SDKROOT)/usr/include/mach/mach_exc.defs
    54 
    56 
    55   TARGETS += $(MACH_EXC_SERVER)
    57   TARGETS += $(MACH_EXC_SERVER)
    56 endif
    58 endif
    57 
    59