summaryrefslogtreecommitdiff
path: root/ufs/Makefile
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-03-02 20:46:41 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-03-02 20:46:41 +0000
commit08f49203ca7a559f4a784e2bf1dc77d9c536a8d9 (patch)
treedd3f2954354e30ad73e9bc8a0e01099b2ff7a160 /ufs/Makefile
parentab0a73bb86ebfee4404d436aa05a649292435b4f (diff)
Formerly Makefile.~11~
Diffstat (limited to 'ufs/Makefile')
-rw-r--r--ufs/Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/ufs/Makefile b/ufs/Makefile
index 160e98f4..2676862e 100644
--- a/ufs/Makefile
+++ b/ufs/Makefile
@@ -26,8 +26,9 @@ DIST_FILES=$(SRCS) ufs.h Makefile fs.h dinode.h dir.h
OBJS=$(subst .c,.o,$(SRCS)) exec_server_image.o
-LIBS = $(libdiskfs) $(libports) $(libdiskfs) $(libpager) $(libioserver) \
- $(libfshelp) $(libdiskfs) $(libthreads) $(libports)
+LIBS = $(hurdinst)/lib/libdiskfscombined.a $(libthreads)
+
+LIBPARTS = $(libdiskfs) $(libports) $(libpager) $(libioserver) $(libfshelp)
all: ufs
@@ -54,5 +55,16 @@ sizes.o: fs.h dinode.h
subr.o: fs.h
tables.o: fs.h
+$(hurdinst)/lib/libdiskfscombined.a: $(LIBPARTS)
+ -mkdir foo
+ cd foo; $(AR) x $(libdiskfs)
+ cd foo; $(AR) x $(libports)
+ cd foo; $(AR) x $(libpager)
+ cd foo; $(AR) x $(libioserver)
+ cd foo; $(AR) x $(libfshelp)
+ cd foo; $(AR) cr $(hurdinst)/lib/libdiskfscombined.a *
+ rm -rf foo
+ $(RANLIB) $(hurdinst)/lib/libdiskfscombined.a
+
$(foreach dir,mkbootfs exec,../$(dir)/%): FORCE
$(MAKE) -C $(@D) $(@F)