Index: /trunk/Nebulous/nebclient/makefile
===================================================================
--- /trunk/Nebulous/nebclient/makefile	(revision 2925)
+++ /trunk/Nebulous/nebclient/makefile	(revision 2926)
@@ -1,10 +1,19 @@
 SH=/bin/sh
-CFLAGS="-fPIC"
+CFLAGS=-fPIC -Wall -O2 -pipe
+
+objects=idataclient.o stdsoap2.o soapC.o soapClient.o
 
 all: idataclient.so
 
-idataclient.so: idataclient.o
-	$(CC) $(CFLAGS) -shared -o idataclient.so idataclient.o
+idataclient.so: $(objects)
+	$(CC) $(CFLAGS) -shared -o idataclient.so $(objects)
 
-idataclient.o: idataclient.c
-	$(CC) $(CFLAGS) -c idataclient.c
+$(objects): %.o : %.c
+	$(CC) $(CFLAGS) -o $@ -c $<
+
+wsdl: idata.wsdl
+	wsdl2h -c idata.wsdl
+	soapcpp2 -c idata.h
+
+clean:
+	$(RM) *.so *.o *.xml core
