From ab7fab6be2599595297b40a2c6a0164049202fb3 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Mon, 26 Apr 1999 06:34:39 +0000 Subject: Mon Apr 26 02:13:02 1999 Thomas Bushnell, BSG * Makefile.in (objfiles): Don't add $(systype)/sysdep.o here. ($(systype)/sysdep.o): Delete rule. (clean, distclean, mostlyclean, maintainerclean, install-headers, install-kernel): Don't do recursive make here. * i386/Makefrag (objfiles): Add i386/sysdep.o to the list. (i386/sysdep.o): New rule. (clean): Depend on i386-clean. (distclean): Depend on i386-distclean. (mostlyclean): Depend on i386-mostlyclean. (maintainerclean): Depend on i386-maintainerclean. (install-headers): Depend on i386-install-headers. (install-kernel): Depend on i386-install-kernel. (i386-clean, i386-distclean, i386-mostlyclean, i386-maintainerclean, i386-install-kernel, i386-install-headers): New rules. --- i386/Makefrag | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'i386/Makefrag') diff --git a/i386/Makefrag b/i386/Makefrag index 8336b01..38e7632 100644 --- a/i386/Makefrag +++ b/i386/Makefrag @@ -59,6 +59,33 @@ ifeq ($(findstring -DMACH_LPR,@DEFS@),-DMACH_LPR) objfiles += lpr.o endif +# We link the device drivers together into this file in a separate Make +# run, because the Linux-related code sometimes re-uses filenames. Arrange +# to have that Makefile used to generate and clean and otherwise deal with +# those filenames. + +objfiles += i386/sysdep.o +i386/sysdep.o: $(systype) + cd i386 && $(MAKE) all + +clean: i386-clean +i386-clean: + cd i386 && $(MAKE) clean + +distclean: i386-distclean +i386-distclean: + cd i386 && $(MAKE) distclean + +mostlyclean: i386-mostlyclean +i386-mostlyclean: + cd i386 && $(MAKE) mostlyclean + +maintainerclean: i386-maintainerclean +i386-maitainerclean: + cd i386 && $(MAKE) maintainer-clean + + + # Where to find some things @@ -85,6 +112,14 @@ boothdr.o: i386asm.h # Header files we install +install-headers: i386-install-headers +i386-install-headers: + cd i386 && $(MAKE) install-headers + +install-kernel: i386-install-kernel +i386-install-kernel: + cd $(systype) && $(MAKE) install-kernel + # We have our own version of this file installed-headers := $(filter-out mach/proc_ops.h,$(installed-headers)) -- cgit v1.2.3