From 09d5768a1979a70a1069509aa1d55f9db100a285 Mon Sep 17 00:00:00 2001 From: snowdrop Date: Wed, 2 Jun 2004 11:20:48 +0000 Subject: initalial import --- examples/xsd2c/ex3/Makefile | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 examples/xsd2c/ex3/Makefile (limited to 'examples/xsd2c/ex3/Makefile') diff --git a/examples/xsd2c/ex3/Makefile b/examples/xsd2c/ex3/Makefile new file mode 100644 index 0000000..faffe77 --- /dev/null +++ b/examples/xsd2c/ex3/Makefile @@ -0,0 +1,38 @@ +######################################################### +# +# XSD2C Examles Makefile +# +######################################################### + +SHELL = bash +CC = gcc + + +VPATH = . ../ + +EXECNAME= ex3.exe +XSDFILE = ex3.xsd +EXSRC = ex3.c utils.c +GENSRC = Person_xsd.c Customer_xsd.c + +EXOBJ = $(addsuffix .o, $(basename $(EXSRC))) +GENOBJ = $(addsuffix .o, $(basename $(GENSRC))) +OBJECTS = $(EXOBJ) $(GENOBJ) +XSD2C = ../../xsd2c + +$(EXECNAME): stubs $(GENSRC) $(OBJECTS) + $(CC) -g $(CFLAGS) -o $@ $(OBJECTS) $(CLIBS) + +CFLAGS = `xml2-config --cflags` +CLIBS = `xml2-config --libs` + + +stubs: + $(XSD2C) -S $(XSDFILE) + +clean: + -@rm -f *.o + -@rm -f *_xsd.h + -@rm -f *_xsd.c + -@rm -f *~ + -@rm -f $(EXECNAME) -- cgit v1.1-32-gdbae