2001-12-12 04:48:43 +03:00
|
|
|
# $NetBSD: Makefile,v 1.36 2001/12/12 01:49:53 tv Exp $
|
1995-02-15 01:56:36 +03:00
|
|
|
|
|
|
|
LIB=sa
|
|
|
|
|
2001-02-04 11:59:57 +03:00
|
|
|
#
|
2001-07-30 04:10:20 +04:00
|
|
|
# We're not actually building a profiled version,
|
|
|
|
# but this way the separate object files get built
|
2001-02-04 11:59:57 +03:00
|
|
|
#
|
|
|
|
|
2001-07-30 04:10:20 +04:00
|
|
|
POBJS=SRT0.o SRT1.o
|
2001-02-04 11:59:57 +03:00
|
|
|
|
2001-12-12 04:48:43 +03:00
|
|
|
NOLINT=# defined
|
|
|
|
NOPIC=# defined
|
|
|
|
NOPROFILE=# defined
|
1995-02-15 01:56:36 +03:00
|
|
|
|
|
|
|
# Logically src/sys
|
1995-06-16 11:23:02 +04:00
|
|
|
S=${.CURDIR}/../../../..
|
2001-03-21 16:43:58 +03:00
|
|
|
DIR_SA=${S}/lib/libsa
|
|
|
|
DIR_KERN=${S}/lib/libkern
|
1995-06-02 01:03:07 +04:00
|
|
|
|
1997-09-05 08:31:50 +04:00
|
|
|
.PATH: ${DIR_SA} ${DIR_KERN}
|
|
|
|
|
2001-10-07 08:50:40 +04:00
|
|
|
# DEBUG= -DDEBUG -DNETIF_DEBUG -DNFS_DEBUG -DRPC_DEBUG \
|
1997-09-05 08:31:50 +04:00
|
|
|
# -DNET_DEBUG -DRARP_DEBUG -DETHER_DEBUG -DDEBUG_PROM
|
1998-02-05 07:56:24 +03:00
|
|
|
|
1997-09-05 08:31:50 +04:00
|
|
|
DEFS= -Dsun3 -D_STANDALONE
|
|
|
|
INCL= -I. -I${.CURDIR} -I${S}/lib/libsa -I${S}
|
2001-10-07 08:50:40 +04:00
|
|
|
CFLAGS= -Os -msoft-float -fno-defer-pop
|
|
|
|
CPPFLAGS= ${DEFS} ${DEBUG} ${INCL}
|
2001-03-21 16:43:58 +03:00
|
|
|
CLEANFILES= SRT0.o SRT1.o vers.c
|
1997-09-05 08:31:50 +04:00
|
|
|
|
|
|
|
SRC_net= net.c ether.c arp.c in_cksum.c rarp.c
|
1995-06-27 19:57:13 +04:00
|
|
|
|
2001-10-07 09:00:28 +04:00
|
|
|
SRC_sa = alloc.c bcmp.c bcopy.c bzero.c close.c getfile.c loadfile.c \
|
2001-10-31 04:51:42 +03:00
|
|
|
loadfile_aout.c loadfile_elf32.c lseek.c memcmp.c memcpy.c \
|
|
|
|
memset.c open.c printf.c read.c sprintf.c strerror.c subr_prf.c \
|
|
|
|
twiddle.c
|
1995-06-02 01:03:07 +04:00
|
|
|
|
2001-10-07 09:00:28 +04:00
|
|
|
SRC_kern= ashldi3.c ashrdi3.c inet_addr.c intoa.c strcmp.c strlen.c strncmp.c
|
1995-06-02 01:03:07 +04:00
|
|
|
|
2001-02-22 10:11:08 +03:00
|
|
|
SRC_here= clock.c dev_disk.c devopen.c \
|
1999-03-04 11:19:38 +03:00
|
|
|
gets.c idprom.c netif_sun.c panic.c \
|
1998-02-05 07:56:24 +03:00
|
|
|
promboot.c promcons.c promdev.c \
|
2000-07-17 01:56:12 +04:00
|
|
|
sun3.c sun3x.c vers.c xxboot.c
|
1995-06-02 01:03:07 +04:00
|
|
|
|
1997-09-05 08:31:50 +04:00
|
|
|
SRCS= ${SRC_net} ${SRC_sa} ${SRC_kern} ${SRC_here}
|
2000-07-17 01:56:12 +04:00
|
|
|
SRCS+= ${S}/arch/sun3/sun3/ctrlsp.S
|
1995-02-15 01:56:36 +03:00
|
|
|
|
1997-06-01 01:21:13 +04:00
|
|
|
# only needed during build
|
|
|
|
libinstall::
|
|
|
|
|
2001-11-15 02:01:13 +03:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
.undef DESTDIR
|
1995-02-15 01:56:36 +03:00
|
|
|
.include <bsd.lib.mk>
|
1997-09-05 08:31:50 +04:00
|
|
|
|
|
|
|
# Nuke these...
|
|
|
|
LOBJS=
|
|
|
|
POBJS=
|
|
|
|
SOBJS=
|
|
|
|
|
|
|
|
# Customized rules...
|
|
|
|
|
2000-07-17 01:56:12 +04:00
|
|
|
vers.c: ${.CURDIR}/version
|
|
|
|
sh ${S}/conf/newvers_stand.sh -MD ${.CURDIR}/version "sun3"
|