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 | SYS_H_FILES = |
---|
36 | RTEMS_H_FILES = |
---|
37 | noinst_HEADERS = |
---|
38 | |
---|
39 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
40 | include $(top_srcdir)/../../../automake/compile.am |
---|
41 | include $(top_srcdir)/../../../automake/lib.am |
---|
42 | |
---|
43 | PREINSTALL_FILES = $(PROJECT_INCLUDE) $(PROJECT_INCLUDE)/rtems \ |
---|
44 | $(PROJECT_INCLUDE)/sys $(include_HEADERS:%=$(PROJECT_INCLUDE)/%) \ |
---|
45 | $(RTEMS_H_FILES:%=$(PROJECT_INCLUDE)/rtems/%) \ |
---|
46 | $(SYS_H_FILES:%=$(PROJECT_INCLUDE)/sys/%) |
---|
47 | |
---|
48 | $(PROJECT_INCLUDE): |
---|
49 | @$(mkinstalldirs) $@ |
---|
50 | $(PROJECT_INCLUDE)/rtems: |
---|
51 | @$(mkinstalldirs) $@ |
---|
52 | $(PROJECT_INCLUDE)/sys: |
---|
53 | @$(mkinstalldirs) $@ |
---|
54 | |
---|
55 | $(PROJECT_INCLUDE)/%.h: %.h |
---|
56 | $(INSTALL_DATA) $< $@ |
---|
57 | $(PROJECT_INCLUDE)/rtems/%.h: %.h |
---|
58 | $(INSTALL_DATA) $< $@ |
---|
59 | $(PROJECT_INCLUDE)/sys/%.h: %.h |
---|
60 | $(INSTALL_DATA) $< $@ |
---|
61 | |
---|
62 | OBJS = $(C_O_FILES) |
---|
63 | |
---|
64 | # |
---|
65 | # Add local stuff here using += |
---|
66 | # |
---|
67 | |
---|
68 | AM_CFLAGS += $(LIBC_DEFINES) |
---|
69 | |
---|
70 | all-local: ${ARCH} $(LIB) |
---|
71 | |
---|
72 | $(LIB): ${OBJS} |
---|
73 | $(make-library) |
---|
74 | |
---|
75 | DOC_FILES = TODO CASES |
---|
76 | |
---|
77 | EXTRA_DIST = $(DOC_FILES) $(COMMON_C_FILES) $(EMBEDDED_C_FILES) \ |
---|
78 | $(UNIX_C_FILES) $(RTEMS_H_FILES) $(SYS_H_FILES) |
---|
79 | |
---|
80 | include $(top_srcdir)/../../../automake/local.am |
---|