blob: 6e203a34a28917595b2f88aea5e8b42ba32ecaae [file] [log] [blame]
wdenk9096e7a2002-03-09 00:17:15 +00001#
Marian Balakowiczd62379d2006-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 Denkd79de1d2013-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 Carliera8d426f2010-11-05 15:48:07 +010015LIB = $(obj)libhwmon.o
wdenk9096e7a2002-03-09 00:17:15 +000016
Michal Simek10de36d2008-07-11 11:50:53 +020017COBJS-$(CONFIG_DTT_ADM1021) += adm1021.o
Wolfgang Denke6f95af2008-08-18 23:50:20 +020018COBJS-$(CONFIG_DTT_ADT7460) += adt7460.o
Michal Simek10de36d2008-07-11 11:50:53 +020019COBJS-$(CONFIG_DTT_DS1621) += ds1621.o
Michal Simek24b6d8a2008-07-11 15:11:57 +020020COBJS-$(CONFIG_DTT_DS1722) += ds1722.o
Michal Simek10de36d2008-07-11 11:50:53 +020021COBJS-$(CONFIG_DTT_DS1775) += ds1775.o
Dirk Eibach8fdffec2008-10-08 13:44:27 +020022COBJS-$(CONFIG_DTT_LM63) += lm63.o
Larry Johnson8487dfa2008-01-09 12:42:35 -050023COBJS-$(CONFIG_DTT_LM73) += lm73.o
Michal Simek10de36d2008-07-11 11:50:53 +020024COBJS-$(CONFIG_DTT_LM75) += lm75.o
25COBJS-$(CONFIG_DTT_LM81) += lm81.o
Marian Balakowiczd62379d2006-09-01 19:49:50 +020026
Grant Likely1179ad12007-09-24 09:05:30 -060027COBJS := $(COBJS-y)
Marian Balakowiczd62379d2006-09-01 19:49:50 +020028SRCS := $(COBJS:.o=.c)
29OBJS := $(addprefix $(obj),$(COBJS))
wdenk9096e7a2002-03-09 00:17:15 +000030
31all: $(LIB)
32
Marian Balakowiczd62379d2006-09-01 19:49:50 +020033$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010034 $(call cmd_link_o_target, $(OBJS))
wdenk9096e7a2002-03-09 00:17:15 +000035
36#########################################################################
37
Marian Balakowiczd62379d2006-09-01 19:49:50 +020038# defines $(obj).depend target
39include $(SRCTREE)/rules.mk
wdenk9096e7a2002-03-09 00:17:15 +000040
Marian Balakowiczd62379d2006-09-01 19:49:50 +020041sinclude $(obj).depend
wdenk9096e7a2002-03-09 00:17:15 +000042
43#########################################################################