patch-2.3.23 linux/drivers/acorn/block/Makefile

Next file: linux/drivers/acorn/char/keyb_arc.c
Previous file: linux/drivers/acorn/README
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.22/linux/drivers/acorn/block/Makefile linux/drivers/acorn/block/Makefile
@@ -32,17 +32,11 @@
 
 include $(TOPDIR)/Rules.make
 
+.S.o:
+	$(CC) -D__ASSEMBLY__ $(AFLAGS) -traditional -c -o $*.o $<
+
 fd1772_mod.o: $(FLOPPY)
 	$(LD) -r -o $@ $(FLOPPY)
 
 mfmhd_mod.o: mfmhd.o mfm.o
 	$(LD) -r -o $@ mfmhd.o mfm.o
-
-%.o: %.S
-ifndef $(CONFIG_BINUTILS_NEW)
-	$(CC) $(CFLAGS) -D__ASSEMBLY__ -E $< | tr ';$$' '\n#' > ..tmp.s
-	$(CC) $(CFLAGS) -c -o $@ ..tmp.s
-	$(RM) ..tmp.s
-else
-	$(CC) $(CFLAGS) -D__ASSEMBLY__ -c -o $@ $<
-endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)