Modify makefile in lib/startup to pass options to external assembler.
This commit is contained in:
@@ -9,15 +9,14 @@ TOPSRC = $(shell cd ../..; pwd)
|
|||||||
include $(TOPSRC)/target.mk
|
include $(TOPSRC)/target.mk
|
||||||
vpath %.c $(TOPSRC)/src/startup-mips
|
vpath %.c $(TOPSRC)/src/startup-mips
|
||||||
|
|
||||||
CFLAGS = -v -Os -B$(TOPSRC)/lib/ $(DEFS)
|
CFLAGS = -Os -B$(TOPSRC)/lib/ -fno-integrated-as -Xassembler -x $(DEFS)
|
||||||
|
|
||||||
OBJS = ../crt0.o
|
OBJS = ../crt0.o
|
||||||
|
|
||||||
all: $(OBJS)
|
all: $(OBJS)
|
||||||
|
|
||||||
../crt0.o: crt0.c
|
../crt0.o: crt0.c
|
||||||
$(CC) $(DEFS) $(CFLAGS) -S $< -o crt0.s
|
$(CC) $(DEFS) $(CFLAGS) -c $< -o $@
|
||||||
$(TOPSRC)/lib/as -x crt0.s -o $@
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(OBJS) *~
|
rm -f $(OBJS) *~
|
||||||
|
|||||||
Reference in New Issue
Block a user