xref: /OK3568_Linux_fs/external/rkwifibt/tools/rtk_hciattach/Makefile (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1CFLAGS := -Wall -g
2#CC := $(CROSS_COMPLE)gcc
3all: rtk_hciattach
4OBJS := hciattach.o hciattach_rtk.o hciattach_h4.o rtb_fwc.o
5
6rtk_hciattach: $(OBJS)
7	$(CC) -o rtk_hciattach $(OBJS)
8
9%.o: %.c
10	$(CC) $(CFLAGS) -c $< -o $@
11
12clean:
13	rm -f $(OBJS)  rtk_hciattach
14
15tags: FORCE
16	ctags -R
17	find ./ -name "*.h" -o -name "*.c" -o -name "*.cc" -o -name "*.cpp" > cscope.files
18	cscope -bkq -i cscope.files
19PHONY += FORCE
20FORCE:
21