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