Commit 79455a34 authored by Kai Germaschewski's avatar Kai Germaschewski

IA64: Use standard AS rule

parent 5e8a4a7d
...@@ -5,10 +5,7 @@ ...@@ -5,10 +5,7 @@
# Copyright (C) Srinivasa Thirumalachar (sprasad@engr.sgi.com) # Copyright (C) Srinivasa Thirumalachar (sprasad@engr.sgi.com)
# #
.S.s: USE_STANDARD_AS_RULE := true
$(CPP) $(AFLAGS) -o $*.s $<
.S.o:
$(CC) $(AFLAGS) -c -o $*.o $<
all: dig.a all: dig.a
......
...@@ -2,10 +2,9 @@ ...@@ -2,10 +2,9 @@
# Makefile for the ia32 kernel emulation subsystem. # Makefile for the ia32 kernel emulation subsystem.
# #
.S.s: USE_STANDARD_AS_RULE := true
$(CPP) $(AFLAGS) $(AFLAGS_KERNEL) -o $*.s $<
.S.o: EXTRA_AFLAGS := $(AFLAGS_KERNEL)
$(CC) $(AFLAGS) $(AFLAGS_KERNEL) -c -o $*.o $<
all: ia32.o all: ia32.o
......
...@@ -2,10 +2,9 @@ ...@@ -2,10 +2,9 @@
# Makefile for the linux kernel. # Makefile for the linux kernel.
# #
.S.s: USE_STANDARD_AS_RULE := true
$(CPP) $(AFLAGS) $(AFLAGS_KERNEL) -o $*.s $<
.S.o: EXTRA_AFLAGS := $(AFLAGS_KERNEL)
$(CC) $(AFLAGS) $(AFLAGS_KERNEL) -c -o $*.o $<
all: kernel.o head.o init_task.o all: kernel.o head.o init_task.o
......
...@@ -2,8 +2,9 @@ ...@@ -2,8 +2,9 @@
# Makefile for ia64-specific library routines.. # Makefile for ia64-specific library routines..
# #
.S.o: USE_STANDARD_AS_RULE := true
$(CC) $(AFLAGS) $(AFLAGS_KERNEL) -c $< -o $@
EXTRA_AFLAGS := $(AFLAGS_KERNEL)
L_TARGET = lib.a L_TARGET = lib.a
......
...@@ -6,6 +6,10 @@ ...@@ -6,6 +6,10 @@
# Copyright (c) 2000-2001 Silicon Graphics, Inc. All rights reserved. # Copyright (c) 2000-2001 Silicon Graphics, Inc. All rights reserved.
# #
USE_STANDARD_AS_RULE := true
EXTRA_AFLAGS := $(AFLAGS_KERNEL)
TOPDIR=../../../.. TOPDIR=../../../..
HPATH = $(TOPDIR)/include HPATH = $(TOPDIR)/include
...@@ -17,11 +21,6 @@ obj-y=fprom ...@@ -17,11 +21,6 @@ obj-y=fprom
fprom: $(OBJ) fprom: $(OBJ)
$(LD) -static -Tfprom.lds -o fprom $(OBJ) $(LIB) $(LD) -static -Tfprom.lds -o fprom $(OBJ) $(LIB)
.S.o:
$(CC) -D__ASSEMBLY__ $(AFLAGS) $(AFLAGS_KERNEL) -c -o $*.o $<
.c.o:
$(CC) $(CFLAGS) $(CFLAGS_KERNEL) -c -o $*.o $<
clean: clean:
rm -f *.o fprom rm -f *.o fprom
......
...@@ -31,12 +31,11 @@ ...@@ -31,12 +31,11 @@
# http://oss.sgi.com/projects/GenInfo/NoticeExplan # http://oss.sgi.com/projects/GenInfo/NoticeExplan
# #
EXTRA_CFLAGS := -DLITTLE_ENDIAN USE_STANDARD_AS_RULE := true
EXTRA_AFLAGS := $(AFLAGS_KERNEL)
.S.s: EXTRA_CFLAGS := -DLITTLE_ENDIAN
$(CPP) $(AFLAGS) $(AFLAGS_KERNEL) -o $*.s $<
.S.o:
$(CC) $(AFLAGS) $(AFLAGS_KERNEL) -c -o $*.o $<
O_TARGET = sn.o O_TARGET = sn.o
......
...@@ -32,13 +32,11 @@ ...@@ -32,13 +32,11 @@
# http://oss.sgi.com/projects/GenInfo/NoticeExplan # http://oss.sgi.com/projects/GenInfo/NoticeExplan
# #
USE_STANDARD_AS_RULE := true
EXTRA_CFLAGS := -DLITTLE_ENDIAN EXTRA_AFLAGS := $(AFLAGS_KERNEL)
.S.s: EXTRA_CFLAGS := -DLITTLE_ENDIAN
$(CPP) $(AFLAGS) $(AFLAGS_KERNEL) -o $*.s $<
.S.o:
$(CC) $(AFLAGS) $(AFLAGS_KERNEL) -c -o $*.o $<
all: sn1.a all: sn1.a
......
...@@ -32,13 +32,11 @@ ...@@ -32,13 +32,11 @@
# http://oss.sgi.com/projects/GenInfo/NoticeExplan # http://oss.sgi.com/projects/GenInfo/NoticeExplan
# #
USE_STANDARD_AS_RULE := true
EXTRA_CFLAGS := -DLITTLE_ENDIAN EXTRA_AFLAGS := $(AFLAGS_KERNEL)
.S.s: EXTRA_CFLAGS := -DLITTLE_ENDIAN
$(CPP) $(AFLAGS) $(AFLAGS_KERNEL) -o $*.s $<
.S.o:
$(CC) $(AFLAGS) $(AFLAGS_KERNEL) -c -o $*.o $<
all: sn2.a all: sn2.a
......
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