guowenxue
2023-07-10 5b0985618c8a49ea5ff872486672324120e25361
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 
PWD=$(shell pwd )
 
LIBNAME=$(shell basename ${PWD} )
TOPDIR=$(shell dirname ${PWD} )
CFLAGS+=-D_GNU_SOURCE
 
all: clean
    @rm -f *.o
    @${CROSSTOOL}gcc ${CFLAGS} -I${TOPDIR} -c *.c
    ${CROSSTOOL}ar -rcs  lib${LIBNAME}.a *.o
 
clean:
    @rm -f *.o
    @rm -f *.a
 
distclean:
    @make clean