summaryrefslogtreecommitdiff
path: root/ufs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'ufs/Makefile')
-rw-r--r--ufs/Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/ufs/Makefile b/ufs/Makefile
index 11b82256..cf4d2be1 100644
--- a/ufs/Makefile
+++ b/ufs/Makefile
@@ -19,3 +19,36 @@ dir := ufs
include ../Makeconf
+SRCS=alloc.c consts.c devio.c dir.c hyper.c inode.c main.c pager.c \
+ subr.c tables.c
+
+DISTFILES=$(SRCS) ufs.h Makefile
+
+OBJS=$(subst .c,.o,$(SRCS)) exec_server_image.o
+
+LIBS= $(libdiskfs) $(libpager) $(libioserver) $(libfshelp) \
+ $(libports) $(libthreads)
+
+all: ufs
+
+ufs: $(OBJS) $(LIBS)
+ $(link)
+
+exec_server_image.o: ../exec/exec ../mkbootfs/mkbootfs
+ ../mkbootfs/mkbootfs ../exec/exec exec_server_image.o
+
+$(OBJS): ufs.h
+$(OBJS): $(addprefix $(headers)/hurd/,diskfs.h pager.h ioserver.h \
+ fshelp.h ports.h)
+alloc.o: fs.h dinode.h
+consts.o: dinode.h
+dir.o: dir.h
+hyper.o: fs.h
+inode.o: dinode.h fs.h
+main.o: fs.h
+pager.o: fs.h dinode.h
+subr.o: fs.h
+tables.o: fs.h
+
+$(foreach dir,mkbootfs exec,../$(dir)/%): FORCE
+ $(MAKE) -C $(@D) $(@F)