78 lines
3.1 KiB
Diff
78 lines
3.1 KiB
Diff
|
--- eclipse.platform.team/bundles/org.eclipse.core.net/natives/unix/linux/makefile.orig 2012-10-01 11:49:37.000000000 +0200
|
||
|
+++ eclipse.platform.team/bundles/org.eclipse.core.net/natives/unix/linux/makefile 2012-10-19 14:44:01.556024807 +0200
|
||
|
@@ -1,5 +1,5 @@
|
||
|
#**********************************************************************
|
||
|
-# Copyright (c) 2008, 2010 Oakland Software Incorporated and others.
|
||
|
+# Copyright (c) 2008, 2012 Oakland Software Incorporated and others.
|
||
|
# All rights reserved. This program and the accompanying materials
|
||
|
# are made available under the terms of the Eclipse Public License v1.0
|
||
|
# which accompanies this distribution, and is available at
|
||
|
@@ -20,11 +20,11 @@
|
||
|
|
||
|
OS_TYPE = linux
|
||
|
JDK_INCLUDE = -I${JAVA_HOME}/include -I${JAVA_HOME}/include/${OS_TYPE}
|
||
|
-INCLUDE = -I/usr/include/gconf/2/ -I/usr/include/orbit-2.0/ -I/usr/include/glib-2.0/ -I/usr/lib/glib-2.0/include/
|
||
|
-COMPILER_FLAGS = -O0 -fPIC -g3 -Wall -c -fmessage-length=0 -m32
|
||
|
+INCLUDE = `pkg-config --cflags gconf-2.0`
|
||
|
+COMPILER_FLAGS = -O0 -fPIC -g3 -Wall -c -fmessage-length=0 ${TARGET_ENVIRONMENT}
|
||
|
|
||
|
-LIBS := -lgconf-2 -lORBit-2 -lgthread-2.0 -lrt -lgobject-2.0 -lglib-2.0
|
||
|
-LINKER_FLAGS= -m32
|
||
|
+LIBS := `pkg-config --libs gconf-2.0`
|
||
|
+LINKER_FLAGS= ${TARGET_ENVIRONMENT}
|
||
|
|
||
|
all: link
|
||
|
|
||
|
--- eclipse.platform.team/bundles/org.eclipse.core.net/natives/unix/linux/x86_64/makefile 2012-10-01 11:49:37.000000000 +0200
|
||
|
+++ /dev/null 2012-10-13 13:36:07.457201187 +0200
|
||
|
@@ -1,48 +0,0 @@
|
||
|
-#**********************************************************************
|
||
|
-# Copyright (c) 2008, 2010 Oakland Software Incorporated and others.
|
||
|
-# All rights reserved. This program and the accompanying materials
|
||
|
-# are made available under the terms of the Eclipse Public License v1.0
|
||
|
-# which accompanies this distribution, and is available at
|
||
|
-# http://www.eclipse.org/legal/epl-v10.html
|
||
|
-#
|
||
|
-# Contributors:
|
||
|
-# Oakland Software Incorporated - initial submission
|
||
|
-# IBM Corporation - refactoring, bug 245849
|
||
|
-# Tristan Tarrant - x86_64 support, bug 273072
|
||
|
-#
|
||
|
-#**********************************************************************
|
||
|
-#
|
||
|
-# makefile for libgnomeproxy-1.0.0.so
|
||
|
-
|
||
|
-GNOMEPROXY.C = ../../gnomeproxy.c
|
||
|
-GNOMEPROXY.O = gnomeproxy.o
|
||
|
-LIB_NAME = gnomeproxy.so
|
||
|
-LIB_NAME_FULL = libgnomeproxy-1.0.0.so
|
||
|
-
|
||
|
-OS_TYPE =
|
||
|
-JDK_INCLUDE = -I${JAVA_HOME}/include -I${JAVA_HOME}/include/${OS_TYPE}
|
||
|
-INCLUDE = `pkg-config --cflags gconf-2.0`
|
||
|
-COMPILER_FLAGS= -O0 -fPIC -g3 -Wall -c -fmessage-length=0 -m64
|
||
|
-
|
||
|
-LIBS := `pkg-config --libs gconf-2.0`
|
||
|
-LINKER_FLAGS= -m64
|
||
|
-
|
||
|
-all: link
|
||
|
-
|
||
|
-compile:
|
||
|
- @echo "Building file: $(GNOMEPROXY.O)"
|
||
|
- @echo "Invoking: GCC C Compiler"
|
||
|
- gcc $(INCLUDE) $(JDK_INCLUDE) $(COMPILER_FLAGS) -o $(GNOMEPROXY.O) $(GNOMEPROXY.C)
|
||
|
- @echo "Finished building: $(GNOMEPROXY.O)"
|
||
|
- @echo " "
|
||
|
-
|
||
|
-link: compile
|
||
|
- @echo "Building target: $(LIB_NAME_FULL)"
|
||
|
- @echo "Invoking: GCC C Linker"
|
||
|
- gcc $(LINKER_FLAGS) -shared -Wl,-soname,$(LIB_NAME) -o $(LIB_NAME_FULL) $(LIBS) $(GNOMEPROXY.O) -lc
|
||
|
- @echo "Finished building target: $(LIB_NAME_FULL)"
|
||
|
- @echo " "
|
||
|
-
|
||
|
-clean:
|
||
|
- -$(RM) $(GNOMEPROXY.O) $(LIB_NAME_FULL)
|
||
|
- -@echo " "
|
||
|
\ No newline at end of file
|