]> git.hungrycats.org Git - linux/commitdiff
Use standard AS rule.
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Sun, 12 May 2002 13:25:31 +0000 (08:25 -0500)
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Sun, 12 May 2002 13:25:31 +0000 (08:25 -0500)
60 files changed:
arch/alpha/boot/Makefile
arch/alpha/kernel/Makefile
arch/alpha/lib/Makefile
arch/cris/kernel/Makefile
arch/cris/lib/Makefile
arch/m68k/fpsp040/Makefile
arch/m68k/ifpsp060/Makefile
arch/m68k/kernel/Makefile
arch/m68k/lib/Makefile
arch/m68k/math-emu/Makefile
arch/m68k/sun3/Makefile
arch/mips/au1000/common/Makefile
arch/mips/au1000/pb1000/Makefile
arch/mips/boot/Makefile
arch/mips/ddb5074/Makefile
arch/mips/ddb5476/Makefile
arch/mips/ddb5xxx/common/Makefile
arch/mips/ddb5xxx/ddb5477/Makefile
arch/mips/dec/Makefile
arch/mips/dec/boot/Makefile
arch/mips/dec/prom/Makefile
arch/mips/gt64120/common/Makefile
arch/mips/gt64120/momenco_ocelot/Makefile
arch/mips/ite-boards/generic/Makefile
arch/mips/ite-boards/ivr/Makefile
arch/mips/ite-boards/qed-4n-s01b/Makefile
arch/mips/jazz/Makefile
arch/mips/kernel/Makefile
arch/mips/lib/Makefile
arch/mips/math-emu/Makefile
arch/mips/mips-boards/atlas/Makefile
arch/mips/mips-boards/generic/Makefile
arch/mips/mips-boards/malta/Makefile
arch/mips/philips/nino/Makefile
arch/mips/sgi/kernel/Makefile
arch/mips/sni/Makefile
arch/mips/tools/Makefile
arch/mips64/boot/Makefile
arch/mips64/kernel/Makefile
arch/mips64/lib/Makefile
arch/mips64/math-emu/Makefile
arch/mips64/mips-boards/atlas/Makefile
arch/mips64/mips-boards/generic/Makefile
arch/mips64/mips-boards/malta/Makefile
arch/mips64/sgi-ip22/Makefile
arch/mips64/sgi-ip27/Makefile
arch/mips64/sgi-ip32/Makefile
arch/mips64/tools/Makefile
arch/parisc/lib/Makefile
arch/parisc/tools/Makefile
arch/s390/boot/Makefile
arch/s390/kernel/Makefile
arch/s390/lib/Makefile
arch/s390x/boot/Makefile
arch/s390x/kernel/Makefile
arch/s390x/lib/Makefile
arch/sparc/kernel/Makefile
arch/sparc/lib/Makefile
arch/sparc/math-emu/Makefile
arch/sparc/mm/Makefile

index 45e0c2389d23ef0d5c873dc742c4d53ec36501ab..154ee08d69fd61def031c8c53b2e45cf8b5544c0 100644 (file)
@@ -8,12 +8,11 @@
 # Copyright (C) 1994 by Linus Torvalds
 #
 
-LINKFLAGS = -static -T bootloader.lds #-N -relax
+USE_STANDARD_AS_RULE := true
+
+EXTRA_AFLAGS := -traditional
 
-.S.s:
-       $(CPP) $(AFLAGS) -traditional -o $*.o $<
-.S.o:
-       $(CC) $(AFLAGS) -traditional -c -o $*.o $<
+LINKFLAGS = -static -T bootloader.lds #-N -relax
 
 OBJECTS = head.o main.o
 BPOBJECTS = head.o bootp.o
index 51a5d4da1344212dc438d071f12187a7d108cc77..4d38a5bb41af37c457fed08b066e24128e7afd16 100644 (file)
@@ -7,13 +7,12 @@
 #
 # Note 2! The CFLAGS definitions are now in the main makefile...
 
-.S.s:
-       $(CPP) $(CFLAGS) $(AFLAGS) -o $*.s $<
-.S.o:
-       $(CC) $(CFLAGS) $(AFLAGS) -c -o $*.o $<
+USE_STANDARD_AS_RULE := true
 
 O_TARGET := kernel.o
 
+EXTRA_AFLAGS := $(CFLAGS)
+
 export-objs := alpha_ksyms.o
 
 obj-y    := entry.o traps.o process.o init_task.o osf_sys.o irq.o irq_alpha.o \
index 198125182f11e801d73ed601ccde190d72e5827e..842419ef2fcf9894831d19aa6cffc3df6c756f2c 100644 (file)
@@ -2,10 +2,9 @@
 # Makefile for alpha-specific library files..
 #
 
-.S.s:
-       $(CPP) -D__ASSEMBLY__ $(CFLAGS) -o $*.s $<
-.S.o:
-       $(CC) -D__ASSEMBLY__ $(CFLAGS) -c -o $*.o $<
+USE_STANDARD_AS_RULE := true
+
+EXTRA_AFLAGS := $(CFLAGS)
 
 # Many of these routines have implementations tuned for ev6.
 # Choose them iff we're targeting ev6 specifically.
index 9a92e3b2bb1f4ca0a55285cd17f5a594a0d59cdc..7146be7bc7fd771748334659a10592aa59fe4106 100644 (file)
@@ -8,10 +8,7 @@
 #
 # Note 2! The CFLAGS definitions are now in the main makefile...
 
-# These assembly files can't be assembld with -traditional, so we
-# need another build rule than the one in the toplevel Makefile.
-.S.o:
-       $(CC) $(AFLAGS) -c $< -o $*.o
+USE_STANDARD_AS_RULE := true
 
 all: kernel.o head.o
 
index da2b42434c62c10e83414c9cc15451a701fb59e2..3d6db2c38719ae8bbdcf990e7160ab7bb3783337 100644 (file)
@@ -2,10 +2,12 @@
 # Makefile for Etrax-specific library files..
 #
 
-.S.o:
-       $(CC) -D__ASSEMBLY__ $(AFLAGS) -traditional -c $< -o $*.o
+USE_STANDARD_AS_RULE := true
 
 L_TARGET = lib.a
+
+EXTRA_AFLAGS := -traditional
+
 obj-y  = checksum.o checksumcopy.o string.o usercopy.o memset.o csumcpfruser.o
 
 include $(TOPDIR)/Rules.make
index acd06e79a8790e2cf5191795319d584a2faf2285..77682d41906eda459bc2c678a362758a8cd8452e 100644 (file)
@@ -7,8 +7,9 @@
 #
 # Note 2! The CFLAGS definitions are now in the main makefile...
 
-.S.o:
-       $(CC) $(AFLAGS) -traditional -c -o $*.o $<
+USE_STANDARD_AS_RULE := true
+
+EXTRA_AFLAGS := -traditional
 
 OS_TARGET := fpsp.o
 
index 9dce0a5681838481cdcb673ffed2b6b1a6dffef3..592c4071ccadb1b82a413584f76b7e2b3ff2ddcf 100644 (file)
@@ -4,8 +4,9 @@
 # License.  See the file "README.legal" in the main directory of this archive
 # for more details.
 
-.S.o:
-       $(CC) $(AFLAGS) -traditional -c -o $*.o $<
+USE_STANDARD_AS_RULE := true
+
+EXTRA_AFLAGS := -traditional
 
 OS_TARGET := ifpsp.o
 
index 82e7bfc8b497d0b647b56478cea09af021cd8482..0cadf963e6e14f570c18e2b64845f06e3f853b29 100644 (file)
@@ -7,8 +7,9 @@
 #
 # Note 2! The CFLAGS definitions are now in the main makefile...
 
-.S.o:
-       $(CC) $(AFLAGS) -traditional -c $< -o $*.o
+USE_STANDARD_AS_RULE := true
+
+EXTRA_AFLAGS := -traditional
 
 ifndef CONFIG_SUN3
 all: head.o kernel.o
index fa3c3d0b550ba3e6229cbe7631a0412c3f5ad432..41622fcd72a15a4c9782bded0ee28b672f3a558d 100644 (file)
@@ -2,11 +2,12 @@
 # Makefile for m68k-specific library files..
 #
 
-.S.o:
-       $(CC) $(AFLAGS) -traditional -c $< -o $@
+USE_STANDARD_AS_RULE := true
 
 L_TARGET = lib.a
 
+EXTRA_AFLAGS := -traditional
+
 obj-y          := ashldi3.o ashrdi3.o lshrdi3.o muldi3.o \
                        checksum.o memcmp.o memcpy.o memset.o semaphore.o
 
index c2e505f64a265f47e6aa023f1cff7ce933b10dd7..9719d65a8d31475ab195c96b7970133942ef381e 100644 (file)
@@ -7,10 +7,12 @@
 #
 # Note 2! The CFLAGS definitions are now in the main makefile...
 
-.S.o:
-       $(CC) $(EXTRA_CFLAGS) $(AFLAGS) -traditional -c $< -o $*.o
+USE_STANDARD_AS_RULE := true
 
-#EXTRA_CFLAGS=-DFPU_EMU_DEBUG
+EXTRA_AFLAGS := -traditional
+
+#EXTRA_AFLAGS += -DFPU_EMU_DEBUG
+#EXTRA_CFLAGS += -DFPU_EMU_DEBUG
 
 O_TARGET := mathemu.o
 
index bfd04f886f4905a383742052e518d5d0537c7c9b..25cea91c3b846d8958a38d3af7fe2e40c5a987fc 100644 (file)
@@ -1,4 +1,4 @@
-#
+q#
 # Makefile for Linux arch/m68k/sun3 source directory
 #
 # Note! Dependencies are done automagically by 'make dep', which also
@@ -7,9 +7,6 @@
 #
 # Note 2! The CFLAGS definitions are now in the main makefile...
 
-.S.o:
-       $(CC) $(AFLAGS) -traditional -Wa,-m68020 -c $< -o $*.o
-
 O_TARGET := sun3.o 
 
 export-objs    := sun3_ksyms.o
index 4488d723640b0240fc3ce4238eb7c47a01cdfe93..b40d76eea5fbe5ddd1b4d52fc8dc8e0bbc714aec 100644 (file)
 # unless it's something special (ie not a .c file).
 #
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
+USE_STANDARD_AS_RULE := true
+
+EXTRA_AFLAGS := $(CFLAGS)
 
 all: au1000.o
 
index 3689134f8e1c222b94a21825878419b8f9bf4337..d90781d67a4dd08a1cd917daa2d5579232cb7a24 100644 (file)
 # unless it's something special (ie not a .c file).
 #
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
-
 all: pb1000.o
 
 O_TARGET := pb1000.o
index cfa4833b2304883891abf7ba18c3bbb2e1c374f6..7d67fee81416e06c2126047093e948d2b4baa77a 100644 (file)
@@ -6,11 +6,6 @@
 # Copyright (C) 1995, 1998, 2001 by Ralf Baechle
 #
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
-
 OBJS  = milo.o a.out.o
 
 #
index 15687d2d37e0c15c8d539a24dcf5f44b898e65e0..0bad59dc9cc665bcc2164350d065bdb5ae27a2d2 100644 (file)
@@ -9,10 +9,9 @@
 # Note 2! The CFLAGS definitions are now in the main makefile...
 #
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
+USE_STANDARD_AS_RULE := true
+
+EXTRA_AFLAGS := $(CFLAGS)
 
 O_TARGET = ddb5074.a
 
index f214396c6e9ac13d1c426939dc09c39d7ae5f192..f3e31001a9011bac6706afaf614cb96b7ff138a2 100644 (file)
@@ -9,10 +9,9 @@
 # Note 2! The CFLAGS definitions are now in the main makefile...
 #
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
+USE_STANDARD_AS_RULE := true
+
+EXTRA_AFLAGS := $(CFLAGS)
 
 O_TARGET = ddb5476.a
 
index 041b692a5abc70a2632704c44807549f034938dd..c1c8aae0950d9af0579c05a981d1cbdfba5baa1c 100644 (file)
@@ -6,11 +6,6 @@
 # unless it's something special (ie not a .c file).
 #
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
-
 O_TARGET:= ddb5xxx.o
 
 obj-y   += irq.o irq_cpu.o nile4.o prom.o pci.o pci_auto.o rtc_ds1386.o
index 18377fccd4122606e7794641a616b686b8a294d0..5c57fac0ef02978c4ef835f111e96e78d8ee13f5 100644 (file)
@@ -6,10 +6,9 @@
 # unless it's something special (ie not a .c file).
 #
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
+USE_STANDARD_AS_RULE := true
+
+EXTRA_AFLAGS := $(CFLAGS)
 
 O_TARGET:= ddb5477.o
 
index f64a98ab4801144d8e780538b14576b709bdbcef..3c9517ec01ddbeb0550919d3b3ad0008152d50f2 100644 (file)
@@ -6,10 +6,7 @@
 # unless it's something special (ie not a .c file).
 #
 
-.S.s:
-       $(CPP) $(AFLAGS) $< -o $@
-.S.o:
-       $(CC) $(AFLAGS) -c $< -o $@
+USE_STANDARD_AS_RULE := true
 
 O_TARGET := dec.o
 
index 3f69a6cf620d35c260420e9a5fbd19f04b3b34f5..a36025167b2c67aa73bc5121b0851a2ede951d1d 100644 (file)
@@ -6,11 +6,6 @@
 # unless it's something special (ie not a .c file).
 #
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
-
 netboot: all
        mipsel-linux-ld -N -G 0 -T ld.ecoff ../../boot/zImage \
                dec_boot.o ramdisk.img -o nbImage
index c139bbda302db91e88567d721a7379ed8897d08a..c0d044511d85459ce48e68d454beda4317cd8922 100644 (file)
@@ -8,10 +8,9 @@
 #
 # Note 2! The CFLAGS definitions are now in the main makefile...
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
+USE_STANDARD_AS_RULE := true
+
+EXTRA_AFLAGS := $(CFLAGS)
 
 OBJS  = init.o memory.o cmdline.o identify.o locore.o
 
index e1c4e42a00a0cb2aaabda9396c1fdc56888bd157..329cba03b141d4012f9542be71c42cb58183e121 100644 (file)
@@ -6,11 +6,6 @@
 # unless it's something special (ie not a .c file).
 #
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
-
 O_TARGET:= gt64120.o
 
 obj-y   := gt_irq.o pci.o
index ff7ee4a2125a46f8e713a5dbb83dcd9a80925dfe..b459cb539ff84360b093e9e375017ef2e2abf871 100644 (file)
@@ -6,10 +6,9 @@
 # unless it's something special (ie not a .c file).
 #
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
+USE_STANDARD_AS_RULE := true
+
+EXTRA_AFLAGS := $(CFLAGS)
 
 O_TARGET:= momenco_ocelot.o
 
index 6c7d83ea9154c313d0c3afa80e3f0ee4ad755f66..accc27e5b64d15aaa889c4ae6a1b646977803bb4 100644 (file)
 # unless it's something special (ie not a .c file).
 #
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
+USE_STANDARD_AS_RULE := true
+
+EXTRA_AFLAGS := $(CFLAGS)
 
 all: it8172.o
 
index db6636b3b77a946dfb214537e65ebeb7d9dbfe4a..83258babf8e47ad39c2c7a2df0340b16df732745 100644 (file)
 # unless it's something special (ie not a .c file).
 #
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
-
 all: ivr.o
 
 O_TARGET := ivr.o
index 0c35f8962ed1dee4c6dddb06c2bfce6330b8a78e..fee361d7f7101c689cdbc781a5d0315e89e8ab6b 100644 (file)
 # unless it's something special (ie not a .c file).
 #
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
-
 all: ite.o
 
 O_TARGET := ite.o
index 0a12a22d1ec1f1f2696f445ee4dee8548e243ea1..aeea8ff7ce30b9a316c3f3cee6a61a6d26d51f4a 100644 (file)
@@ -6,10 +6,9 @@
 # unless it's something special (ie not a .c file).
 #
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $@
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $@
+USE_STANDARD_AS_RULE := true
+
+EXTRA_AFLAGS := $(CFLAGS)
 
 all: jazz.o
 
index c58004824aa275c2aa122b884ab958c9f8e53f5d..a011941cbe3c958ff3abb83e03b3fa4a921f8ed2 100644 (file)
@@ -6,12 +6,9 @@
 # unless it's something special (ie not a .c file).
 #
 
-.S.s:
-       $(CPP) $(AFLAGS) $< -o $@
-.S.o:
-       $(CC) $(AFLAGS) -c $< -o $@
+USE_STANDARD_AS_RULE := true
 
-EXTRA_AFLAGS = -mips3 -mcpu=r4000
+# EXTRA_AFLAGS = -mips3 -mcpu=r4000 # not used?
 
 all:   kernel.o head.o init_task.o
 
index 8d2a4540621d2edd5bac55c09116144ad18f7b0d..3cf81ecd40435ef11e3a7140aea8008ee404e659 100644 (file)
@@ -2,13 +2,12 @@
 # Makefile for MIPS-specific library files..
 #
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
+USE_STANDARD_AS_RULE := true;
 
 L_TARGET = lib.a
 
+EXTRA_AFLAGS := $(CFLAGS)
+
 obj-y                          += csum_partial.o csum_partial_copy.o \
                                   rtc-std.o rtc-no.o memcpy.o memset.o \
                                   watch.o strlen_user.o strncpy_user.o \
index 9a6b054fd56dcda91a1fbe30cddf97fefb129867..1ccc9c4ad417e22e70567bc1e76da86adf106be8 100644 (file)
@@ -6,11 +6,6 @@
 # unless it's something special (ie not a .c file).
 #
 
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
-
-EXTRA_ASFLAGS = -mips2 -mcpu=r4000
-
 O_TARGET:= fpu_emulator.o
 
 obj-y  := cp1emu.o ieee754m.o ieee754d.o ieee754dp.o ieee754sp.o ieee754.o \
index b5939f8dd84dd1e6d21541bc51f71e50a9944e04..ea81c7680946f1a64ca8731902ee6ae9350ba708 100644 (file)
 #
 # Note 2! The CFLAGS definitions are now in the main makefile...
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
-
 all: atlas.o
 
 O_TARGET := atlas.o
index ebc07dcdd34f7b87a342d54b403b98bc909b23ae..d48d5996fa94b96afd1017f5c56f4205a774431c 100644 (file)
 #
 # Note 2! The CFLAGS definitions are now in the main makefile...
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
+USE_STANDARD_AS_RULE := true
+
+EXTRA_AFLAGS := $(CFLAGS)
 
 O_TARGET := mipsboards.o
 
index e71c8e8ed1f7fdc791d3e23d54ec9d6f8051849a..de8e3685edad9a050aaa4061c31ed2a413734eb8 100644 (file)
 #
 # Note 2! The CFLAGS definitions are now in the main makefile...
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
-
 O_TARGET := malta.o
 
 obj-y := malta_int.o malta_rtc.o malta_setup.o
index ca9716c312b843466a305d200a3867ad379ebac6..ab7ddfd174d95b9066a6206d863720dc2c168d32 100644 (file)
@@ -6,10 +6,7 @@
 # unless it's something special (ie not a .c file).
 #
 
-.S.s:
-       $(CPP) $(AFLAGS) $< -o $@
-.S.o:
-       $(CC) $(AFLAGS) -c $< -o $@
+USE_STANDARD_AS_RULE := true
 
 O_TARGET := nino.o
 
index dd16c6c18841037a8d1ec3693556011ed8ae4894..146aa759794ae94788d26e65824f3e671b1e4282 100644 (file)
@@ -8,10 +8,9 @@
 #
 # Note 2! The CFLAGS definitions are now in the main makefile...
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
+USE_STANDARD_AS_RULE := true
+
+EXTRA_AFLAGS := $(CFLAGS)
 
 O_TARGET := ip22-kern.o
 
index 7dfc732a307f9c098492bda1e325b3ad913d78c5..cb8cc171279367556738d40926d58b2015d3fa0c 100644 (file)
@@ -6,10 +6,9 @@
 # unless it's something special (ie not a .c file).
 #
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
+USE_STANDARD_AS_RULE := true
+
+EXTRA_AFLAGS := $(CFLAGS)
 
 all:   sni.o int-handler.o
 
index 6b6c39c65fa7a681263396bca8cd519c3ed9514a..8e6d2defc15b3ba43b629a35ebe0b29022a1b74c 100644 (file)
@@ -7,11 +7,6 @@
 #
 TARGET := $(TOPDIR)/include/asm-$(ARCH)/offset.h
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
-
 $(TARGET): offset.h
        cmp -s $^ $@ || (cp $^ $(TARGET).new && mv $(TARGET).new $(TARGET))
 
@@ -22,7 +17,7 @@ offset.s: offset.c $(TOPDIR)/include/linux/autoconf.h
 
 clean:
        rm -f offset.[hs] $(TARGET).new
-       
+
 mrproper:      
        rm -f offset.[hs] $(TARGET).new
        rm -f $(TARGET)
index ef9aeb0960cb5b85730cfd286db7d332ea8ba69d..d1b709ae3f2b7b4c3ed5f06ae9507c7818e01d6b 100644 (file)
@@ -6,11 +6,6 @@
 # Copyright (C) 1995, 1998, 1999 by Ralf Baechle
 #
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
-
 #
 # Some DECstations need all possible sections of an ECOFF executable
 #
index f97c9256a231eaaafa3a563cb95506c8ac352117..a6beb368dd48120227cbf464b6e8ecad1cc9db70 100644 (file)
@@ -6,8 +6,9 @@
 # unless it's something special (ie not a .c file).
 #
 
-.S.o:
-       $(CC) $(CFLAGS) $(CFLAGS_$@) -c $< -o $*.o
+USE_STANDARD_AS_RULE := true
+
+EXTRA_AFLAGS := $(CFLAGS)
 
 all:   kernel.o head.o init_task.o
 
@@ -25,7 +26,7 @@ obj-$(CONFIG_MIPS32_COMPAT)   += linux32.o scall_o32.o signal32.o ioctl32.o
 obj-$(CONFIG_BINFMT_ELF32)     += binfmt_elf32.o
 obj-$(CONFIG_SMP)              += smp.o
 
-CFLAGS_r4k_genex.o := -P
-CFLAGS_r4k_tlb_glue.o := -P
+AFLAGS_r4k_genex.o := -P
+AFLAGS_r4k_tlb_glue.o := -P
 
 include $(TOPDIR)/Rules.make
index 69945b97b46382daf462115e6f52baefb93fae16..9e85e528ca25f1f6ac82f8e3e3b8eb3cd265e5e8 100644 (file)
@@ -2,10 +2,9 @@
 # Makefile for MIPS-specific library files..
 #
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
+USE_STANDARD_AS_RULE := true
+
+EXTRA_AFLAGS := $(CFLAGS)
 
 L_TARGET = lib.a
 
index 9a6b054fd56dcda91a1fbe30cddf97fefb129867..1ccc9c4ad417e22e70567bc1e76da86adf106be8 100644 (file)
@@ -6,11 +6,6 @@
 # unless it's something special (ie not a .c file).
 #
 
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
-
-EXTRA_ASFLAGS = -mips2 -mcpu=r4000
-
 O_TARGET:= fpu_emulator.o
 
 obj-y  := cp1emu.o ieee754m.o ieee754d.o ieee754dp.o ieee754sp.o ieee754.o \
index dc7cd874e3d567e3b9341c682e97cd8784484c12..3433a2c8bf5d7a40c992ea39a8f9bc75765e927b 100644 (file)
 #
 # Note 2! The CFLAGS definitions are now in the main makefile...
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
-
 all: atlas.o
 
 O_TARGET := atlas.o
index aba521970660a68346d6cc4acdca2fd835baa7ce..7cb8bb1cf363ba9e3772d42949b295a8d59d6811 100644 (file)
 #
 # Note 2! The CFLAGS definitions are now in the main makefile...
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
+USE_STANDARD_AS_RULE := true
+
+EXTRA_AFLAGS := $(CFLAGS)
 
 all: mipsboards.o
 
index ed305fbd2734e4ce377770e752ba3443d66824b8..a145597ed1db7e75c40d4ec4b08741aa472d20df 100644 (file)
 #
 # Note 2! The CFLAGS definitions are now in the main makefile...
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
-
 all: malta.o
 
 O_TARGET := malta.o
index d487999292174b868b67362598c76bde664293ec..629b0753a02a57cc2676e0a63bf2aaf9a82faa55 100644 (file)
@@ -3,10 +3,9 @@
 # under Linux.
 #
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
+USE_STANDARD_AS_RULE := true
+
+EXTRA_AFLAGS := $(CFLAGS)
 
 L_TARGET = ip22.a
 
index d71c2a90ac4bd7f5db5099a8aedb22a0059f3ef9..e0a1d55bc5061121fc541bf2890583cff0e82bfa 100644 (file)
@@ -2,10 +2,9 @@
 # Makefile for the IP27 specific kernel interface routines under Linux.
 #
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
+USE_STANDARD_AS_RULE := true
+
+EXTRA_AFLAGS := $(CFLAGS)
 
 O_TARGET = ip27.o
 
index 2987fa0903becbf954c1f3183a989ab3622bf816..19b08580c4f7c2c479bb888c0cf26019f62f6e58 100644 (file)
@@ -8,10 +8,9 @@
 #
 # Note 2! The CFLAGS definitions are now in the main makefile...
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
+USE_STANDARD_AS_RULE := true
+
+EXTRA_AFLAGS := $(CFLAGS)
 
 O_TARGET := ip32-kern.a
 
index 33d0c17b13043a17c7ad006a6906ed3a2e27f16c..f60aecf77618d5ec4b9de618c6f3574142977c93 100644 (file)
@@ -7,11 +7,6 @@
 #
 TARGET := $(TOPDIR)/include/asm-$(ARCH)/offset.h
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
-
 $(TARGET): offset.h
        cmp -s $^ $@ || (cp $^ $(TARGET).new && mv $(TARGET).new $(TARGET))
 
@@ -22,7 +17,7 @@ offset.s: offset.c $(TOPDIR)/include/linux/autoconf.h
 
 clean:
        rm -f offset.[hs] $(TARGET).new
-       
+
 mrproper:      
        rm -f offset.[hs] $(TARGET).new
        rm -f $(TARGET)
index 9f0670667621058dd17b2a1e97a25fd2b859b23b..6dd789379ae2a4af5c14f4925fd88375268c5ed4 100644 (file)
@@ -2,12 +2,12 @@
 # Makefile for parisc-specific library files..
 #
 
+USE_STANDARD_AS_RULE := true
 
 L_TARGET = lib.a
-L_OBJS = lusercopy.o bitops.o checksum.o
 
+obj-y := lusercopy.o bitops.o checksum.o
 
-.S.o:
-       $(CC) -D__ASSEMBLY__ $(AFLAGS) -traditional -c $< -o $*.o
+EXTRA_AFLAGS := -traditional
 
 include $(TOPDIR)/Rules.make
index 54fad5647e8bcf9ad09023c683b87fc601661c7c..3fb5da60df70c4718f8040155f7f1b1b1abf7177 100644 (file)
@@ -7,11 +7,6 @@
 #
 TARGET := $(TOPDIR)/include/asm-$(ARCH)/offset.h
 
-.S.s:
-       $(CPP) $(CFLAGS) $< -o $*.s
-.S.o:
-       $(CC) $(CFLAGS) -c $< -o $*.o
-
 all: $(TARGET)
 
 $(TARGET): offset.h
index 99807ccfeb7d0b4416d6636da2ab01f66a61b3c0..c4d399890765ed421ee164c5c9ed7d8546dde805 100644 (file)
@@ -7,14 +7,15 @@
 #
 # Note 2! The CFLAGS definition is now in the main makefile...
 
+USE_STANDARD_AS_RULE := true
+
 OBJCOPY = $(CROSS_COMPILE)objcopy
 
 O_TARGET := 
 
-include $(TOPDIR)/Rules.make
+EXTRA_AFLAGS := -traditional
 
-.S.o:
-       $(CC) -D__ASSEMBLY__ $(AFLAGS) -traditional -c $< -o $*.o
+include $(TOPDIR)/Rules.make
 
 %.lnk: %.o
        $(LD) -Ttext 0x0 -o $@ $<
index e141521dcdebaa8ca46e0fef3eb64aa66028eddc..badbf1d09b5265ec55e9607fc69400d491cd11f5 100644 (file)
@@ -7,13 +7,14 @@
 #
 # Note 2! The CFLAGS definitions are now in the main makefile...
 
-.S.o:
-       $(CC) -D__ASSEMBLY__ $(AFLAGS) -traditional -c $< -o $*.o
+USE_STANDARD_AS_RULE := true
 
 all: kernel.o head.o init_task.o
 
 O_TARGET := kernel.o
 
+EXTRA_AFLAGS := -traditional
+
 export-objs    := debug.o ebcdic.o irq.o s390_ext.o smp.o s390_ksyms.o
 obj-y  := entry.o bitmap.o traps.o time.o process.o irq.o \
             setup.o sys_s390.o ptrace.o signal.o cpcmd.o ebcdic.o \
index 6b7465ffa8d4feeb5b8b4bf022c2e50f3986df6f..71369fbe0f9b80daaec419737c6e200779a4182b 100644 (file)
@@ -2,16 +2,12 @@
 # Makefile for s390-specific library files..
 #
 
-ifdef SMP
-.S.o:
-       $(CC) -D__ASSEMBLY__ $(AFLAGS) -traditional -c $< -o $*.o
-else
-.S.o:
-       $(CC) -D__ASSEMBLY__ -traditional -c $< -o $*.o
-endif
+USE_STANDARD_AS_RULE := true
 
 L_TARGET = lib.a
 
+EXTRA_AFLAGS := -traditional
+
 obj-y = checksum.o delay.o memset.o misaligned.o strcmp.o strncpy.o uaccess.o
 export-objs += misaligned.o
 
index 16d607880f87cce1da29379a809cc61554c6f10e..54442f3ab2c8b4c87a306a60eda5bd5be32a3dca 100644 (file)
@@ -7,14 +7,15 @@
 #
 # Note 2! The CFLAGS definition is now in the main makefile...
 
+USE_STANDARD_AS_RULE := true
+
 OBJCOPY = $(CROSS_COMPILE)objcopy
 
 O_TARGET := 
 
 include $(TOPDIR)/Rules.make
 
-.S.o:
-       $(CC) -D__ASSEMBLY__ $(AFLAGS) -traditional -c $< -o $*.o
+EXTRA_AFLAGS := -traditional
 
 %.lnk: %.o
        $(LD) -Ttext 0x0 -o $@ $<
index 957db6724bc2c6020ecce36df4b7013d214ee388..ba7d6ef5d390980b0b8c44e409f8d90dfa987a56 100644 (file)
@@ -7,13 +7,14 @@
 #
 # Note 2! The CFLAGS definitions are now in the main makefile...
 
-.S.o:
-       $(CC) -D__ASSEMBLY__ $(AFLAGS) -traditional -c $< -o $*.o
+USE_STANDARD_AS_RULE := true
 
 all: kernel.o head.o init_task.o
 
 O_TARGET       := kernel.o
 
+EXTRA_AFLAGS := -traditional
+
 export-objs    := debug.o ebcdic.o irq.o s390_ext.o smp.o s390_ksyms.o \
                   exec32.o
 
index 6b7465ffa8d4feeb5b8b4bf022c2e50f3986df6f..71369fbe0f9b80daaec419737c6e200779a4182b 100644 (file)
@@ -2,16 +2,12 @@
 # Makefile for s390-specific library files..
 #
 
-ifdef SMP
-.S.o:
-       $(CC) -D__ASSEMBLY__ $(AFLAGS) -traditional -c $< -o $*.o
-else
-.S.o:
-       $(CC) -D__ASSEMBLY__ -traditional -c $< -o $*.o
-endif
+USE_STANDARD_AS_RULE := true
 
 L_TARGET = lib.a
 
+EXTRA_AFLAGS := -traditional
+
 obj-y = checksum.o delay.o memset.o misaligned.o strcmp.o strncpy.o uaccess.o
 export-objs += misaligned.o
 
index 3be4f138f948765dcebdf648d0cb8a2fa41872b8..a56a8be2c1cd7608a31af9edffa4790441c90a00 100644 (file)
@@ -7,18 +7,16 @@
 #
 # Note 2! The CFLAGS definitions are now in the main makefile...
 
-SH = $(CONFIG_SHELL)
-
-.S.s:
-       $(CPP) $(AFLAGS) -ansi $< -o $*.s
+USE_STANDARD_AS_RULE := true
 
-.S.o:
-       $(CC) $(AFLAGS) -ansi -c $< -o $*.o
+SH = $(CONFIG_SHELL)
 
 all: kernel.o head.o init_task.o
 
 O_TARGET := kernel.o
 
+EXTRA_AFLAGS := -ansi
+
 export-objs := sparc_ksyms.o
 IRQ_OBJS := irq.o sun4m_irq.o sun4c_irq.o sun4d_irq.o
 obj-y    := entry.o wof.o wuf.o etrap.o rtrap.o traps.o ${IRQ_OBJS} \
index 164e144ea15815d73e0a52e1bc80d1710d4cf431..c1129a46a2cc3206d0b51ad560956e4a4d7bce64 100644 (file)
@@ -2,14 +2,12 @@
 # Makefile for Sparc library files..
 #
 
-.S.s:
-       $(CPP) $(AFLAGS) -ansi -DST_DIV0=0x2 $< -o $*.s
-
-.S.o:
-       $(CC) $(AFLAGS) -ansi -DST_DIV0=0x2 -c $< -o $*.o
+USE_STANDARD_AS_RULE := true
 
 L_TARGET = lib.a
 
+EXTRA_AFLAGS := -ansi -DST_DIV0=0x02
+
 obj-y := mul.o rem.o sdiv.o udiv.o umul.o urem.o ashrdi3.o memcpy.o memset.o \
          strlen.o checksum.o blockops.o memscan.o memcmp.o strncmp.o \
         strncpy_from_user.o divdi3.o udivdi3.o strlen_user.o \
index 29a6e5bd175546b129799bd84309e331864d7807..e589e13b1e1e3d94c7aaf9a9055e4c1a06a9dea8 100644 (file)
@@ -7,15 +7,12 @@
 #
 # Note 2! The CFLAGS definition is now in the main makefile...
 
+USE_STANDARD_AS_RULE := true
+
 O_TARGET := math-emu.o
 obj-y    := math.o ashldi3.o
 
-.S.s:
-       $(CPP) $(AFLAGS) -ansi $< -o $*.s
-
-.S.o:
-       $(CC) $(AFLAGS) -ansi -c $< -o $*.o
-
+EXTRA_AFLAGS := -ansi
 EXTRA_CFLAGS = -I. -I$(TOPDIR)/include/math-emu -w
 
 include $(TOPDIR)/Rules.make
index fd6be240b7f6ab1a56a2d1c879a2a54a419c6fc1..302ce81230636a25886219980031893dfbe9cdbc 100644 (file)
@@ -7,8 +7,8 @@
 #
 # Note 2! The CFLAGS definition is now in the main makefile...
 
-.S.o:
-       $(CC) $(AFLAGS) -ansi -c -o $*.o $<
+USE_STANDARD_AS_RULE := true
+EXTRA_AFLAGS := -ansi
 
 O_TARGET := mm.o
 obj-y    := fault.o init.o loadmmu.o generic.o extable.o btfixup.o