Print this page
4719 Common patchset for jdk1.7 support preparation

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libdtrace_jni/java/Makefile
          +++ new/usr/src/lib/libdtrace_jni/java/Makefile
↓ open down ↓ 68 lines elided ↑ open up ↑
  69   69          $(INS.file)
  70   70  
  71   71  # Manifest files
  72   72  APIMANI= $(MANIFEST)/dtrace.mf
  73   73  MANIFESTS= $(APIMANI)
  74   74  
  75   75  # Controlled CLASSPATH for making
  76   76  APICLASSPATH=$(CLASSES):$(APIJAVASRC)
  77   77  
  78   78  # javac flags
  79      -JFLAGS= -g -d $(CLASSES) -sourcepath $(APICLASSPATH) -deprecation
  80      -JFLAGS += -target 1.5
  81      -JFLAGS += -Xlint
       79 +JFLAGS= -g -d $(CLASSES) -sourcepath $(APICLASSPATH)
       80 +JFLAGS += -source 1.5 -target 1.6
       81 +JFLAGS += -Xlint:all,-rawtypes,-options
  82   82  
  83   83  # The default make rule for Java files
  84   84  COMPILE.java=$(JAVAC) $(JFLAGS)
  85   85  
  86   86  $(CLASSES)/$(PKGPATH)/%.class:  $(APIJAVASRC)/$(PKGPATH)/%.java
  87   87                                  $(COMPILE.java) $<
  88   88  
  89   89  # javah generated headers
  90   90  APIHDR= LocalConsumer.h
  91      -JNIHDRS=$(JNI)/$(APIHDRS)
       91 +JNIHDRS=$(JNI)/$(APIHDR)
  92   92  
  93   93  # API classes with native methods
  94   94  JNI_CLASSNAMES=\
  95   95      LocalConsumer
  96   96  
  97   97  JNI_CLASSES=${JNI_CLASSNAMES:%=%.class}
  98   98  DTRACE_JNI_CLASSES=${JNI_CLASSES:%=$(CLASSES)/$(PKGPATH)/%}
  99   99  JNI_FULL_CLASSNAMES=${JNI_CLASSNAMES:%=$(PKGNAME).%}
 100  100  
 101  101  # All API classes
↓ open down ↓ 148 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX