1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | AUTOMAKE_OPTIONS = foreign 1.4 |
---|
6 | |
---|
7 | INCLUDES = -I../.. |
---|
8 | |
---|
9 | LIBNAME = libimfs |
---|
10 | LIB = ${ARCH}/${LIBNAME}.a |
---|
11 | |
---|
12 | IMFS_C_FILES = imfs_chown.c imfs_config.c imfs_creat.c imfs_directory.c \ |
---|
13 | imfs_eval.c imfs_free.c imfs_fsunmount.c imfs_gtkn.c imfs_init.c \ |
---|
14 | imfs_initsupp.c imfs_link.c imfs_mknod.c imfs_mount.c imfs_fchmod.c \ |
---|
15 | imfs_unlink.c imfs_unmount.c imfs_utime.c imfs_ntype.c imfs_stat.c \ |
---|
16 | imfs_getchild.c memfile.c linearfile.c deviceio.c imfs_handlers_device.c \ |
---|
17 | imfs_handlers_directory.c imfs_handlers_link.c imfs_handlers_memfile.c \ |
---|
18 | imfs_debug.c imfs_rmnod.c imfs_symlink.c imfs_readlink.c imfs_fdatasync.c \ |
---|
19 | imfs_fcntl.c ioman.c miniimfs_init.c imfs_load_tar.c |
---|
20 | |
---|
21 | UNIX_C_FILES = imfs_unixstub.c |
---|
22 | |
---|
23 | EMBEDDED_C_FILES = $(IMFS_C_FILES) |
---|
24 | |
---|
25 | COMMON_C_FILES = |
---|
26 | |
---|
27 | if UNIX |
---|
28 | C_FILES = $(COMMON_C_FILES) $(UNIX_C_FILES) |
---|
29 | else |
---|
30 | C_FILES = $(COMMON_C_FILES) $(EMBEDDED_C_FILES) |
---|
31 | endif |
---|
32 | C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o) |
---|
33 | |
---|
34 | include_HEADERS = imfs.h |
---|
35 | |
---|
36 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
37 | include $(top_srcdir)/../../../automake/compile.am |
---|
38 | include $(top_srcdir)/../../../automake/lib.am |
---|
39 | |
---|
40 | PREINSTALL_FILES = $(PROJECT_INCLUDE) \ |
---|
41 | $(include_HEADERS:%=$(PROJECT_INCLUDE)/%) |
---|
42 | |
---|
43 | $(PROJECT_INCLUDE): |
---|
44 | @$(mkinstalldirs) $@ |
---|
45 | |
---|
46 | $(PROJECT_INCLUDE)/%.h: %.h |
---|
47 | $(INSTALL_DATA) $< $@ |
---|
48 | |
---|
49 | OBJS = $(C_O_FILES) |
---|
50 | |
---|
51 | # |
---|
52 | # Add local stuff here using += |
---|
53 | # |
---|
54 | |
---|
55 | AM_CFLAGS += $(LIBC_DEFINES) |
---|
56 | |
---|
57 | all-local: ${ARCH} $(LIB) |
---|
58 | |
---|
59 | $(LIB): ${OBJS} |
---|
60 | $(make-library) |
---|
61 | |
---|
62 | DOC_FILES = TODO CASES |
---|
63 | |
---|
64 | EXTRA_DIST = $(DOC_FILES) $(COMMON_C_FILES) $(EMBEDDED_C_FILES) \ |
---|
65 | $(UNIX_C_FILES) |
---|
66 | |
---|
67 | include $(top_srcdir)/../../../automake/local.am |
---|