]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/open-amp.git/blob - rpmsg/Makefile
.gitignore: Add *.a into .gitigore file
[processor-sdk/open-amp.git] / rpmsg / Makefile
1 # Make file to create rpmsg library.\r
2 \r
3 # Include commons make file to get platform and tool chain specific variables.\r
4 include ../Makefile.commons\r
5 \r
6 LIB := librpmsg.a\r
7 \r
8 # Include  the header and source files required by the virtio lib.\r
9 HEADERS += \\r
10 $(wildcard *.h) \\r
11 $(wildcard ../include/*.h) \\r
12 $(wildcard ../hil/*.h) \\r
13 $(wildcard ../env/*.h)\r
14 \r
15 SRCFILES += \\r
16 $(wildcard *.c) \\r
17 $(wildcard ../hil/*/*.c) \\r
18 $(wildcard ../common/*.c) \\r
19 $(wildcard ../env/*.c)\r
20 \r
21 OBJFILES := $(patsubst %.c, %.o, $(SRCFILES))\r
22 \r
23 all: $(LIB)\r
24 \r
25 $(LIB): $(OBJFILES)\r
26         @echo AR $@\r
27         @$(AR) -r $@ $(OBJFILES)\r
28 \r
29 %.o:%.c $(HEADERS)\r
30         @echo CC $(<:.c=.o)\r
31         @$(CC) $(CFLAGS) $(ARCH_CFLAGS) $(INCLUDE) -c $< -o $@\r
32 \r
33 clean:\r
34         -$(RM) $(LIB) $(OBJFILES)\r
35 \r
36 PHONY: all clean