UNDEF_CRYPTO="-UXMLSEC_CRYPTO"
SHOULD_COME_LAST="-DXMLSEC_CRYPTO=\"`xmlsec1-config --crypto`\""

all: process_request.o test.o
	gcc -o test `xmlsec1-config --libs` `xml2-config --libs` process_request.o test.o

process_request.o:
	gcc -c -g `xml2-config --cflags` `xmlsec1-config --cflags` ${UNDEF_CRYPTO} ${SHOULD_COME_LAST} process_request.c 

test.o:
	gcc -c -g `xml2-config --cflags` `xmlsec1-config --cflags` ${UNDEF_CRYPTO} ${SHOULD_COME_LAST} test.c 

clean:
	rm process_request.o test.o test
