summaryrefslogtreecommitdiffstats
path: root/examples/xsd2c/ex4/Makefile
diff options
context:
space:
mode:
authorGravatar snowdrop2004-06-02 11:20:48 +0000
committerGravatar snowdrop2004-06-02 11:20:48 +0000
commit09d5768a1979a70a1069509aa1d55f9db100a285 (patch)
tree45dd32429688b9a478ccdb87a4f3a21149622f28 /examples/xsd2c/ex4/Makefile
parentb6d27351412b20656f670cea3ae969f5c30c634b (diff)
downloadcsoap-09d5768a1979a70a1069509aa1d55f9db100a285.tar.gz
csoap-09d5768a1979a70a1069509aa1d55f9db100a285.tar.bz2
initalial import
Diffstat (limited to 'examples/xsd2c/ex4/Makefile')
-rw-r--r--examples/xsd2c/ex4/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/examples/xsd2c/ex4/Makefile b/examples/xsd2c/ex4/Makefile
new file mode 100644
index 0000000..966a61d
--- /dev/null
+++ b/examples/xsd2c/ex4/Makefile
@@ -0,0 +1,38 @@
+#########################################################
+#
+# XSD2C Examles Makefile
+#
+#########################################################
+
+SHELL = bash
+CC = gcc
+
+
+VPATH = . ../
+
+EXECNAME= ex4.exe
+XSDFILE = ex4.xsd
+EXSRC = ex4.c utils.c
+GENSRC = Person_xsd.c
+
+EXOBJ = $(addsuffix .o, $(basename $(EXSRC)))
+GENOBJ = $(addsuffix .o, $(basename $(GENSRC)))
+OBJECTS = $(EXOBJ) $(GENOBJ)
+XSD2C = ../../xsd2c
+
+CFLAGS = `xml2-config --cflags`
+CLIBS = `xml2-config --libs`
+
+$(EXECNAME): stubs $(GENSRC) $(OBJECTS)
+ $(CC) -g $(CFLAGS) -o $@ $(OBJECTS) $(CLIBS)
+
+
+stubs:
+ $(XSD2C) -S $(XSDFILE)
+
+clean:
+ -@rm -f *.o
+ -@rm -f *_xsd.h
+ -@rm -f *_xsd.c
+ -@rm -f *~
+ -@rm -f $(EXECNAME)