Root/tools/Makefile.common

Source at commit 84b61f35f23de6d3735851388d0da8540a08a949 created 13 years 4 months ago.
By Werner Almesberger, The Great ATSPI Renaming, part 3: rename libatspi.a to libatrf.a
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
25CFLAGS_host =
26CFLAGS_ben =
27LDLIBS_host = -lusb
28LDLIBS_ben =
29MACROS_host = -DHAVE_USB
30MACROS_ben = -DHAVE_USD
31
32CC_normal := $(CC_$(TARGET))
33AR_normal := $(AR)
34CC_quiet = @echo " CC " $@ && $(CC_normal)
35AR_quiet = @echo " AR " $@ && $(AR_normal)
36
37ifeq ($(V),1)
38    CC = $(CC_normal)
39    AR = $(AR_normal)
40else
41    CC = $(CC_quiet)
42    AR = $(AR_quiet)
43endif
44
45CFLAGS += $(CFLAGS_$(TARGET)) -I../../atusb/fw/include -I../include \
46          $(MACROS_$(TARGET))
47LDLIBS = $(LDLIBS_$(TARGET)) -L../lib -latrf
48OBJS += $(OBJS_$(TARGET))
49

Archive Download this file



interactive