summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1993-09-28 20:15:35 +0000
committerMichael I. Bushnell <mib@gnu.org>1993-09-28 20:15:35 +0000
commit539216234795e9f2b6e4c092946f31a455677435 (patch)
treeb1cbab4a75f99df0b4a3ced5bc9d11a786e7c516
parent78a34cc0c597f024185b3845be1ec7f7b3f382da (diff)
Formerly Makefile.~6~
-rw-r--r--Makefile51
1 files changed, 11 insertions, 40 deletions
diff --git a/Makefile b/Makefile
index 91786abc..21a63141 100644
--- a/Makefile
+++ b/Makefile
@@ -1,51 +1,22 @@
-.PHONY: all install
-all: exec core bootexec
+hurd = exec core
+servers = exec core
+bin = gcore
-install: $(hurddir)/exec $(hurddir)/core \
- $(serversdir)/exec $(serversdir)/core \
- $(bindir)/gcore
-
-hurddir = $(prefix)/hurd
-serversdir = $(prefix)/servers
-libdir = $(prefix)/lib
-bindir = $(prefix)/bin
-
-INSTALL_DATA = $(INSTALL)
-INSTALL = install -c
-
-$(hurddir)/%: %
- $(INSTALL) $< $@
-
-$(bindir)/%: %
- $(INSTALL) $< $@
+include ../Makerules
-vpath %_machdep.c ../$(machine)
-
-exec bootexec core: hostarch.o $(libdir)/libc.a
-exec bootexec: exec_machdep.o
-exec: transexec.o exec_server.o exec_user.o
+exec core: hostarch.o $(libdir)/libtrivfs.a $(libdir)/libc.a
+exec: exec_server.o exec_user.o exec_machdep.o
core: core_server.o
exec.o: exec_server.h
core.o: core_server.h
-%_server.c %_server.h: %.defs
- $(MIG) $(MIGFLAGS) -server $(@:.h=.c) -sheader $(@:.c=.h)
-
-bootexec: bootexec.o exec.o
- $(LD) -X $(LDFLAGS) -r -o $@ $^
-
-$(serversdir)/core: core.text $(hurddir)/core
- @rm -f $@
- $(INSTALL_DATA) $< $@
- settrans $(word 2,$^) $@
+# This dependency makes the standard exec server be a translator. Without
+# it, /servers/exec has no translator, and exec is inserted into the boot
+# filesystem's load image with makeboot. Uncomment the line to install the
+# exec server as a translator.
+#$(serversdir)/exec: $(hurddir)/exec
$(serversdir)/exec: exec.text
@rm -f $@
$(INSTALL_DATA) $< $@
settrans '$(word 2,$^)' $@
-
-# This dependency makes the standard exec server be a translator. Without
-# it, /servers/exec has no translator, and bootexec is linked into the boot
-# filesystem. Uncomment the line to install the exec server as a
-# translator.
-#$(serversdir)/exec: $(hurddir)/exec