Luigi 'Comio' Mantellini | fc9c172 | 2008-09-08 02:46:13 +0200 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2007-2008 Industrie Dial Face S.p.A. |
| 3 | # Luigi 'Comio' Mantellini (luigi.mantellini@idf-hit.com) |
| 4 | # |
| 5 | # (C) Copyright 2003-2006 |
| 6 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 7 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 8 | # SPDX-License-Identifier: GPL-2.0+ |
Luigi 'Comio' Mantellini | fc9c172 | 2008-09-08 02:46:13 +0200 | [diff] [blame] | 9 | # |
| 10 | |
| 11 | include $(TOPDIR)/config.mk |
| 12 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 13 | LIB = $(obj)liblzma.o |
Luigi 'Comio' Mantellini | fc9c172 | 2008-09-08 02:46:13 +0200 | [diff] [blame] | 14 | |
| 15 | SOBJS = |
| 16 | |
Luigi 'Comio' Mantellini | 3f1649f | 2009-07-28 09:33:17 +0200 | [diff] [blame] | 17 | CFLAGS += -D_LZMA_PROB32 |
Luigi 'Comio' Mantellini | caf72ff | 2009-07-21 10:45:49 +0200 | [diff] [blame] | 18 | |
| 19 | COBJS-$(CONFIG_LZMA) += LzmaDec.o LzmaTools.o |
Luigi 'Comio' Mantellini | fc9c172 | 2008-09-08 02:46:13 +0200 | [diff] [blame] | 20 | |
| 21 | COBJS = $(COBJS-y) |
| 22 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 23 | OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) |
| 24 | |
| 25 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 26 | $(call cmd_link_o_target, $(OBJS)) |
Luigi 'Comio' Mantellini | fc9c172 | 2008-09-08 02:46:13 +0200 | [diff] [blame] | 27 | |
| 28 | ######################################################################### |
| 29 | |
| 30 | # defines $(obj).depend target |
| 31 | include $(SRCTREE)/rules.mk |
| 32 | |
| 33 | sinclude $(obj).depend |
| 34 | |
| 35 | ######################################################################### |