Make error: commands commence before first target

时间:2016-08-31 12:18:08

标签: gcc makefile

Makefile:

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

$(CC) $(CFLAGS) $(LDFLAGS) src/aadhaar.c src/uid_auth.c -o AuthClient

I'm getting this error: error: commands commence before first target

1 个答案:

答案 0 :(得分:0)

You seem to miss the target definition:

AuthClient : src/aadhaar.c src/uid_auth.c 
    $(CC) $(CFLAGS) $(LDFLAGS) src/aadhaar.c src/uid_auth.c -o $@
相关问题