summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar snowdrop2003-03-25 22:14:36 +0000
committerGravatar snowdrop2003-03-25 22:14:36 +0000
commit4ab669f746bdfe4e32837be8e16b761c0490e21c (patch)
treeb69e693b2695a139d97b55ab22a633c39bde862d /Makefile
downloadcsoap-4ab669f746bdfe4e32837be8e16b761c0490e21c.tar.gz
csoap-4ab669f746bdfe4e32837be8e16b761c0490e21c.tar.bz2
initial import
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e523530
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,35 @@
+#########################################################
+#
+# CSOAP Makefile
+#
+#########################################################
+
+SHELL = bash
+CC = gcc
+
+
+VPATH = . src
+
+LIBNAME = libsoap.a
+EXLIB = -L. -lsoap
+
+SOURCE = ${wildcard src/csoap*.c}
+OBJECTS = $(addsuffix .o, $(basename $(SOURCE)))
+
+CFLAGS = `xml2-config --cflags` # -fwritable-strings
+CLIBS = `xml2-config --libs`
+
+lib: $(OBJECTS)
+ ar -rc $(LIBNAME) $(OBJECTS)
+
+shared: $(OBJECTS)
+ gcc --shared -o libsoap.dll $(OBJECTS) `xml2-config --libs`
+
+example1: lib
+ $(CC) -Isrc $(CFLAGS) ex1.c -o $@ $(EXLIB) $(CLIBS)
+
+clean:
+ -@rm -f src/*.o
+ -@rm -f $(LIBNAME)
+ -@rm -f *~
+ -@rm -f src/*~ \ No newline at end of file