
EXEC=exec
AXIS2C_HOME=/home/dimuthu/wso2/php/wsf_c/deploy
EXEC_LDADD = \
                -L$(AXIS2C_HOME)/lib \
                    -laxutil \
                    -laxis2_axiom \
                    -laxis2_engine \
                    -laxis2_parser \
                    -lpthread \
                    -laxis2_http_sender \
                    -laxis2_http_receiver \
                    -laxis2_libxml2

INCLUDES=$(AXIS2C_HOME)/include/axis2-1.1/

$(EXEC): adb_MyFirstException.o adb_myOperation.o adb_myOperationResponse.o adb_MySecondException.o axis2_stub_MyService.o my_code.o MyService_errors.o
	gcc -g -I $(INCLUDES) $(EXEC_LDADD) -o $@  adb_MyFirstException.o adb_myOperation.o adb_myOperationResponse.o adb_MySecondException.o axis2_stub_MyService.o my_code.o MyService_errors.o

%.o: %.c
	gcc -g -I $(INCLUDES) -c $<

clean:
	rm -rf *.o $(EXEC)

