libgloss: drop $(INCLUDES) when using $(AS)
Since $(AS) is the assembler, passing it a list of preprocessor include flags doesn't make much sense. The files aren't preprocessed which means `#include` lines aren't respected, and while it would affect `.include` usage, we never use that, and it's extremely unlikely to change. Plus, it's extremely unlikely we'd have .s files in common places to include vs contained entirely within a specific arch dir, and at that point, it can be included directly (with no flags), or the arch can add the unique set of include paths that it needs for itself.
This commit is contained in:
parent
f81bf08f7c
commit
751a3427e0
|
@ -14,7 +14,7 @@ AR_FLAGS = rc
|
||||||
.C.o:
|
.C.o:
|
||||||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $<
|
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $<
|
||||||
.s.o:
|
.s.o:
|
||||||
$(AS) $(ASFLAGS_FOR_TARGET) $(INCLUDES) $(ASFLAGS) -o $*.o $<
|
$(AS) $(ASFLAGS_FOR_TARGET) $(ASFLAGS) -o $*.o $<
|
||||||
|
|
||||||
#
|
#
|
||||||
# GCC knows to run the preprocessor on .S files before it assembles them.
|
# GCC knows to run the preprocessor on .S files before it assembles them.
|
||||||
|
|
|
@ -18,7 +18,7 @@ AR_FLAGS = qc
|
||||||
.C.o:
|
.C.o:
|
||||||
$(CC) $(CFLAGS_FOR_TARGET) $(CFLAGS_MRELOCATABLE) -O2 $(INCLUDES) -c $(CFLAGS) $<
|
$(CC) $(CFLAGS_FOR_TARGET) $(CFLAGS_MRELOCATABLE) -O2 $(INCLUDES) -c $(CFLAGS) $<
|
||||||
.s.o:
|
.s.o:
|
||||||
$(AS) $(ASFLAGS_FOR_TARGET) $(INCLUDES) $(ASFLAGS) -o $*.o $<
|
$(AS) $(ASFLAGS_FOR_TARGET) $(ASFLAGS) -o $*.o $<
|
||||||
|
|
||||||
#
|
#
|
||||||
# GCC knows to run the preprocessor on .S files before it assembles them.
|
# GCC knows to run the preprocessor on .S files before it assembles them.
|
||||||
|
|
|
@ -105,7 +105,7 @@ AR_FLAGS = qc
|
||||||
.S.o:
|
.S.o:
|
||||||
$(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) -c $(CFLAGS) $<
|
$(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) -c $(CFLAGS) $<
|
||||||
.s.o:
|
.s.o:
|
||||||
$(AS) $(ASFLAGS_FOR_TARGET) $(INCLUDES) $(ASFLAGS) -o $*.o $<
|
$(AS) $(ASFLAGS_FOR_TARGET) $(ASFLAGS) -o $*.o $<
|
||||||
|
|
||||||
#
|
#
|
||||||
# GCC knows to run the preprocessor on .S files before it assembles them.
|
# GCC knows to run the preprocessor on .S files before it assembles them.
|
||||||
|
|
|
@ -117,7 +117,7 @@ install:
|
||||||
|
|
||||||
.s.o:
|
.s.o:
|
||||||
$(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) -c $<
|
$(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) -c $<
|
||||||
# $(AS) $(CFLAGS_FOR_TARGET) $(INCLUDES) -c $<
|
# $(AS) $(CFLAGS_FOR_TARGET) -c $<
|
||||||
|
|
||||||
.SUFFIXES: .S .c .o .s .lif
|
.SUFFIXES: .S .c .o .s .lif
|
||||||
#
|
#
|
||||||
|
|
|
@ -89,7 +89,7 @@ LDFLAGS_FOR_TARGET = ${MULTILIB}
|
||||||
.C.o:
|
.C.o:
|
||||||
$(CC) $(CFLAGS_FOR_TARGET) -Os $(INCLUDES) -c $(CFLAGS) $<
|
$(CC) $(CFLAGS_FOR_TARGET) -Os $(INCLUDES) -c $(CFLAGS) $<
|
||||||
.s.o:
|
.s.o:
|
||||||
$(AS) $(ASFLAGS_FOR_TARGET) $(INCLUDES) $(ASFLAGS) -o $*.o $<
|
$(AS) $(ASFLAGS_FOR_TARGET) $(ASFLAGS) -o $*.o $<
|
||||||
|
|
||||||
#
|
#
|
||||||
# GCC knows to run the preprocessor on .S files before it assembles them.
|
# GCC knows to run the preprocessor on .S files before it assembles them.
|
||||||
|
|
|
@ -95,7 +95,7 @@ AR_FLAGS = qc
|
||||||
.C.o:
|
.C.o:
|
||||||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $<
|
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $<
|
||||||
.s.o:
|
.s.o:
|
||||||
$(AS) $(ASFLAGS_FOR_TARGET) $(INCLUDES) $(ASFLAGS) -o $*.o $<
|
$(AS) $(ASFLAGS_FOR_TARGET) $(ASFLAGS) -o $*.o $<
|
||||||
|
|
||||||
#
|
#
|
||||||
# GCC knows to run the preprocessor on .S files before it assembles them.
|
# GCC knows to run the preprocessor on .S files before it assembles them.
|
||||||
|
|
Loading…
Reference in New Issue