Root/tools/Makefile.common

Source at commit 771926f4385707f80b26c4299365daa3eb4b040f created 13 years 1 month ago.
By Werner Almesberger, atben: reduced ridiculously long AVDD trace and cleaned up the area
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
13ifeq ($(TARGET),)
14TARGET = host
15endif
16
17F32XBASE = ../../../f32xbase
18
19ifneq ($(MAIN),)
20include $(F32XBASE)/lib/Makefile.common
21endif
22
23CC_host = gcc
24CC_ben_jlime = mipsel-linux-gcc
25CC_ben_openwrt = mipsel-openwrt-linux-gcc
26
27CFLAGS_host =
28CFLAGS_ben_jlime =
29CFLAGS_ben_openwrt =
30
31LDLIBS_host = -lusb
32LDLIBS_ben_jlime =
33LDLIBS_ben_openwrt =
34
35MACROS_host = -DHAVE_USB
36MACROS_ben_jlime = -DHAVE_BEN
37MACROS_ben_openwrt = -DHAVE_BEN
38
39CC_normal := $(CC_$(TARGET))
40AR_normal := $(AR)
41CC_quiet = @echo " CC " $@ && $(CC_normal)
42AR_quiet = @echo " AR " $@ && $(AR_normal)
43
44ifeq ($(V),1)
45    CC = $(CC_normal)
46    AR = $(AR_normal)
47else
48    CC = $(CC_quiet)
49    AR = $(AR_quiet)
50endif
51
52CFLAGS += $(CFLAGS_$(TARGET)) -I../../atusb/fw/include -I../include \
53          $(MACROS_$(TARGET))
54LDLIBS = $(LDLIBS_$(TARGET)) -L../lib -latrf
55OBJS += $(OBJS_$(TARGET))
56

Archive Download this file



interactive