From 539216234795e9f2b6e4c092946f31a455677435 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 28 Sep 1993 20:15:35 +0000 Subject: Formerly Makefile.~6~ --- Makefile | 51 +++++++++++---------------------------------------- 1 file 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 -- cgit v1.2.3