Before this commit, makefiles under tools/ directory were implemented with their own way. This commit refactors them by using "hostprogs-y" variable. Several C sources have been added to wrap other C sources to simplify Makefile. For example, tools/crc32.c includes lib/crc32.c Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
25 lines
480 B
Makefile
25 lines
480 B
Makefile
#
|
|
# (C) Copyright 2006
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
#
|
|
# (C) Copyright 2000
|
|
# Murray Jensen <Murray.Jensen@csiro.au>
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
|
|
ifneq ($(HOSTOS),cygwin)
|
|
|
|
#
|
|
# Use native tools and options
|
|
#
|
|
HOST_EXTRACFLAGS := -I$(BFD_ROOT_DIR)/include -pedantic
|
|
|
|
hostprogs-y := gdbsend gdbcont
|
|
|
|
gdbsend-objs := gdbsend.o error.o remote.o serial.o
|
|
gdbcont-objs := gdbcont.o error.o remote.o serial.o
|
|
|
|
always := $(hostprogs-y)
|
|
|
|
endif # cygwin
|