2002-03-09 08:17:15 +08:00
|
|
|
#
|
2006-09-02 01:49:50 +08:00
|
|
|
# (C) Copyright 2006
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
2002-03-09 08:17:15 +08:00
|
|
|
# (C) Copyright 2001
|
|
|
|
# Erik Theisen, Wave 7 Optics, etheisen@mindspring.com.
|
|
|
|
#
|
2013-07-08 15:37:19 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2002-03-09 08:17:15 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
|
|
|
#CFLAGS += -DDEBUG
|
|
|
|
|
2010-11-05 22:48:07 +08:00
|
|
|
LIB = $(obj)libhwmon.o
|
2006-09-02 01:49:50 +08:00
|
|
|
|
2008-07-11 17:50:53 +08:00
|
|
|
COBJS-$(CONFIG_DTT_ADM1021) += adm1021.o
|
2008-08-19 05:50:20 +08:00
|
|
|
COBJS-$(CONFIG_DTT_ADT7460) += adt7460.o
|
2008-07-11 17:50:53 +08:00
|
|
|
COBJS-$(CONFIG_DTT_DS1621) += ds1621.o
|
2008-07-11 21:11:57 +08:00
|
|
|
COBJS-$(CONFIG_DTT_DS1722) += ds1722.o
|
2008-07-11 17:50:53 +08:00
|
|
|
COBJS-$(CONFIG_DTT_DS1775) += ds1775.o
|
2008-10-08 19:44:27 +08:00
|
|
|
COBJS-$(CONFIG_DTT_LM63) += lm63.o
|
2008-01-10 01:42:35 +08:00
|
|
|
COBJS-$(CONFIG_DTT_LM73) += lm73.o
|
2008-07-11 17:50:53 +08:00
|
|
|
COBJS-$(CONFIG_DTT_LM75) += lm75.o
|
|
|
|
COBJS-$(CONFIG_DTT_LM81) += lm81.o
|
2002-03-09 08:17:15 +08:00
|
|
|
|
2007-09-24 23:05:30 +08:00
|
|
|
COBJS := $(COBJS-y)
|
2006-09-02 01:49:50 +08:00
|
|
|
SRCS := $(COBJS:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(COBJS))
|
2002-03-09 08:17:15 +08:00
|
|
|
|
|
|
|
all: $(LIB)
|
|
|
|
|
2006-09-02 01:49:50 +08:00
|
|
|
$(LIB): $(obj).depend $(OBJS)
|
2010-11-05 22:48:07 +08:00
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
2002-03-09 08:17:15 +08:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
2006-09-02 01:49:50 +08:00
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
2002-03-09 08:17:15 +08:00
|
|
|
|
2006-09-02 01:49:50 +08:00
|
|
|
sinclude $(obj).depend
|
2002-03-09 08:17:15 +08:00
|
|
|
|
|
|
|
#########################################################################
|