1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-05 10:34:04 +02:00
ben-wpan/tools/Makefile.common
Werner Almesberger 45746fdfa5 dropped f32xbase dependency on Makefile.common
This means that we only depend on f32xbase for atusb-sil (defunct) and
cntr (needs updating), but not for any of the project's main parts.

- makefiles/Makefile.basic: copied over from
  f32xbase/lib/Makefile.common
- makefiles/Makefile.basic (LDLIBS): removed inclusion of libusb
- tools/Makefile.common: use makefiles/Makefile.basic
- install/INSTALL-Ben, prod/doc/setup.hmac: removed f32xbase
  dependency
2011-05-29 06:03:11 -03:00

54 lines
1.2 KiB
Makefile

#
# tools/Makefile.common - Common items in ATRF tool makefiles
#
# Written 2010-2011 by Werner Almesberger
# Copyright 2010-2011 Werner Almesberger
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
ifeq ($(TARGET),)
TARGET = host
endif
ifneq ($(MAIN),)
include ../../makefiles/Makefile.basic
endif
CC_host = gcc
CC_ben_jlime = mipsel-linux-gcc
CC_ben_openwrt = mipsel-openwrt-linux-gcc
CFLAGS_host =
CFLAGS_ben_jlime =
CFLAGS_ben_openwrt =
LDLIBS_host = -lusb
LDLIBS_ben_jlime =
LDLIBS_ben_openwrt =
MACROS_host = -DHAVE_USB
MACROS_ben_jlime = -DHAVE_BEN
MACROS_ben_openwrt = -DHAVE_BEN
CC_normal := $(CC_$(TARGET))
AR_normal := $(AR)
CC_quiet = @echo " CC " $@ && $(CC_normal)
AR_quiet = @echo " AR " $@ && $(AR_normal)
ifeq ($(V),1)
CC = $(CC_normal)
AR = $(AR_normal)
else
CC = $(CC_quiet)
AR = $(AR_quiet)
endif
CFLAGS += -g $(CFLAGS_$(TARGET)) -I../../atusb/fw/include -I../include \
$(MACROS_$(TARGET))
LDLIBS = $(LDLIBS_$(TARGET)) -L../lib -latrf $(LDLIBS_$(TARGET))
OBJS += $(OBJS_$(TARGET))