jdk/src/share/demo/jvmti/heapTracker/sample.makefile.txt

Print this page




  77     LIBRARIES=-L $(JDK)/jre/lib/$(LIBARCH) -ljava_crw_demo -lc
  78     # Building a shared library
  79     LINK_SHARED=$(LINK.c) -G -o $@
  80 endif
  81 
  82 # Linux GNU C Compiler
  83 ifeq ($(OSNAME), linux)
  84     # GNU Compiler options needed to build it
  85     COMMON_FLAGS=-fno-strict-aliasing -fPIC -fno-omit-frame-pointer
  86     # Options that help find errors
  87     COMMON_FLAGS+= -W -Wall  -Wno-unused -Wno-parentheses
  88     ifeq ($(OPT), true)
  89         CFLAGS=-O2 $(COMMON_FLAGS) 
  90     else
  91         CFLAGS=-g $(COMMON_FLAGS) 
  92     endif
  93     # Object files needed to create library
  94     OBJECTS=$(SOURCES:%.c=%.o)
  95     # Library name and options needed to build it
  96     LIBRARY=lib$(LIBNAME).so
  97     LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text
  98     # Libraries we are dependent on
  99     LIBRARIES=-L $(JDK)/jre/lib/$(LIBARCH) -ljava_crw_demo -lc
 100     # Building a shared library
 101     LINK_SHARED=$(LINK.c) -shared -o $@
 102 endif
 103 
 104 # Windows Microsoft C/C++ Optimizing Compiler Version 12
 105 ifeq ($(OSNAME), win32)
 106     CC=cl
 107     # Compiler options needed to build it
 108     COMMON_FLAGS=-Gy -DWIN32
 109     # Options that help find errors
 110     COMMON_FLAGS+=-W0 -WX
 111     ifeq ($(OPT), true)
 112         CFLAGS= -Ox -Op -Zi $(COMMON_FLAGS) 
 113     else
 114         CFLAGS= -Od -Zi $(COMMON_FLAGS) 
 115     endif
 116     # Sources need java_crw_demo
 117     SOURCES += ../java_crw_demo/java_crw_demo.c




  77     LIBRARIES=-L $(JDK)/jre/lib/$(LIBARCH) -ljava_crw_demo -lc
  78     # Building a shared library
  79     LINK_SHARED=$(LINK.c) -G -o $@
  80 endif
  81 
  82 # Linux GNU C Compiler
  83 ifeq ($(OSNAME), linux)
  84     # GNU Compiler options needed to build it
  85     COMMON_FLAGS=-fno-strict-aliasing -fPIC -fno-omit-frame-pointer
  86     # Options that help find errors
  87     COMMON_FLAGS+= -W -Wall  -Wno-unused -Wno-parentheses
  88     ifeq ($(OPT), true)
  89         CFLAGS=-O2 $(COMMON_FLAGS) 
  90     else
  91         CFLAGS=-g $(COMMON_FLAGS) 
  92     endif
  93     # Object files needed to create library
  94     OBJECTS=$(SOURCES:%.c=%.o)
  95     # Library name and options needed to build it
  96     LIBRARY=lib$(LIBNAME).so
  97     LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
  98     # Libraries we are dependent on
  99     LIBRARIES=-L $(JDK)/jre/lib/$(LIBARCH) -ljava_crw_demo -lc
 100     # Building a shared library
 101     LINK_SHARED=$(LINK.c) -shared -o $@
 102 endif
 103 
 104 # Windows Microsoft C/C++ Optimizing Compiler Version 12
 105 ifeq ($(OSNAME), win32)
 106     CC=cl
 107     # Compiler options needed to build it
 108     COMMON_FLAGS=-Gy -DWIN32
 109     # Options that help find errors
 110     COMMON_FLAGS+=-W0 -WX
 111     ifeq ($(OPT), true)
 112         CFLAGS= -Ox -Op -Zi $(COMMON_FLAGS) 
 113     else
 114         CFLAGS= -Od -Zi $(COMMON_FLAGS) 
 115     endif
 116     # Sources need java_crw_demo
 117     SOURCES += ../java_crw_demo/java_crw_demo.c