u-boot/net/Makefile

44 lines
1.0 KiB
Makefile
Raw Normal View History

2002-02-25 07:28:19 +08:00
#
# (C) Copyright 2000-2006
2002-02-25 07:28:19 +08:00
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
# SPDX-License-Identifier: GPL-2.0+
2002-02-25 07:28:19 +08:00
#
include $(TOPDIR)/config.mk
# CFLAGS += -DDEBUG
2002-02-25 07:28:19 +08:00
LIB = $(obj)libnet.o
COBJS-$(CONFIG_CMD_NET) += arp.o
COBJS-$(CONFIG_CMD_NET) += bootp.o
COBJS-$(CONFIG_CMD_CDP) += cdp.o
COBJS-$(CONFIG_CMD_DNS) += dns.o
COBJS-$(CONFIG_CMD_NET) += eth.o
COBJS-$(CONFIG_CMD_LINK_LOCAL) += link_local.o
COBJS-$(CONFIG_CMD_NET) += net.o
COBJS-$(CONFIG_CMD_NFS) += nfs.o
COBJS-$(CONFIG_CMD_PING) += ping.o
COBJS-$(CONFIG_CMD_RARP) += rarp.o
COBJS-$(CONFIG_CMD_SNTP) += sntp.o
COBJS-$(CONFIG_CMD_NET) += tftp.o
COBJS := $(sort $(COBJS-y))
SRCS := $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(COBJS))
2002-02-25 07:28:19 +08:00
all: $(LIB)
$(LIB): $(obj).depend $(OBJS)
$(call cmd_link_o_target, $(OBJS))
2002-02-25 07:28:19 +08:00
#########################################################################
# defines $(obj).depend target
include $(SRCTREE)/rules.mk
2002-02-25 07:28:19 +08:00
sinclude $(obj).depend
2002-02-25 07:28:19 +08:00
#########################################################################