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