Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Daniel2012-11-06 14:17:22 +0000
committerMalgorzata Janczarska2012-11-06 14:17:22 +0000
commit26fa0e164815e26b48664a360ba6de231af744a8 (patch)
tree85d88f8870a841be24cf1876f91ba3a06bf4ae49
parent6263a8ed7885edda20394a265fae59fd6192af5b (diff)
downloadeclipse.platform.team-26fa0e164815e26b48664a360ba6de231af744a8.tar.gz
eclipse.platform.team-26fa0e164815e26b48664a360ba6de231af744a8.tar.xz
eclipse.platform.team-26fa0e164815e26b48664a360ba6de231af744a8.zip
Bug 369215 -Improve core.net linux makefilev20121106-141722
-rw-r--r--bundles/org.eclipse.core.net/natives/unix/linux/makefile10
-rw-r--r--bundles/org.eclipse.core.net/natives/unix/linux/x86_64/makefile48
2 files changed, 5 insertions, 53 deletions
diff --git a/bundles/org.eclipse.core.net/natives/unix/linux/makefile b/bundles/org.eclipse.core.net/natives/unix/linux/makefile
index 0aa0cbe68..b0e551922 100644
--- a/bundles/org.eclipse.core.net/natives/unix/linux/makefile
+++ b/bundles/org.eclipse.core.net/natives/unix/linux/makefile
@@ -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 @@ LIB_NAME_FULL = libgnomeproxy-1.0.0.so
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
diff --git a/bundles/org.eclipse.core.net/natives/unix/linux/x86_64/makefile b/bundles/org.eclipse.core.net/natives/unix/linux/x86_64/makefile
deleted file mode 100644
index 407f9c5ad..000000000
--- a/bundles/org.eclipse.core.net/natives/unix/linux/x86_64/makefile
+++ /dev/null
@@ -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

Back to the top