summaryrefslogtreecommitdiffstats
path: root/c/src/exec/libfs/src/dosfs/Makefile.am
blob: a3e0dd7a2a782fa20b887f7d0ae260efb14954b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
##
##  $Id$
##

AUTOMAKE_OPTIONS = foreign 1.5

include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(top_srcdir)/../../../automake/compile.am
include $(top_srcdir)/../../../automake/lib.am

INCLUDES = -I../..

AM_CFLAGS += $(LIBC_DEFINES) 

FATFS_C_FILES = fat.c fat_fat_operations.c fat_file.c

DOSFS_C_FILES = msdos_create.c msdos_dir.c msdos_eval.c msdos_file.c \
                msdos_free.c msdos_fsunmount.c msdos_handlers_dir.c  \
                msdos_handlers_file.c msdos_init.c msdos_initsupp.c  \
                msdos_misc.c msdos_mknod.c msdos_node_type.c

if !UNIX
LIBNAME = libdosfs
LIB = ${ARCH}/${LIBNAME}.a

C_FILES = $(FATFS_C_FILES) $(DOSFS_C_FILES)

C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)

include_HEADERS = fat.h fat_fat_operations.h \
                  fat_file.h msdos.h dosfs.h

H_FILES = $(PROJECT_INCLUDE) \
    $(include_HEADERS:%=$(PROJECT_INCLUDE)/%)

$(PROJECT_INCLUDE):
	@$(mkinstalldirs) $@

$(PROJECT_INCLUDE)/%.h: %.h
	$(INSTALL_DATA) $< $@

OBJS = $(C_O_FILES)

#
# Add local stuff here using +=
#
all-local: ${ARCH} $(LIB)

$(LIB): ${OBJS}
	$(make-library)
endif

TMPINSTALL_FILES += $(H_FILES)

EXTRA_DIST = $(DOSFS_C_FILES) $(FATFS_C_FILES)

include $(top_srcdir)/../../../automake/local.am