Wrong function call, printf → fprintf
Add $(LDFLAGS) to missing rules

Use the right name for the wsdl file in the makefile rules - avoids
unnecessry rebuilds.

Use $(...) consistently.