blob: 867c5cadfa072f38af67008a8e1d74cc25ad3ee8 [file] [log] [blame]
wdenk591dda52002-11-18 00:14:45 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
wdenk591dda52002-11-18 00:14:45 +00005# (C) Copyright 2002
Albert ARIBAUD60fbc8d2011-08-04 18:45:45 +02006# Stäubli Faverges - <www.staubli.com>
wdenk591dda52002-11-18 00:14:45 +00007# Pierre AUBERT p.aubert@staubli.com
8#
9#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +020010# SPDX-License-Identifier: GPL-2.0+
wdenk591dda52002-11-18 00:14:45 +000011#
12
13include $(TOPDIR)/config.mk
14
Sebastien Carliera8d426f2010-11-05 15:48:07 +010015LIB = $(obj)libfdos.o
wdenk591dda52002-11-18 00:14:45 +000016
17AOBJS =
Jean-Christophe PLAGNIOL-VILLARD39b9fc92008-08-31 04:24:56 +020018COBJS-$(CONFIG_CMD_FDOS) := fat.o vfat.o dev.o fdos.o fs.o subdir.o
Marian Balakowiczd62379d2006-09-01 19:49:50 +020019
Jean-Christophe PLAGNIOL-VILLARD39b9fc92008-08-31 04:24:56 +020020SRCS := $(AOBJS:.o=.S) $(COBJS-y:.o=.c)
21OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS-y))
wdenk591dda52002-11-18 00:14:45 +000022
23#CPPFLAGS +=
24
25all: $(LIB) $(AOBJS)
26
Marian Balakowiczd62379d2006-09-01 19:49:50 +020027$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010028 $(call cmd_link_o_target, $(OBJS))
wdenk591dda52002-11-18 00:14:45 +000029
30
31#########################################################################
32
Marian Balakowiczd62379d2006-09-01 19:49:50 +020033# defines $(obj).depend target
34include $(SRCTREE)/rules.mk
wdenk591dda52002-11-18 00:14:45 +000035
Marian Balakowiczd62379d2006-09-01 19:49:50 +020036sinclude $(obj).depend
wdenk591dda52002-11-18 00:14:45 +000037
38#########################################################################