u-boot/drivers/hwmon/Makefile

44 lines
1,006 B
Makefile
Raw Normal View History

2002-03-09 00:17:15 +00:00
#
# (C) Copyright 2006
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
2002-03-09 00:17:15 +00:00
# (C) Copyright 2001
# Erik Theisen, Wave 7 Optics, etheisen@mindspring.com.
#
# SPDX-License-Identifier: GPL-2.0+
2002-03-09 00:17:15 +00:00
#
include $(TOPDIR)/config.mk
#CFLAGS += -DDEBUG
LIB = $(obj)libhwmon.o
COBJS-$(CONFIG_DTT_ADM1021) += adm1021.o
COBJS-$(CONFIG_DTT_ADT7460) += adt7460.o
COBJS-$(CONFIG_DTT_DS1621) += ds1621.o
COBJS-$(CONFIG_DTT_DS1722) += ds1722.o
COBJS-$(CONFIG_DTT_DS1775) += ds1775.o
COBJS-$(CONFIG_DTT_LM63) += lm63.o
COBJS-$(CONFIG_DTT_LM73) += lm73.o
COBJS-$(CONFIG_DTT_LM75) += lm75.o
COBJS-$(CONFIG_DTT_LM81) += lm81.o
2002-03-09 00:17:15 +00:00
COBJS := $(COBJS-y)
SRCS := $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(COBJS))
2002-03-09 00:17:15 +00:00
all: $(LIB)
$(LIB): $(obj).depend $(OBJS)
$(call cmd_link_o_target, $(OBJS))
2002-03-09 00:17:15 +00:00
#########################################################################
# defines $(obj).depend target
include $(SRCTREE)/rules.mk
2002-03-09 00:17:15 +00:00
sinclude $(obj).depend
2002-03-09 00:17:15 +00:00
#########################################################################