Skip to content
Snippets Groups Projects
Commit 62ef6dc5 authored by Adriano Da Luz's avatar Adriano Da Luz Committed by Erik Alexandre Pucci
Browse files

Added make rules to compile getSchoolInfo for Windows

parent 922545c1
No related branches found
No related tags found
No related merge requests found
......@@ -7,18 +7,24 @@ TOPDIR = ../../../git/client
BINDIR = ../package/usr/local/bin/
LIBDIR = $(TOPDIR)/lib
LIBGSOAPBINWIN = $(LIBDIR)/$(LIBGSOAP)-$(LIBGSOAPVER)/$(LIBGSOAP)/bin/win32
LIBGSOAPDIR = $(LIBDIR)/$(LIBGSOAP)
LIBGSOAPBIN = $(LIBGSOAPDIR)/bin
LIBGSOAPINC = $(LIBGSOAPDIR)/include
CCFLAGS = -g -Wall
WINCCFLAGS = -lws2_32
WSCLIENTH = wsclient.h
CDEP = getSchoolInfo.c soapC.c soapClient.c stdsoap2.c
BIN = getSchoolInfo
WINBIN = getSchoolInfo.exe
WSSERVER = Seed2
PUSER =
......@@ -43,6 +49,19 @@ wsdl:
soap:
@$(LIBGSOAPBIN)/soapcpp2 -C -w -x $(WSCLIENTH)
win: wsdl_win soap_win
@mkdir -p $(BINDIR)
@ln -sf $(LIBDIR)/stdsoap2.h stdsoap2.h
@ln -sf $(LIBDIR)/stdsoap2.c stdsoap2.c
@$(CC) $(CCFLAGS) -o $(BINDIR)/$(WINBIN) $(CDEP) $(WINCCFLAGS)
soap_win:
@$(LIBGSOAPBINWIN)/soapcpp2.exe -C -w -x $(WSCLIENTH)
wsdl_win:
@wget $(URL) -O $(WSSERVER).wsdl
@$(LIBGSOAPBINWIN)/wsdl2h.exe -c -o $(WSCLIENTH) $(WSSERVER).wsdl
clean:
@find . \( -name '*.~' -o -name '*.o' -o -name '*.bak' -o\
-name 'core*' \) -exec rm -f {} \;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment