Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 78850 invoked from network); 29 Nov 2006 18:56:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Nov 2006 18:56:20 -0000 Received: (qmail 97230 invoked by uid 500); 29 Nov 2006 18:56:29 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 97210 invoked by uid 500); 29 Nov 2006 18:56:29 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 97201 invoked by uid 99); 29 Nov 2006 18:56:29 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Nov 2006 10:56:29 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Nov 2006 10:56:17 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id 1E3CB1A9846; Wed, 29 Nov 2006 10:55:39 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r480680 - in /harmony/enhanced/jdktools/trunk: ./ make/ modules/jpda/ modules/jpda/make/ modules/jpda/src/main/native/jdwp/linux/agent/ modules/jpda/src/main/native/jdwp/linux/transport/ modules/launcher/ modules/launcher/src/main/native/la... Date: Wed, 29 Nov 2006 18:55:38 -0000 To: commits@harmony.apache.org From: geirm@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20061129185539.1E3CB1A9846@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: geirm Date: Wed Nov 29 10:55:36 2006 New Revision: 480680 URL: http://svn.apache.org/viewvc?view=rev&rev=480680 Log: more tweaks to the build - trying to decouple as much as I can from HDK for now - we now can build and place everything in the deploy/jkd structure Added: harmony/enhanced/jdktools/trunk/make/defines.mak harmony/enhanced/jdktools/trunk/make/defines.mk harmony/enhanced/jdktools/trunk/make/makefile.include harmony/enhanced/jdktools/trunk/make/rules.mak harmony/enhanced/jdktools/trunk/make/rules.mk Modified: harmony/enhanced/jdktools/trunk/build.xml harmony/enhanced/jdktools/trunk/make/build-native.xml harmony/enhanced/jdktools/trunk/make/properties.xml harmony/enhanced/jdktools/trunk/modules/jpda/build.xml harmony/enhanced/jdktools/trunk/modules/jpda/make/hyproperties.xml harmony/enhanced/jdktools/trunk/modules/jpda/src/main/native/jdwp/linux/agent/makefile harmony/enhanced/jdktools/trunk/modules/jpda/src/main/native/jdwp/linux/transport/makefile harmony/enhanced/jdktools/trunk/modules/launcher/build.xml harmony/enhanced/jdktools/trunk/modules/launcher/src/main/native/launcher/linux/makefile Modified: harmony/enhanced/jdktools/trunk/build.xml URL: http://svn.apache.org/viewvc/harmony/enhanced/jdktools/trunk/build.xml?view=diff&rev=480680&r1=480679&r2=480680 ============================================================================== --- harmony/enhanced/jdktools/trunk/build.xml (original) +++ harmony/enhanced/jdktools/trunk/build.xml Wed Nov 29 10:55:36 2006 @@ -53,11 +53,14 @@ + + + @@ -100,6 +103,8 @@ + + @@ -111,7 +116,11 @@ ================================= --> - + + + + + - + + + + + + + + + @@ -79,7 +87,14 @@ depends="-make-clean" /> - + + + + + + + + Added: harmony/enhanced/jdktools/trunk/make/defines.mak URL: http://svn.apache.org/viewvc/harmony/enhanced/jdktools/trunk/make/defines.mak?view=auto&rev=480680 ============================================================================== --- harmony/enhanced/jdktools/trunk/make/defines.mak (added) +++ harmony/enhanced/jdktools/trunk/make/defines.mak Wed Nov 29 10:55:36 2006 @@ -0,0 +1,30 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +APPVER=4.0 +TARGETOS=WIN95 +_WIN32_IE=0x0500 +SEHMAP = TRUE +!include + +LIBPATH=$(HY_HDK)\lib\# comment to avoid \ being treated as continuation +EXEPATH=..\# ditto +DLLPATH=$(HY_HDK)\jdk\jre\bin\# ditto +SHAREDSUB=..\shared\# ditto + +HYCFLAGS = \ + -Ogityb1 -WX -GF -Gs -MD -Zi -Zm400 \ + -D_DLL -D_MT -DWIN32 -D_WIN32_WINNT=0x0400 -D_WINSOCKAPI_ -DWINVER=0x0400 \ + $(VMDEBUG) /I$(HY_HDK)\include /I$(HY_HDK)\jdk\include /I. Added: harmony/enhanced/jdktools/trunk/make/defines.mk URL: http://svn.apache.org/viewvc/harmony/enhanced/jdktools/trunk/make/defines.mk?view=auto&rev=480680 ============================================================================== --- harmony/enhanced/jdktools/trunk/make/defines.mk (added) +++ harmony/enhanced/jdktools/trunk/make/defines.mk Wed Nov 29 10:55:36 2006 @@ -0,0 +1,33 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# +# Configuration Makefile +# + +CXX = $(CC) +CPP = $(CC) -E +AS = as +AR = ar +DLL_LD = $(CC) +CXX_DLL_LD = $(CXX) + +EXEPATH=../ +LIBPATH=$(HY_HDK)/lib/ +DLLPATH=$(HY_HDK)/jdk/jre/bin/ +SHAREDSUB=../shared/ + +CFLAGS = -O1 $(HY_CFLAGS) -DLINUX -D_REENTRANT -DIPv6_FUNCTION_SUPPORT \ + -D$(HY_ARCH_DEFINE) $(VMDEBUG) -I$(HY_HDK)/include -I$(HY_HDK)/jdk/include -I. -I$(SHAREDSUB) Added: harmony/enhanced/jdktools/trunk/make/makefile.include URL: http://svn.apache.org/viewvc/harmony/enhanced/jdktools/trunk/make/makefile.include?view=auto&rev=480680 ============================================================================== --- harmony/enhanced/jdktools/trunk/make/makefile.include (added) +++ harmony/enhanced/jdktools/trunk/make/makefile.include Wed Nov 29 10:55:36 2006 @@ -0,0 +1,33 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# +# Configuration Makefile +# + +CXX = $(CC) +CPP = $(CC) -E +AS = as +AR = ar +DLL_LD = $(CC) +CXX_DLL_LD = $(CXX) + +EXEPATH=../ +LIBPATH=$(HY_HDK)/lib/ +DLLPATH=$(HY_HDK)/jdk/jre/bin/ +SHAREDSUB=../shared/ + +CFLAGS = -O1 $(HY_CFLAGS) -DLINUX -D_REENTRANT -DIPv6_FUNCTION_SUPPORT \ + -D$(HY_ARCH_DEFINE) $(VMDEBUG) -I$(HY_HDK)/include -I$(HY_HDK)/jdk/include -I. -I$(SHAREDSUB) Modified: harmony/enhanced/jdktools/trunk/make/properties.xml URL: http://svn.apache.org/viewvc/harmony/enhanced/jdktools/trunk/make/properties.xml?view=diff&rev=480680&r1=480679&r2=480680 ============================================================================== --- harmony/enhanced/jdktools/trunk/make/properties.xml (original) +++ harmony/enhanced/jdktools/trunk/make/properties.xml Wed Nov 29 10:55:36 2006 @@ -277,10 +277,13 @@ + LOCAL MAKE DEFN L ${hy.drlvm} @{dir} + + Added: harmony/enhanced/jdktools/trunk/make/rules.mak URL: http://svn.apache.org/viewvc/harmony/enhanced/jdktools/trunk/make/rules.mak?view=auto&rev=480680 ============================================================================== --- harmony/enhanced/jdktools/trunk/make/rules.mak (added) +++ harmony/enhanced/jdktools/trunk/make/rules.mak Wed Nov 29 10:55:36 2006 @@ -0,0 +1,59 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +.c.obj: + $(cc) $(cflags) $(HYCFLAGS) -Fo$*.obj $*.c + +.cpp.obj: + $(cc) $(cflags) $(HYCFLAGS) -Fo$*.obj $*.cpp + +.asm.obj: + ml /c /Cp /W3 /nologo /coff /Zm /Zd /Zi /Gd $(VMASMDEBUG) -DWIN32 $< + +.rc.res: + rc -I..\include $< + +all: $(DLLNAME) $(EXENAME) $(LIBNAME) + +!ifdef LIBNAME +$(LIBNAME): $(BUILDFILES) $(VIRTFILES) $(MDLLIBFILES) + $(implib) /NOLOGO -subsystem:windows -out:$(LIBNAME) \ + $(HYLDFLAGS) -machine:$(CPU) \ + $(BUILDFILES) $(VIRTFILES) $(MDLLIBFILES) +!endif + +!ifdef DLLNAME +$(DLLNAME): $(LIBNAME) + link $(VMLINK) /debug /opt:icf /opt:ref /INCREMENTAL:NO /NOLOGO \ + -entry:_DllMainCRTStartup@12 -dll /BASE:$(DLLBASE) -machine:$(CPU) \ + $(COMMENT) \ + -subsystem:windows -out:$@ -map:$*.map \ + $(BUILDFILES) $(VIRTFILES) $(MDLLIBFILES) $(SYSLIBFILES) \ + kernel32.lib ws2_32.lib advapi32.lib user32.lib gdi32.lib \ + comdlg32.lib winspool.lib $(LIBPATH)$(*F).exp +!endif + +!ifdef EXENAME +$(EXENAME): $(BUILDFILES) $(VIRTFILES) $(MDLLIBFILES) + link /NOLOGO $(EXEFLAGS) /debug /opt:icf /opt:ref $(VMLINK) \ + -out:$(EXENAME) -machine:$(CPU) setargv.obj \ + $(BUILDFILES) $(VIRTFILES) $(MDLLIBFILES) $(EXEDLLFILES) +!endif + +clean: + -del $(BUILDFILES) *.res *.pdb \ + $(LIBNAME) $(LIBNAME:.lib=.exp) \ + $(DLLNAME) $(DLLNAME:.dll=.pdb) $(DLLNAME:.dll=.map) \ + $(EXENAME) $(EXENAME:.exe=.pdb) >nul 2>&1 Added: harmony/enhanced/jdktools/trunk/make/rules.mk URL: http://svn.apache.org/viewvc/harmony/enhanced/jdktools/trunk/make/rules.mk?view=auto&rev=480680 ============================================================================== --- harmony/enhanced/jdktools/trunk/make/rules.mk (added) +++ harmony/enhanced/jdktools/trunk/make/rules.mk Wed Nov 29 10:55:36 2006 @@ -0,0 +1,44 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# +# Configuration Makefile +# + +CXXFLAGS=$(CFLAGS) + +all: $(DLLNAME) $(EXENAME) $(LIBNAME) + +$(LIBNAME): $(BUILDFILES) + $(AR) rcv $@ $(BUILDFILES) + +$(DLLNAME): $(BUILDFILES) $(MDLLIBFILES) + $(DLL_LD) -shared -Wl,--version-script,$(@F:.so=.exp) \ + -Wl,-soname=$(@F) $(VMLINK) -o $@ \ + $(BUILDFILES) $(SYSLIBFILES) \ + -Xlinker --start-group $(MDLLIBFILES) -Xlinker --end-group \ + -lc -lm -ldl $(LDFLAGS) + +$(EXENAME): $(BUILDFILES) $(MDLLIBFILES) + $(CC) $(VMLINK) \ + $(BUILDFILES) \ + -Xlinker --start-group $(MDLLIBFILES) -Xlinker --end-group \ + -o $@ -lm -lpthread -lc -ldl \ + -Xlinker -z -Xlinker origin \ + -Xlinker -rpath -Xlinker \$$ORIGIN/ \ + -Xlinker -rpath-link -Xlinker $(HY_HDK)/jdk/jre/bin + +clean: + -rm -f $(BUILDFILES) $(DLLNAME) $(EXENAME) $(LIBNAME) Modified: harmony/enhanced/jdktools/trunk/modules/jpda/build.xml URL: http://svn.apache.org/viewvc/harmony/enhanced/jdktools/trunk/modules/jpda/build.xml?view=diff&rev=480680&r1=480679&r2=480680 ============================================================================== --- harmony/enhanced/jdktools/trunk/modules/jpda/build.xml (original) +++ harmony/enhanced/jdktools/trunk/modules/jpda/build.xml Wed Nov 29 10:55:36 2006 @@ -21,146 +21,37 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - + + + + + + + - - - - - - - - - - - - - - - - - - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + Modified: harmony/enhanced/jdktools/trunk/modules/jpda/make/hyproperties.xml URL: http://svn.apache.org/viewvc/harmony/enhanced/jdktools/trunk/modules/jpda/make/hyproperties.xml?view=diff&rev=480680&r1=480679&r2=480680 ============================================================================== --- harmony/enhanced/jdktools/trunk/modules/jpda/make/hyproperties.xml (original) +++ harmony/enhanced/jdktools/trunk/modules/jpda/make/hyproperties.xml Wed Nov 29 10:55:36 2006 @@ -19,7 +19,7 @@ --> - +
@@ -36,12 +36,10 @@ - luni + jpda - + - - Modified: harmony/enhanced/jdktools/trunk/modules/jpda/src/main/native/jdwp/linux/agent/makefile URL: http://svn.apache.org/viewvc/harmony/enhanced/jdktools/trunk/modules/jpda/src/main/native/jdwp/linux/agent/makefile?view=diff&rev=480680&r1=480679&r2=480680 ============================================================================== --- harmony/enhanced/jdktools/trunk/modules/jpda/src/main/native/jdwp/linux/agent/makefile (original) +++ harmony/enhanced/jdktools/trunk/modules/jpda/src/main/native/jdwp/linux/agent/makefile Wed Nov 29 10:55:36 2006 @@ -20,7 +20,7 @@ # -include $(HY_HDK)/build/make/makefile.include +include $(HY_JDKTOOLS)/make/makefile.include COMMON=../../common/ CMNAGENT=$(COMMON)agent/ @@ -61,4 +61,4 @@ DLLNAME = ../libjdwp.so -include $(HY_HDK)/build/make/rules.mk +include $(HY_JDKTOOLS)/make/rules.mk Modified: harmony/enhanced/jdktools/trunk/modules/jpda/src/main/native/jdwp/linux/transport/makefile URL: http://svn.apache.org/viewvc/harmony/enhanced/jdktools/trunk/modules/jpda/src/main/native/jdwp/linux/transport/makefile?view=diff&rev=480680&r1=480679&r2=480680 ============================================================================== --- harmony/enhanced/jdktools/trunk/modules/jpda/src/main/native/jdwp/linux/transport/makefile (original) +++ harmony/enhanced/jdktools/trunk/modules/jpda/src/main/native/jdwp/linux/transport/makefile Wed Nov 29 10:55:36 2006 @@ -21,7 +21,7 @@ # -include $(HY_HDK)/build/make/makefile.include +include $(HY_JDKTOOLS)/make/makefile.include COMMON=../../common/ CMNTRANS=$(COMMON)transport/ @@ -44,4 +44,4 @@ DLLNAME = ../libdt_socket.so -include $(HY_HDK)/build/make/rules.mk +include $(HY_JDKTOOLS)/make/rules.mk Modified: harmony/enhanced/jdktools/trunk/modules/launcher/build.xml URL: http://svn.apache.org/viewvc/harmony/enhanced/jdktools/trunk/modules/launcher/build.xml?view=diff&rev=480680&r1=480679&r2=480680 ============================================================================== --- harmony/enhanced/jdktools/trunk/modules/launcher/build.xml (original) +++ harmony/enhanced/jdktools/trunk/modules/launcher/build.xml Wed Nov 29 10:55:36 2006 @@ -21,7 +21,7 @@ - + @@ -33,6 +33,8 @@ + Launcher : ${hy.drlvm} ${harmony.jdktools} + @@ -57,6 +59,9 @@ + +Cleaning launcher natives + Modified: harmony/enhanced/jdktools/trunk/modules/launcher/src/main/native/launcher/linux/makefile URL: http://svn.apache.org/viewvc/harmony/enhanced/jdktools/trunk/modules/launcher/src/main/native/launcher/linux/makefile?view=diff&rev=480680&r1=480679&r2=480680 ============================================================================== --- harmony/enhanced/jdktools/trunk/modules/launcher/src/main/native/launcher/linux/makefile (original) +++ harmony/enhanced/jdktools/trunk/modules/launcher/src/main/native/launcher/linux/makefile Wed Nov 29 10:55:36 2006 @@ -17,7 +17,7 @@ # Makefile for 'launcher' # -include $(HY_HDK)/build/make/makefile.include +include $(HY_JDKTOOLS)/make/makefile.include BUILDFILES = $(SHAREDSUB)main.o $(SHAREDSUB)cmain.o \ $(SHAREDSUB)launcher_copyright.o $(SHAREDSUB)strbuf.o \ @@ -26,4 +26,4 @@ $(DLLPATH)libhythr.so $(DLLPATH)libhysig.so EXENAME = $(EXEPATH)java -include $(HY_HDK)/build/make/rules.mk +include $(HY_JDKTOOLS)/make/rules.mk