1995-10-01 00:43:35 +03:00
|
|
|
# $NetBSD: Makefile,v 1.3 1995/09/30 21:43:40 pk Exp $
|
1995-09-17 03:20:22 +04:00
|
|
|
|
|
|
|
R= ..
|
1995-10-01 00:43:35 +03:00
|
|
|
.PATH: ${.CURDIR}/${R}
|
1995-09-17 03:20:22 +04:00
|
|
|
PROG= bootxx
|
|
|
|
SRCS= srt0.S bootxx.c promdev.c dvma.c
|
|
|
|
NOMAN= 1
|
1995-09-19 03:32:41 +04:00
|
|
|
STRIP=
|
1995-09-17 03:20:22 +04:00
|
|
|
BINDIR= /usr/mdec
|
1995-10-01 00:43:35 +03:00
|
|
|
LIBS!= cd ${.CURDIR}/${R}; ${MAKE} libdep
|
1995-09-17 03:20:22 +04:00
|
|
|
|
|
|
|
CFLAGS= -DBOOTXX
|
|
|
|
|
1995-10-01 00:43:35 +03:00
|
|
|
${PROG}:${OBJS} ${LIBS}
|
|
|
|
${LD} -N -T ${RELOC} -e start ${OBJS} ${LIBS}
|
1995-09-17 03:20:22 +04:00
|
|
|
# convert to Sun magic
|
|
|
|
(echo -n 01 | tr 01 '\01\03'; tail +3c a.out) > ${.TARGET}
|
|
|
|
@rm a.out
|
|
|
|
@size ${.TARGET}
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|