1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
| PWD=$(shell pwd )
|
| LIBNAME=$(shell basename ${PWD} )
| PROJPATH=$(shell dirname ${PWD} )
|
| CFLAGS+=-I${PROJPATH}
|
| all: clean
| @rm -f *.o
| @${CROSS_COMPILE}gcc ${CFLAGS} -c *.c
| ${CROSS_COMPILE}ar -rcs lib${LIBNAME}.a *.o
|
| clean:
| @rm -f *.o
| @rm -f *.a
|
|