blob: 6e203a34a28917595b2f88aea5e8b42ba32ecaae [file] [log] [blame]
wdenk9096e7a2002-03-09 00:17:15 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
wdenk9096e7a2002-03-09 00:17:15 +00005# (C) Copyright 2001
6# Erik Theisen, Wave 7 Optics, etheisen@mindspring.com.
7#
Wolfgang Denk1a459662013-07-08 09:37:19 +02008# SPDX-License-Identifier: GPL-2.0+
wdenk9096e7a2002-03-09 00:17:15 +00009#
10
11include $(TOPDIR)/config.mk
12
13#CFLAGS += -DDEBUG
14
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010015LIB = $(obj)libhwmon.o
wdenk9096e7a2002-03-09 00:17:15 +000016
Michal Simek6ecbb452008-07-11 11:50:53 +020017COBJS-$(CONFIG_DTT_ADM1021) += adm1021.o
Wolfgang Denkb734e552008-08-18 23:50:20 +020018COBJS-$(CONFIG_DTT_ADT7460) += adt7460.o
Michal Simek6ecbb452008-07-11 11:50:53 +020019COBJS-$(CONFIG_DTT_DS1621) += ds1621.o
Michal Simek18c8a282008-07-11 15:11:57 +020020COBJS-$(CONFIG_DTT_DS1722) += ds1722.o
Michal Simek6ecbb452008-07-11 11:50:53 +020021COBJS-$(CONFIG_DTT_DS1775) += ds1775.o
Dirk Eibach1c6fe6e2008-10-08 13:44:27 +020022COBJS-$(CONFIG_DTT_LM63) += lm63.o
Larry Johnson92fa37e2008-01-09 12:42:35 -050023COBJS-$(CONFIG_DTT_LM73) += lm73.o
Michal Simek6ecbb452008-07-11 11:50:53 +020024COBJS-$(CONFIG_DTT_LM75) += lm75.o
25COBJS-$(CONFIG_DTT_LM81) += lm81.o
Marian Balakowiczf9328632006-09-01 19:49:50 +020026
Grant Likelyf0037c52007-09-24 09:05:30 -060027COBJS := $(COBJS-y)
Marian Balakowiczf9328632006-09-01 19:49:50 +020028SRCS := $(COBJS:.o=.c)
29OBJS := $(addprefix $(obj),$(COBJS))
wdenk9096e7a2002-03-09 00:17:15 +000030
31all: $(LIB)
32
Marian Balakowiczf9328632006-09-01 19:49:50 +020033$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010034 $(call cmd_link_o_target, $(OBJS))
wdenk9096e7a2002-03-09 00:17:15 +000035
36#########################################################################
37
Marian Balakowiczf9328632006-09-01 19:49:50 +020038# defines $(obj).depend target
39include $(SRCTREE)/rules.mk
wdenk9096e7a2002-03-09 00:17:15 +000040
Marian Balakowiczf9328632006-09-01 19:49:50 +020041sinclude $(obj).depend
wdenk9096e7a2002-03-09 00:17:15 +000042
43#########################################################################