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

28 lines
563 B
PHP
Raw Normal View History

1995-06-02 00:37:44 +04:00
# $NetBSD: Makefile.inc,v 1.1.1.2 1995/06/01 20:37:46 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= ../../../..
RELOC?= 240000
DEFS?= -DSTANDALONE
INCL?= -I. -I../libsa -I${S}/lib/libsa -I${S}
COPTS?= -msoft-float ${DEFS} ${INCL}
LIBSA?= ../libsa
SRTOBJ?= ${LIBSA}/SRT0.o ${LIBSA}/SRT1.o
LIBS?= ${LIBSA}/libsa.a
SRCS?= ${SA_PROG}.c
OBJS?= ${SRTOBJ} ${SRCS:S/.c/.o/g}
all: ${SA_PROG}
${SA_PROG} : ${OBJS} ${LIBS}
${LD} -N -T ${RELOC} -e start -o $@ ${OBJS} ${LIBS}
@size $@
.endif