diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-05-26 15:17:50 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-05-27 08:53:05 +0200 |
commit | ee4e7f09b4fa5f3a592d1052f841b690657fc166 (patch) | |
tree | 4b5ccda11692eb47cde046cbe51f93345bef5b20 /cpukit/libfs/preinstall.am | |
parent | generic_or1k: Fix a typo in a comment (diff) | |
download | rtems-ee4e7f09b4fa5f3a592d1052f841b690657fc166.tar.bz2 |
jffs2: Move into separate library
In case the zlib compression was used, then the librtemscpu.a depended
on libz.a. To avoid a GCC patch or complicated link flags move the
JFFS2 support into a separate library to use a simple "-ljffs2 -lz" to
link the executable.
Diffstat (limited to '')
-rw-r--r-- | cpukit/libfs/preinstall.am | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cpukit/libfs/preinstall.am b/cpukit/libfs/preinstall.am index dba6cc4d81..2aca1ef32f 100644 --- a/cpukit/libfs/preinstall.am +++ b/cpukit/libfs/preinstall.am @@ -5,3 +5,20 @@ $(srcdir)/preinstall.am: Makefile.am $(AMPOLISH3) $(srcdir)/Makefile.am > $(srcdir)/preinstall.am endif +PREINSTALL_DIRS = +DISTCLEANFILES = $(PREINSTALL_DIRS) + +all-local: $(TMPINSTALL_FILES) + +TMPINSTALL_FILES = +CLEANFILES = $(TMPINSTALL_FILES) + +$(PROJECT_LIB)/$(dirstamp): + @$(MKDIR_P) $(PROJECT_LIB) + @: > $(PROJECT_LIB)/$(dirstamp) +PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp) + +$(PROJECT_LIB)/libjffs2.a: libjffs2.a $(PROJECT_LIB)/$(dirstamp) + $(INSTALL_DATA) $< $(PROJECT_LIB)/libjffs2.a +TMPINSTALL_FILES += $(PROJECT_LIB)/libjffs2.a + |