mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-12 15:53:21 +09:00
![Masahiro Yamada](/assets/img/avatar_default.png)
HOSTOS is defined and exported at the top Makefile. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
57 lines
1.1 KiB
Makefile
57 lines
1.1 KiB
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+
|
|
#
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
BINS = gdbsend gdbcont
|
|
|
|
COBJS = gdbsend.o gdbcont.o error.o remote.o serial.o
|
|
|
|
HOSTOBJS := $(addprefix $(obj),$(COBJS))
|
|
HOSTSRCS := $(COBJS:.o=.c)
|
|
BINS := $(addprefix $(obj),$(BINS))
|
|
|
|
#
|
|
# Use native tools and options
|
|
#
|
|
HOSTCPPFLAGS = -I$(BFD_ROOT_DIR)/include
|
|
|
|
ifeq ($(HOSTOS),cygwin)
|
|
|
|
all:
|
|
$(obj).depend:
|
|
|
|
else # ! CYGWIN
|
|
|
|
all: $(obj).depend $(BINS)
|
|
|
|
$(obj)gdbsend: $(obj)gdbsend.o $(obj)error.o $(obj)remote.o $(obj)serial.o
|
|
$(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^
|
|
|
|
$(obj)gdbcont: $(obj)gdbcont.o $(obj)error.o $(obj)remote.o $(obj)serial.o
|
|
$(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^
|
|
|
|
clean:
|
|
rm -f $(HOSTOBJS)
|
|
|
|
distclean: clean
|
|
rm -f $(BINS) $(obj)core $(obj)*.bak $(obj).depend
|
|
|
|
#########################################################################
|
|
|
|
# defines $(obj).depend target
|
|
include $(SRCTREE)/rules.mk
|
|
|
|
sinclude $(obj).depend
|
|
|
|
#########################################################################
|
|
|
|
endif # cygwin
|