In Rules.make, a comment says:
# Old makefiles define their own rules for compiling .S files,
# but these standard rules are available for any Makefile that
# wants to use them. Our plan is to incrementally convert all
# the Makefiles to these standard rules. -- rmk, mec
This patch does that for the i386 arch Makefiles.
#
# Note 2! The CFLAGS definitions are now in the main makefile...
-.S.o:
- $(CC) $(AFLAGS) -traditional -c $< -o $*.o
+EXTRA_AFLAGS := -traditional
+USE_STANDARD_AS_RULE := true
all: first_rule kernel.o head.o init_task.o
# Makefile for i386-specific library files..
#
-.S.o:
- $(CC) $(AFLAGS) -c $< -o $*.o
+USE_STANDARD_AS_RULE := true
L_TARGET = lib.a
PARANOID = -DPARANOID
CFLAGS := $(CFLAGS) $(PARANOID) $(DEBUG) -fno-builtin $(MATH_EMULATION)
-.S.o:
- $(CC) $(AFLAGS) $(PARANOID) -c $<
+USE_STANDARD_AS_RULE := true
+EXTRA_AFLAGS := $(PARANOID)
# From 'C' language sources:
C_OBJS =fpu_entry.o errors.o \