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

Print this page




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




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