guowenxue
2019-06-27 45e62dbd9e964c74b24f7fcadad9b418f117e008
mqttd/hal/makefile
@@ -1,11 +1,17 @@
PWD=$(shell pwd )
LIBNAME=$(shell basename ${PWD} )
PROJPATH=$(shell dirname ${PWD} )
CFLAGS+=-I${PROJPATH}
all: clean
   ${CROSS_COMPILE}gcc -c *.c
   @rm -f *.o
   @${CROSS_COMPILE}gcc ${CFLAGS} -c *.c
   ${CROSS_COMPILE}ar -rcs  lib${LIBNAME}.a *.o
clean:
   @rm -f *.o
   @rm -f *.o
   @rm -f *.a