Root/tools/Makefile.common

Source at commit b493f093636595a76b3d1be612df018fa77c7474 created 13 years 5 months ago.
By Werner Almesberger, Great renaming: atrf/wpan-atrf* becomes atusb/atusb*
1#
2# tools/Makefile.common - Common items in ATSPI tool makefiles
3#
4# Written 2010 by Werner Almesberger
5# Copyright 2010 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 = mipsel-openwrt-linux-gcc
25LDLIBS_host = -lusb
26LDLIBS_ben =
27MACROS_host = -DHAVE_USB
28MACROS_ben = -DHAVE_USD
29
30CC_normal := $(CC_$(TARGET))
31AR_normal := $(AR)
32CC_quiet = @echo " CC " $@ && $(CC_normal)
33AR_quiet = @echo " AR " $@ && $(AR_normal)
34
35ifeq ($(V),1)
36    CC = $(CC_normal)
37    AR = $(AR_normal)
38else
39    CC = $(CC_quiet)
40    AR = $(AR_quiet)
41endif
42
43CFLAGS += -I../../atusb/fw/include -I../include $(MACROS_$(TARGET))
44LDLIBS = $(LDLIBS_$(TARGET)) -L../lib -latspi
45

Archive Download this file



interactive