source:
rtems/cpukit/libfs/src/imfs/Makefile.am
@
d71c6c1
Last change on this file since d71c6c1 was d71c6c1, checked in by Joel Sherrill <joel.sherrill@…>, on 10/18/00 at 18:10:55 | |
---|---|
|
|
File size: 1.9 KB |
Line | |
---|---|
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_creat.c imfs_directory.c imfs_eval.c \ |
11 | imfs_free.c imfs_fsunmount.c imfs_gtkn.c imfs_init.c imfs_initsupp.c \ |
12 | imfs_link.c imfs_mknod.c imfs_mount.c imfs_fchmod.c imfs_unlink.c \ |
13 | imfs_unmount.c imfs_utime.c imfs_ntype.c imfs_stat.c imfs_getchild.c \ |
14 | memfile.c deviceio.c imfs_handlers_device.c imfs_handlers_directory.c \ |
15 | imfs_handlers_link.c imfs_handlers_memfile.c imfs_debug.c imfs_rmnod.c \ |
16 | imfs_symlink.c imfs_readlink.c imfs_fdatasync.c imfs_fcntl.c \ |
17 | miniimfs_init.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) -I $(top_srcdir)/../lib/libc |
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 |
Note: See TracBrowser
for help on using the repository browser.