NetBSD/sys/arch/sun3/stand/Makefile.inc

38 lines
834 B
PHP
Raw Normal View History

# $NetBSD: Makefile.inc,v 1.3 1995/08/08 21:02:04 gwr Exp $
1995-02-15 01:56:36 +03:00
.if defined(SA_PROG)
# Must have S=/usr/src/sys (or equivalent)
# But note: this is w.r.t. a subdirectory
S= ${.CURDIR}/../../../..
1995-02-15 01:56:36 +03:00
RELOC?= 240000
DEFS?= -DSTANDALONE
INCL?= -I${.CURDIR} -I${.CURDIR}/../libsa -I${S}/lib/libsa -I${S}
1995-02-15 01:56:36 +03:00
COPTS?= -msoft-float ${DEFS} ${INCL}
LIBSA?= ../libsa
SRTOBJ?= ${LIBSA}/SRT0.o ${LIBSA}/SRT1.o
LIBS?= ${LIBSA}/libsa.a
1995-06-10 02:03:41 +04:00
MDEC_DIR?=/usr/mdec
1995-02-15 01:56:36 +03:00
SRCS?= ${SA_PROG}.c
OBJS?= ${SRTOBJ} ${SRCS:S/.c/.o/g}
1995-06-10 02:03:41 +04:00
${SA_PROG}.bin : ${SA_PROG}
cp ${SA_PROG} a.out ; strip a.out
dd ibs=32 skip=1 if=a.out of=$@
-rm -f a.out
1995-02-15 01:56:36 +03:00
${SA_PROG} : ${OBJS} ${LIBS}
${LD} -N -T ${RELOC} -e start -o $@ ${OBJS} ${LIBS}
@size $@
1995-06-10 02:03:41 +04:00
.if !target(clean)
clean:
-rm -f a.out [Ee]rrs mklog core *.core
-rm -f ${SA_PROG} ${SA_PROG}.bin ${OBJS} ${CLEANFILES}
.endif
1995-02-15 01:56:36 +03:00
.endif