Commit 35d0afd5 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Linus Torvalds

[PATCH] USE_STANDARD_AS_RULE in i386 arch Makefiles

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.
parent 4bff7fd2
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
# #
# Note 2! The CFLAGS definitions are now in the main makefile... # Note 2! The CFLAGS definitions are now in the main makefile...
.S.o: EXTRA_AFLAGS := -traditional
$(CC) $(AFLAGS) -traditional -c $< -o $*.o USE_STANDARD_AS_RULE := true
all: first_rule kernel.o head.o init_task.o all: first_rule kernel.o head.o init_task.o
......
...@@ -2,8 +2,7 @@ ...@@ -2,8 +2,7 @@
# Makefile for i386-specific library files.. # Makefile for i386-specific library files..
# #
.S.o: USE_STANDARD_AS_RULE := true
$(CC) $(AFLAGS) -c $< -o $*.o
L_TARGET = lib.a L_TARGET = lib.a
......
...@@ -9,8 +9,8 @@ DEBUG = ...@@ -9,8 +9,8 @@ DEBUG =
PARANOID = -DPARANOID PARANOID = -DPARANOID
CFLAGS := $(CFLAGS) $(PARANOID) $(DEBUG) -fno-builtin $(MATH_EMULATION) CFLAGS := $(CFLAGS) $(PARANOID) $(DEBUG) -fno-builtin $(MATH_EMULATION)
.S.o: USE_STANDARD_AS_RULE := true
$(CC) $(AFLAGS) $(PARANOID) -c $< EXTRA_AFLAGS := $(PARANOID)
# From 'C' language sources: # From 'C' language sources:
C_OBJS =fpu_entry.o errors.o \ C_OBJS =fpu_entry.o errors.o \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment