blob: 9b1a3d78a3cf559bca08b056966d30ad413d457c [file] [log] [blame]
wdenkae65f502004-01-03 21:24:46 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenkae65f502004-01-03 21:24:46 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenkae65f502004-01-03 21:24:46 +00006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)libcramfs.o
wdenkae65f502004-01-03 21:24:46 +000011
12AOBJS =
Jean-Christophe PLAGNIOL-VILLARD39b9fc92008-08-31 04:24:56 +020013COBJS-$(CONFIG_CMD_CRAMFS) := cramfs.o
14COBJS-$(CONFIG_CMD_CRAMFS) += uncompress.o
Marian Balakowiczd62379d2006-09-01 19:49:50 +020015
Jean-Christophe PLAGNIOL-VILLARD39b9fc92008-08-31 04:24:56 +020016SRCS := $(AOBJS:.o=.S) $(COBJS-y:.o=.c)
17OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS-y))
wdenkae65f502004-01-03 21:24:46 +000018
19#CPPFLAGS +=
20
21all: $(LIB) $(AOBJS)
22
Marian Balakowiczd62379d2006-09-01 19:49:50 +020023$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010024 $(call cmd_link_o_target, $(OBJS))
wdenkae65f502004-01-03 21:24:46 +000025
26
27#########################################################################
28
Marian Balakowiczd62379d2006-09-01 19:49:50 +020029# defines $(obj).depend target
30include $(SRCTREE)/rules.mk
wdenkae65f502004-01-03 21:24:46 +000031
Marian Balakowiczd62379d2006-09-01 19:49:50 +020032sinclude $(obj).depend
wdenkae65f502004-01-03 21:24:46 +000033
34#########################################################################