LingYun Studio embeded system framwork software, such as thirdparty build shell and lingyun library
guowenxue
2022-04-14 f100b562fdb496adce766d80fdc9d99b1fbf8b54
booster/test/makefile
@@ -1,6 +1,8 @@
PWD=$(shell pwd)
INST_PATH=/tftp
LIB_PATH=$(shell dirname ${PWD} )
LIB_NAME=$(shell basename ${LIB_PATH} )
@@ -11,6 +13,7 @@
BINARIES=$(SRCFILES:%.c=%)
all: libs binaries
   @make install
libs:
   make -C ${LIB_PATH}
@@ -19,7 +22,10 @@
   @echo " Compile over"
%:  %.c
   $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
   ${CROSSTOOL}gcc $(CFLAGS) -o $@ $< $(LDFLAGS)
install:
   cp ${BINARIES} ${INST_PATH}
clean:
   @rm -f ${BINARIES}
@@ -27,4 +33,5 @@
distclean:
   @make clean
   @make clean -C ${LIB_PATH}
   @rm -f cscope.* tags