RaspberrPi project source code
Guo Wenxue
2024-12-29 e30a4c8103e221201e5bfc1e3f9b19e7a86f68d4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
 
PWD=$(shell pwd )
 
LIBNAME=$(shell basename ${PWD} )
TOPDIR=$(shell dirname ${PWD} )
 
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