summaryrefslogtreecommitdiff
path: root/i386/Makefrag
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-04-26 06:34:39 +0000
committerThomas Bushnell <thomas@gnu.org>1999-04-26 06:34:39 +0000
commitab7fab6be2599595297b40a2c6a0164049202fb3 (patch)
treef4e8ba94d0f91f157b492823dcae468bb1f904fb /i386/Makefrag
parent86297c41a26f18d924e64fc93321c59cbc4c48dd (diff)
Mon Apr 26 02:13:02 1999 Thomas Bushnell, BSG <tb@mit.edu>
* 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.
Diffstat (limited to 'i386/Makefrag')
-rw-r--r--i386/Makefrag35
1 files changed, 35 insertions, 0 deletions
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))