Root/tools/Makefile.common

Source at commit ea23c905d32bfd2478915021476f9ede2ee014b8 created 6 years 6 months ago.
By Josef Filzmaier, atusb/fw: Introduction of a new board named HULUSB
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
17ifneq ($(MAIN),)
18include ../../makefiles/Makefile.basic
19endif
20
21CC_host = gcc
22CC_ben_jlime = mipsel-linux-gcc
23CC_ben_openwrt = mipsel-openwrt-linux-gcc
24
25CFLAGS_host =
26CFLAGS_ben_jlime =
27CFLAGS_ben_openwrt =
28
29LDLIBS_host = -lusb
30LDLIBS_ben_jlime =
31LDLIBS_ben_openwrt =
32
33MACROS_host = -DHAVE_USB
34MACROS_ben_jlime = -DHAVE_BEN
35MACROS_ben_openwrt = -DHAVE_BEN
36
37CC_normal := $(CC_$(TARGET))
38AR_normal := $(AR)
39CC_quiet = @echo " CC " $@ && $(CC_normal)
40AR_quiet = @echo " AR " $@ && $(AR_normal)
41
42ifeq ($(V),1)
43    CC = $(CC_normal)
44    AR = $(AR_normal)
45else
46    CC = $(CC_quiet)
47    AR = $(AR_quiet)
48endif
49
50CFLAGS += -g $(CFLAGS_$(TARGET)) -I../../atusb/fw/include -I../include \
51          $(MACROS_$(TARGET))
52LDLIBS = $(LDLIBS_$(TARGET)) -L../lib -latrf $(LDLIBS_$(TARGET))
53OBJS += $(OBJS_$(TARGET))
54

Archive Download this file



interactive