Modify makefile in lib/startup to pass options to external assembler.

This commit is contained in:
Serge
2022-05-25 18:17:29 -07:00
parent 9f617eb6fe
commit 00c4bf1ea1

View File

@@ -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) *~