23 lines
501 B
Makefile
23 lines
501 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 = -B$(TOPSRC)/lib/ -O -Wa,-x $(DEFS)
|
|
|
|
OBJS = ../crt0.o
|
|
|
|
all: $(OBJS)
|
|
|
|
../crt0.o: crt0.c
|
|
$(CC) $(DEFS) $(CFLAGS) -c $< -o $@
|
|
|
|
clean:
|
|
rm -f $(OBJS) *~
|