IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Git Source Tree
Root/
1 | # |
2 | # tools/Makefile.common - Common items in ATRF tool makefiles |
3 | # |
4 | # Written 2010-2011 by Werner Almesberger |
5 | # Copyright 2010-2011 Werner Almesberger |
6 | # |
7 | # This program is free software; you can redistribute it and/or modify |
8 | # it under the terms of the GNU General Public License as published by |
9 | # the Free Software Foundation; either version 2 of the License, or |
10 | # (at your option) any later version. |
11 | # |
12 | |
13 | ifeq ($(TARGET),) |
14 | TARGET = host |
15 | endif |
16 | |
17 | ifneq ($(MAIN),) |
18 | include ../../makefiles/Makefile.basic |
19 | endif |
20 | |
21 | CC_host = gcc |
22 | CC_ben_jlime = mipsel-linux-gcc |
23 | CC_ben_openwrt = mipsel-openwrt-linux-gcc |
24 | |
25 | CFLAGS_host = |
26 | CFLAGS_ben_jlime = |
27 | CFLAGS_ben_openwrt = |
28 | |
29 | LDLIBS_host = -lusb |
30 | LDLIBS_ben_jlime = |
31 | LDLIBS_ben_openwrt = |
32 | |
33 | MACROS_host = -DHAVE_USB |
34 | MACROS_ben_jlime = -DHAVE_BEN |
35 | MACROS_ben_openwrt = -DHAVE_BEN |
36 | |
37 | CC_normal := $(CC_$(TARGET)) |
38 | AR_normal := $(AR) |
39 | CC_quiet = @echo " CC " $@ && $(CC_normal) |
40 | AR_quiet = @echo " AR " $@ && $(AR_normal) |
41 | |
42 | ifeq ($(V),1) |
43 | CC = $(CC_normal) |
44 | AR = $(AR_normal) |
45 | else |
46 | CC = $(CC_quiet) |
47 | AR = $(AR_quiet) |
48 | endif |
49 | |
50 | CFLAGS += -g $(CFLAGS_$(TARGET)) -I../../atusb/fw/include -I../include \ |
51 | $(MACROS_$(TARGET)) |
52 | LDLIBS = $(LDLIBS_$(TARGET)) -L../lib -latrf $(LDLIBS_$(TARGET)) |
53 | OBJS += $(OBJS_$(TARGET)) |
54 |