NetBSD/sys/arch/sun3/stand/libsa/Makefile

72 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.16 1997/10/17 04:26:10 gwr Exp $
LIB=sa
NOLINT=
NOPIC=
NOPROFILE=
# Logically src/sys
S=${.CURDIR}/../../../..
DIR_SA=$S/lib/libsa
DIR_KERN=$S/lib/libkern
.PATH: ${DIR_SA} ${DIR_KERN}
# DBG= -DDEBUG -DNETIF_DEBUG -DNFS_DEBUG -DRPC_DEBUG \
# -DNET_DEBUG -DRARP_DEBUG -DETHER_DEBUG -DDEBUG_PROM
DEFS= -Dsun3 -D_STANDALONE
INCL= -I. -I${.CURDIR} -I${S}/lib/libsa -I${S}
CFLAGS= -O2 -msoft-float -fno-defer-pop
CPPFLAGS= ${DEFS} ${DBG} ${INCL}
CLEANFILES= SRT0.o SRT1.o machine m68k
SRC_net= net.c ether.c arp.c in_cksum.c rarp.c
SRC_sa = alloc.c bcopy.c close.c getfile.c memcpy.c open.c \
printf.c read.c strerror.c
SRC_kern= ashrdi3.c bcmp.c bzero.c strcmp.c strlen.c
SRC_here= clock.c dev_disk.c devopen.c dvma.c exec_sun.c \
gets.c idprom.c netif_sun.c panic.c \
promboot.c promcons.c promdev.c
SRCS= ${SRC_net} ${SRC_sa} ${SRC_kern} ${SRC_here}
OBJS= control.o ctrlsp.o
all: libsa.a SRT0.o SRT1.o
# only needed during build
libinstall::
.include <bsd.lib.mk>
# Nuke these...
LOBJS=
POBJS=
SOBJS=
# Customized rules...
${OBJS} SRT0.o SRT1.o : machine m68k
machine :
-rm -f $@
ln -s ${S}/arch/sun3/include $@
m68k :
-rm -f $@
ln -s ${S}/arch/m68k/include $@
control.o : ${S}/arch/sun3/sun3/control.c
${COMPILE.c} ${.IMPSRC}
ctrlsp.o : ${S}/arch/sun3/sun3/ctrlsp.S
${COMPILE.S} ${.IMPSRC}
# This is for programs using ../Makefile.inc
echo_objdir:
@echo ${.OBJDIR}