Files
retrobsd/src/libc/mips/Makefile
Brian Callahan bbba8d6f95 Remove all hardcoded make commands, changing them to ${MAKE}.
This is a first step towards being able to build RetroBSD on *BSD.
2014-05-25 16:25:15 -04:00

36 lines
814 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.
#
# Machine dependent routines for the MIPS are located here
#
TOPSRC = $(shell cd ../../..; pwd)
include $(TOPSRC)/target.mk
ALL = gen string sys
mips.a: ${ALL}
-mkdir tmp
for i in ${ALL}; do (cd tmp; $(AR) x ../$$i/$$i.a); done
$(AR) cr mips.a `ls tmp/*.o | sort`
rm -rf tmp
${ALL}: FRC
cd $@; ${MAKE} ${MFLAGS} DEFS=${DEFS}
FRC:
tags:
for i in ${ALL}; do \
(cd $$i; ${MAKE} ${MFLAGS} TAGSFILE=../${TAGSFILE} tags); \
done
clean:
for i in ${ALL}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
rm -rf *.a tmp *~
depend:
for i in ${ALL}; do \
(cd $$i; ${MAKE} ${MFLAGS} DEFS=${DEFS} depend); done