]> git.sur5r.net Git - freertos/blob
007162d8c2e9b11b94b26f6c2c791a9496f22d87
[freertos] /
1 COMPILER=
2 ARCHIVER=
3 CP=cp
4 COMPILER_FLAGS=
5 EXTRA_COMPILER_FLAGS=
6 LIB=libxil.a
7
8 CC_FLAGS = $(COMPILER_FLAGS)
9 ECC_FLAGS = $(EXTRA_COMPILER_FLAGS)
10
11 RELEASEDIR=../../../lib
12 INCLUDEDIR=../../../include
13 INCLUDES=-I./. -I${INCLUDEDIR}
14
15 OUTS = *.o
16
17 LIBSOURCES:=*.c
18 INCLUDEFILES:=*.h
19
20 OBJECTS =       $(addsuffix .o, $(basename $(wildcard *.c)))
21
22 libs: banner coresightps_dcc_comp_libs clean
23
24 %.o: %.c
25         ${COMPILER} $(CC_FLAGS) $(ECC_FLAGS) $(INCLUDES) -o $@ $<
26
27 banner:
28         echo "Compiling coresightps_dcc"
29
30 coresightps_dcc_comp_libs: ${OBJECTS}
31         $(ARCHIVER) -r ${RELEASEDIR}/${LIB} ${OBJECTS}
32
33 .PHONY: include
34 include: coresightps_dcc_includes
35
36 coresightps_dcc_includes:
37         ${CP} ${INCLUDEFILES} ${INCLUDEDIR}
38
39 clean:
40         rm -rf ${OBJECTS}