wdenk | 9096e7a | 2002-03-09 00:17:15 +0000 | [diff] [blame] | 1 | # |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 2 | # (C) Copyright 2006 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
wdenk | 9096e7a | 2002-03-09 00:17:15 +0000 | [diff] [blame] | 5 | # (C) Copyright 2001 |
| 6 | # Erik Theisen, Wave 7 Optics, etheisen@mindspring.com. |
| 7 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 8 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | 9096e7a | 2002-03-09 00:17:15 +0000 | [diff] [blame] | 9 | # |
| 10 | |
| 11 | include $(TOPDIR)/config.mk |
| 12 | |
| 13 | #CFLAGS += -DDEBUG |
| 14 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 15 | LIB = $(obj)libhwmon.o |
wdenk | 9096e7a | 2002-03-09 00:17:15 +0000 | [diff] [blame] | 16 | |
Michal Simek | 6ecbb45 | 2008-07-11 11:50:53 +0200 | [diff] [blame] | 17 | COBJS-$(CONFIG_DTT_ADM1021) += adm1021.o |
Wolfgang Denk | b734e55 | 2008-08-18 23:50:20 +0200 | [diff] [blame] | 18 | COBJS-$(CONFIG_DTT_ADT7460) += adt7460.o |
Michal Simek | 6ecbb45 | 2008-07-11 11:50:53 +0200 | [diff] [blame] | 19 | COBJS-$(CONFIG_DTT_DS1621) += ds1621.o |
Michal Simek | 18c8a28 | 2008-07-11 15:11:57 +0200 | [diff] [blame] | 20 | COBJS-$(CONFIG_DTT_DS1722) += ds1722.o |
Michal Simek | 6ecbb45 | 2008-07-11 11:50:53 +0200 | [diff] [blame] | 21 | COBJS-$(CONFIG_DTT_DS1775) += ds1775.o |
Dirk Eibach | 1c6fe6e | 2008-10-08 13:44:27 +0200 | [diff] [blame] | 22 | COBJS-$(CONFIG_DTT_LM63) += lm63.o |
Larry Johnson | 92fa37e | 2008-01-09 12:42:35 -0500 | [diff] [blame] | 23 | COBJS-$(CONFIG_DTT_LM73) += lm73.o |
Michal Simek | 6ecbb45 | 2008-07-11 11:50:53 +0200 | [diff] [blame] | 24 | COBJS-$(CONFIG_DTT_LM75) += lm75.o |
| 25 | COBJS-$(CONFIG_DTT_LM81) += lm81.o |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 26 | |
Grant Likely | f0037c5 | 2007-09-24 09:05:30 -0600 | [diff] [blame] | 27 | COBJS := $(COBJS-y) |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 28 | SRCS := $(COBJS:.o=.c) |
| 29 | OBJS := $(addprefix $(obj),$(COBJS)) |
wdenk | 9096e7a | 2002-03-09 00:17:15 +0000 | [diff] [blame] | 30 | |
| 31 | all: $(LIB) |
| 32 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 33 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 34 | $(call cmd_link_o_target, $(OBJS)) |
wdenk | 9096e7a | 2002-03-09 00:17:15 +0000 | [diff] [blame] | 35 | |
| 36 | ######################################################################### |
| 37 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 38 | # defines $(obj).depend target |
| 39 | include $(SRCTREE)/rules.mk |
wdenk | 9096e7a | 2002-03-09 00:17:15 +0000 | [diff] [blame] | 40 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 41 | sinclude $(obj).depend |
wdenk | 9096e7a | 2002-03-09 00:17:15 +0000 | [diff] [blame] | 42 | |
| 43 | ######################################################################### |