make/hotspot/gensrc/GensrcDtrace.gmk
branchihse-cflags-rewrite-branch
changeset 56231 66bf73fcdf4d
parent 47217 72e3ae9a25eb
child 56312 a52bcf4118eb
equal deleted inserted replaced
56212:d1a4766aa7ac 56231:66bf73fcdf4d
     1 #
     1 #
     2 # Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
     2 # Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4 #
     4 #
     5 # This code is free software; you can redistribute it and/or modify it
     5 # This code is free software; you can redistribute it and/or modify it
     6 # under the terms of the GNU General Public License version 2 only, as
     6 # under the terms of the GNU General Public License version 2 only, as
     7 # published by the Free Software Foundation.  Oracle designates this
     7 # published by the Free Software Foundation.  Oracle designates this
    44   # the dtrace tool pick it on it's own.
    44   # the dtrace tool pick it on it's own.
    45   $(DTRACE_GENSRC_DIR)/%.h: $(DTRACE_SOURCE_DIR)/%.d
    45   $(DTRACE_GENSRC_DIR)/%.h: $(DTRACE_SOURCE_DIR)/%.d
    46 	$(call LogInfo, Generating dtrace header file $(@F))
    46 	$(call LogInfo, Generating dtrace header file $(@F))
    47 	$(call MakeDir, $(@D) $(DTRACE_SUPPORT_DIR))
    47 	$(call MakeDir, $(@D) $(DTRACE_SUPPORT_DIR))
    48 	$(call ExecuteWithLog, $(DTRACE_SUPPORT_DIR)/$(@F).d, \
    48 	$(call ExecuteWithLog, $(DTRACE_SUPPORT_DIR)/$(@F).d, \
    49 	    ( $(CC) -E $(DTRACE_CPP_FLAGS) $< > $(DTRACE_SUPPORT_DIR)/$(@F).d ) )
    49 	    $(CPP) $(DTRACE_CPP_FLAGS) $< > $(DTRACE_SUPPORT_DIR)/$(@F).d)
    50 	$(call ExecuteWithLog, $@, $(DTRACE) $(DTRACE_FLAGS) -h -o $@ -s $(DTRACE_SUPPORT_DIR)/$(@F).d)
    50 	$(call ExecuteWithLog, $@, $(DTRACE) $(DTRACE_FLAGS) -h -o $@ -s $(DTRACE_SUPPORT_DIR)/$(@F).d)
    51 
    51 
    52   # Process all .d files in DTRACE_SOURCE_DIR. They are:
    52   # Process all .d files in DTRACE_SOURCE_DIR. They are:
    53   # hotspot_jni.d hotspot.d hs_private.d
    53   # hotspot_jni.d hotspot.d hs_private.d
    54   TARGETS += $(patsubst $(DTRACE_SOURCE_DIR)/%.d, \
    54   TARGETS += $(patsubst $(DTRACE_SOURCE_DIR)/%.d, \