-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
19 lines (10 loc) · 1.06 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#GCC compiler
CC=gcc
CFLAGS= -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_NO_XSLT=1 -DXMLSEC_NO_XKMS=1 -I/usr/include/libxml2 -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_CRYPTO=\"openssl\" -DUNIX_SOCKETS -DXML_SECURITY -DDEBUG
LDFLAGS= -lcrypto -I/usr/include/libxml2 -lxml2 -I/usr/local/include/xmlsec1 -lxmlsec1 -lprotobuf-c
$(CC) $(CFLAGS) $(LDFLAGS) src/aadhaar.c src/uid_auth.c src/auth_1.6.pb-c.c -o AuthClient
#Geoamida Device - Cross Compile
CC = arm-xscale-linux-gnueabi-gcc
CFLAGS = -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_NO_XSLT=1 -DXMLSEC_NO_XKMS=1 -I/opt/Olai/arm-xscale-linux-gnueabi/gcc-4.1.2-glibc-2.5-kernel-2.6.18/arm-xscale-linux-gnueabi/include/libxml2 -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_CRYPTO=\"openssl\" -DUNIX_SOCKETS -D XML_SECURITY
DFLAGS = -lwebcam -lbiometric -lautils -lpprinter -lxml2 -lcurl -lcrypto -lanet -I/opt/Olai/arm-xscale-linux-gnueabi/gcc-4.1.2-glibc-2.5-kernel-2.6.18/arm-xscale-linux-gnueabi/include/xmlsec1 -lxmlsec1 -g -lprotobuf-c
$(CC) $(CFLAGS) $(LDFLAGS) src/aadhaar.c src/uid_auth.c src/auth_1.6.pb-c.c -o AuthClient