Files
retrobsd/lib/startup/Makefile
Serge 9f617eb6fe Modify build scripts for clang.
Disable -mips16 flag for now.
Fix a few issues and incompatibilities detected by compiler.
2022-05-25 17:38:22 -07:00

24 lines
537 B
Makefile

#
# Copyright (c) 1987 Regents of the University of California.
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
#
# crt0 Normal C run time startoff
#
TOPSRC = $(shell cd ../..; pwd)
include $(TOPSRC)/target.mk
vpath %.c $(TOPSRC)/src/startup-mips
CFLAGS = -v -Os -B$(TOPSRC)/lib/ $(DEFS)
OBJS = ../crt0.o
all: $(OBJS)
../crt0.o: crt0.c
$(CC) $(DEFS) $(CFLAGS) -S $< -o crt0.s
$(TOPSRC)/lib/as -x crt0.s -o $@
clean:
rm -f $(OBJS) *~