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