Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.core.net/natives/unix/linux/makefile')
-rw-r--r--bundles/org.eclipse.core.net/natives/unix/linux/makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/bundles/org.eclipse.core.net/natives/unix/linux/makefile b/bundles/org.eclipse.core.net/natives/unix/linux/makefile
new file mode 100644
index 000000000..daab01dff
--- /dev/null
+++ b/bundles/org.eclipse.core.net/natives/unix/linux/makefile
@@ -0,0 +1,45 @@
+#**********************************************************************
+# Copyright (c) 2008 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
+#
+#**********************************************************************
+#
+# 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
+
+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
+
+LIBS := -lgconf-2 -lORBit-2 -lgthread-2.0 -lrt -lgobject-2.0 -lglib-2.0
+LINKER_FLAGS= -m32
+
+all: link
+
+compile:
+ @echo "Building file: $(GNOMEPROXY.O)"
+ @echo "Invoking: GCC C Compiler"
+ gcc $(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 " "

Back to the top