68 lines
1.7 KiB
Makefile
68 lines
1.7 KiB
Makefile
# $NetBSD: Makefile,v 1.14 2003/03/30 00:17:28 kristerw Exp $
|
|
|
|
LIB=sa
|
|
|
|
#
|
|
# We're not actually building a profiled version,
|
|
# but this way the separate object files get built
|
|
#
|
|
|
|
POBJS=SRT0.o SRT1.o
|
|
|
|
NOLINT=# defined
|
|
NOPIC=# defined
|
|
NOPROFILE=# defined
|
|
|
|
# Logically src/sys
|
|
S=${.CURDIR}/../../../..
|
|
DIR_SA=${S}/lib/libsa
|
|
DIR_KERN=${S}/lib/libkern
|
|
|
|
.PATH: ${DIR_SA} ${DIR_KERN} ${DIR_KERN}/arch/m68k ${S}/arch/sun68k/sun68k
|
|
|
|
# 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}
|
|
AFLAGS= -Wa,-mc68020 -Wa,-mc68851
|
|
CFLAGS= -mc68000 -Wa,-mc68010 -Wa,-m68851 -Os -msoft-float -fno-defer-pop
|
|
CPPFLAGS= ${DEFS} ${DBG} ${INCL}
|
|
CLEANFILES= SRT0.o SRT1.o vers.c
|
|
|
|
SRC_net= net.c ether.c arp.c in_cksum.c rarp.c
|
|
|
|
SRC_sa = alloc.c bcopy.c close.c files.c getfile.c loadfile.c loadfile_aout.c \
|
|
loadfile_elf32.c lseek.c memcpy.c open.c printf.c read.c snprintf.c \
|
|
sprintf.c strerror.c subr_prf.c twiddle.c ctrlsp.S
|
|
|
|
SRC_kern= ashldi3.c ashrdi3.c bcmp.c bzero.c inet_addr.c intoa.c \
|
|
memcmp.c memset.c strcmp.c strlen.c strncmp.c
|
|
|
|
SRC_here= clock.c dev_disk.c devopen.c \
|
|
gets.c idprom.c netif_sun.c panic.c \
|
|
promboot.c promcons.c promdev.c putstr.c \
|
|
sun2.c sun3.c sun3x.c vers.c xxboot.c
|
|
|
|
SRCS= ${SRC_net} ${SRC_sa} ${SRC_kern} ${SRC_here}
|
|
|
|
# only needed during build
|
|
libinstall::
|
|
|
|
# bring in the required libgcc integer support:
|
|
SRCS+= mulsi3.S divsi3.S udivsi3.S modsi3.S umodsi3.S muldi3.c
|
|
|
|
.include <bsd.own.mk>
|
|
.undef DESTDIR=
|
|
.include <bsd.lib.mk>
|
|
|
|
# Nuke these...
|
|
LOBJS=
|
|
POBJS=
|
|
SOBJS=
|
|
|
|
# Customized rules...
|
|
|
|
vers.c: ${.CURDIR}/version
|
|
sh ${S}/conf/newvers_stand.sh -MD ${.CURDIR}/version "${MACHINE}"
|