xref: /openbmc/u-boot/lib/lzma/Makefile (revision 3be2bdf5)
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#
8# SPDX-License-Identifier:	GPL-2.0+
9#
10
11include $(TOPDIR)/config.mk
12
13LIB	= $(obj)liblzma.o
14
15SOBJS	=
16
17CFLAGS += -D_LZMA_PROB32
18
19COBJS-$(CONFIG_LZMA) += LzmaDec.o LzmaTools.o
20
21COBJS	= $(COBJS-y)
22SRCS 	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
23OBJS	:= $(addprefix $(obj),$(SOBJS) $(COBJS))
24
25$(LIB):	$(obj).depend $(OBJS)
26	$(call cmd_link_o_target, $(OBJS))
27
28#########################################################################
29
30# defines $(obj).depend target
31include $(SRCTREE)/rules.mk
32
33sinclude $(obj).depend
34
35#########################################################################
36