#
# Make info common to all platforms
#

LDIRT += fs.elf fs.bin

TARGETS = \
    libintflash.a \
    libboot2.a \
    libintfs.a \
    fs.elf

CFILES = \
    fl_ops.c \
    boot2_ops.c \
    fs_block.c \
    fs_fat.c \
    fs_ops.c \
    fs_mgr.c

FLASHLIB_OBJS = \
    fl_ops.o

BOOT2LIB_OBJS = \
    fl_ops.o \
    boot2_ops.o

FSLIB_OBJS = \
    fl_ops.o \
    fs_block.o \
    fs_fat.o \
    fs_ops.o

default: $(TARGETS)

SUBDIRS = test

include $(COMMONRULES)

libintflash.a: $(FLASHLIB_OBJS)
	ar rc $@ $^

libboot2.a: $(BOOT2LIB_OBJS)
	ar rc $@ $^

libintfs.a: $(FSLIB_OBJS)
	ar rc $@ $^
