summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1993-09-28 20:15:31 +0000
committerMichael I. Bushnell <mib@gnu.org>1993-09-28 20:15:31 +0000
commit5820b5b1a813099b4281833fb2f79d3be92ec1a7 (patch)
treedf448eff10717b736bb2570031196a2db3eb4de9 /Makefile
parent3e1ff388798ecc1894ffdadb261a0bdb2850c357 (diff)
Formerly Makefile.~2~
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..2ec85fe9
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+hurddir = $(prefix)/hurd
+serversdir = $(prefix)/servers
+
+.PHONY: all install
+all: exec core bootexec
+install: $(hurddir)/exec $(hurddir)/core $(serversdir)/exec $(serversdir)/core
+
+exec bootexec core: hostarch.o
+exec bootexec: exec_machdep.o
+exec: transexec.o
+
+bootexec: bootexec.o exec.o
+ $(LD) $(LDFLAGS) -r -o $@ $^
+
+$(serversdir)/core: core.text $(hurddir)/core
+ @rm -f $@
+ cp $< $@
+ settrans $(word 2,$^) $@
+
+$(serversdir)/exec: exec.text
+ @rm -f $@
+ cp $< $@