blob: 80cd1c432ebf3d7abfbaeb4692671ef8d9487324 (
plain) (
blame)
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
58
|
##
## $Id$
##
LIB = ${ARCH}/libimfs.a
IMFS_C_FILES = imfs_chown.c imfs_config.c imfs_creat.c imfs_directory.c \
imfs_eval.c imfs_free.c imfs_fsunmount.c imfs_gtkn.c imfs_init.c \
imfs_initsupp.c imfs_link.c imfs_mknod.c imfs_mount.c imfs_fchmod.c \
imfs_unlink.c imfs_unmount.c imfs_utime.c imfs_ntype.c imfs_stat.c \
imfs_getchild.c memfile.c linearfile.c deviceio.c imfs_handlers_device.c \
imfs_handlers_directory.c imfs_handlers_link.c imfs_handlers_memfile.c \
imfs_debug.c imfs_rmnod.c imfs_symlink.c imfs_readlink.c imfs_fdatasync.c \
imfs_fcntl.c ioman.c miniimfs_init.c
# imfs_load_tar.c
UNIX_C_FILES = imfs_unixstub.c
EMBEDDED_C_FILES = $(IMFS_C_FILES)
if UNIX
C_FILES = $(UNIX_C_FILES)
else
C_FILES = $(EMBEDDED_C_FILES)
endif
OBJS = $(C_FILES:%.c=${ARCH}/%.$(OBJEXT))
include_HEADERS = imfs.h
include $(top_srcdir)/automake/multilib.am
include $(top_srcdir)/automake/compile.am
include $(top_srcdir)/automake/lib.am
AM_CPPFLAGS += -I$(top_builddir)
AM_CPPFLAGS += $(LIBC_DEFINES)
PREINSTALL_FILES = $(PROJECT_INCLUDE) \
$(include_HEADERS:%=$(PROJECT_INCLUDE)/%)
$(PROJECT_INCLUDE):
@$(mkinstalldirs) $@
$(PROJECT_INCLUDE)/%.h: %.h
$(INSTALL_DATA) $< $@
#
# Add local stuff here using +=
#
all-local: ${ARCH} $(LIB)
$(LIB): ${OBJS}
$(make-library)
EXTRA_DIST = $(EMBEDDED_C_FILES) $(UNIX_C_FILES)
include $(top_srcdir)/automake/local.am
|