< prev index next >

hotspot/make/lib/CompileDtracePostJvm.gmk

Print this page




 169     # $(call MakeDir, $(DTRACE_SUPPORT_DIR))
 170     # $(call ExecuteWithLog, $(DTRACE_SUPPORT_DIR)/$(@F).d, $(CC) -E \
 171     #     $(DTRACE_CPP_FLAGS) -I$(DTRACE_SUPPORT_DIR) $^ \
 172     #     > $(DTRACE_SUPPORT_DIR)/$(@F).d)
 173     # $(call ExecuteWithLog, $@, $(DTRACE) $(DTRACE_FLAGS) -o $@ \
 174     #     -s $(DTRACE_SUPPORT_DIR)/$(@F).d)
 175 
 176     ############################################################################
 177     # Build the stand-alone dtrace libraries
 178 
 179     LIBJVM_DTRACE_OUTPUTDIR := $(JVM_VARIANT_OUTPUTDIR)/libjvm_dtrace
 180 
 181     $(eval $(call SetupNativeCompilation, BUILD_LIBJVM_DTRACE, \
 182         LIBRARY := jvm_dtrace, \
 183         OUTPUT_DIR := $(LIBJVM_DTRACE_OUTPUTDIR), \
 184         SRC := $(HOTSPOT_TOPDIR)/src/os/solaris/dtrace, \
 185         INCLUDE_FILES := jvm_dtrace.c, \
 186         CFLAGS := -m64 -G -mt -KPIC, \
 187         LDFLAGS := -m64 -mt -xnolib $(SHARED_LIBRARY_FLAGS), \
 188         LIBS := $(LIBDL) -lc -lthread -ldoor, \
 189         MAPFILE := $(HOTSPOT_TOPDIR)/makefiles/mapfiles/libjvm_dtrace/mapfile-vers, \
 190         OBJECT_DIR := $(LIBJVM_DTRACE_OUTPUTDIR)/objs, \
 191         STRIP_SYMBOLS := true, \
 192     ))
 193 
 194     LIBJVM_DB_OUTPUTDIR := $(JVM_VARIANT_OUTPUTDIR)/libjvm_db
 195 
 196     # Note that libjvm_db.c has tests for COMPILER2, but this was never set by
 197     # the old build.
 198     $(eval $(call SetupNativeCompilation, BUILD_LIBJVM_DB, \
 199         LIBRARY := jvm_db, \
 200         OUTPUT_DIR := $(LIBJVM_DB_OUTPUTDIR), \
 201         SRC := $(HOTSPOT_TOPDIR)/src/os/solaris/dtrace, \
 202         INCLUDE_FILES := libjvm_db.c, \
 203         CFLAGS := -I$(JVM_VARIANT_OUTPUTDIR)/gensrc -I$(DTRACE_SUPPORT_DIR) \
 204             -m64 -G -mt -KPIC, \
 205         LDFLAGS := -m64 -mt -xnolib $(SHARED_LIBRARY_FLAGS), \
 206         LIBS := -lc, \
 207         MAPFILE := $(HOTSPOT_TOPDIR)/makefiles/mapfiles/libjvm_db/mapfile-vers, \
 208         OBJECT_DIR := $(LIBJVM_DB_OUTPUTDIR)/objs, \
 209         STRIP_SYMBOLS := true, \
 210     ))
 211 
 212     # We need the generated JvmOffsets.h before we can compile the libjvm_db source code.
 213     $(BUILD_LIBJVM_DB_ALL_OBJS): $(JVM_OFFSETS_H)
 214 
 215     TARGETS += $(BUILD_LIBJVM_DTRACE) $(BUILD_LIBJVM_DB)
 216   endif
 217 endif


 169     # $(call MakeDir, $(DTRACE_SUPPORT_DIR))
 170     # $(call ExecuteWithLog, $(DTRACE_SUPPORT_DIR)/$(@F).d, $(CC) -E \
 171     #     $(DTRACE_CPP_FLAGS) -I$(DTRACE_SUPPORT_DIR) $^ \
 172     #     > $(DTRACE_SUPPORT_DIR)/$(@F).d)
 173     # $(call ExecuteWithLog, $@, $(DTRACE) $(DTRACE_FLAGS) -o $@ \
 174     #     -s $(DTRACE_SUPPORT_DIR)/$(@F).d)
 175 
 176     ############################################################################
 177     # Build the stand-alone dtrace libraries
 178 
 179     LIBJVM_DTRACE_OUTPUTDIR := $(JVM_VARIANT_OUTPUTDIR)/libjvm_dtrace
 180 
 181     $(eval $(call SetupNativeCompilation, BUILD_LIBJVM_DTRACE, \
 182         LIBRARY := jvm_dtrace, \
 183         OUTPUT_DIR := $(LIBJVM_DTRACE_OUTPUTDIR), \
 184         SRC := $(HOTSPOT_TOPDIR)/src/os/solaris/dtrace, \
 185         INCLUDE_FILES := jvm_dtrace.c, \
 186         CFLAGS := -m64 -G -mt -KPIC, \
 187         LDFLAGS := -m64 -mt -xnolib $(SHARED_LIBRARY_FLAGS), \
 188         LIBS := $(LIBDL) -lc -lthread -ldoor, \
 189         MAPFILE := $(HOTSPOT_TOPDIR)/make/mapfiles/libjvm_dtrace/mapfile-vers, \
 190         OBJECT_DIR := $(LIBJVM_DTRACE_OUTPUTDIR)/objs, \
 191         STRIP_SYMBOLS := true, \
 192     ))
 193 
 194     LIBJVM_DB_OUTPUTDIR := $(JVM_VARIANT_OUTPUTDIR)/libjvm_db
 195 
 196     # Note that libjvm_db.c has tests for COMPILER2, but this was never set by
 197     # the old build.
 198     $(eval $(call SetupNativeCompilation, BUILD_LIBJVM_DB, \
 199         LIBRARY := jvm_db, \
 200         OUTPUT_DIR := $(LIBJVM_DB_OUTPUTDIR), \
 201         SRC := $(HOTSPOT_TOPDIR)/src/os/solaris/dtrace, \
 202         INCLUDE_FILES := libjvm_db.c, \
 203         CFLAGS := -I$(JVM_VARIANT_OUTPUTDIR)/gensrc -I$(DTRACE_SUPPORT_DIR) \
 204             -m64 -G -mt -KPIC, \
 205         LDFLAGS := -m64 -mt -xnolib $(SHARED_LIBRARY_FLAGS), \
 206         LIBS := -lc, \
 207         MAPFILE := $(HOTSPOT_TOPDIR)/make/mapfiles/libjvm_db/mapfile-vers, \
 208         OBJECT_DIR := $(LIBJVM_DB_OUTPUTDIR)/objs, \
 209         STRIP_SYMBOLS := true, \
 210     ))
 211 
 212     # We need the generated JvmOffsets.h before we can compile the libjvm_db source code.
 213     $(BUILD_LIBJVM_DB_ALL_OBJS): $(JVM_OFFSETS_H)
 214 
 215     TARGETS += $(BUILD_LIBJVM_DTRACE) $(BUILD_LIBJVM_DB)
 216   endif
 217 endif
< prev index next >