Makefile revision 1.25
11.25Stsutsui#	$NetBSD: Makefile,v 1.25 2009/01/12 07:00:59 tsutsui Exp $
21.1Sfredette
31.1SfredetteLIB=sa
41.1Sfredette
51.1Sfredette# 
61.2Sfredette# We're not actually building a profiled version,
71.2Sfredette# but this way the separate object files get built
81.1Sfredette#
91.1Sfredette
101.24StsutsuiPOBJS=SRT0.o
111.1Sfredette
121.6StvNOLINT=# defined
131.6StvNOPIC=# defined
141.6StvNOPROFILE=# defined
151.1Sfredette
161.23Stsutsui.include <bsd.own.mk>
171.23Stsutsui
181.1Sfredette# Logically src/sys
191.1SfredetteS=${.CURDIR}/../../../..
201.1SfredetteDIR_SA=${S}/lib/libsa
211.21StsutsuiDIR_KERN=${S}/lib/libkern ${S}/lib/libkern/arch/m68k
221.21StsutsuiDIR_LIBC=${S}/../common/lib/libc
231.1Sfredette
241.21Stsutsui.PATH:  ${DIR_SA} ${DIR_KERN} \
251.21Stsutsui	${DIR_LIBC}/gen ${DIR_LIBC}/arch/m68k/gen \
261.21Stsutsui	${DIR_LIBC}/inet ${DIR_LIBC}/arch/m68k/inet \
271.21Stsutsui	${DIR_LIBC}/quad ${DIR_LIBC}/arch/m68k/quad \
281.21Stsutsui	${DIR_LIBC}/string ${DIR_LIBC}/arch/m68k/string \
291.21Stsutsui	${S}/arch/sun68k/sun68k
301.1Sfredette
311.23Stsutsui# DEBUG= -DDEBUG -DNETIF_DEBUG -DNFS_DEBUG -DRPC_DEBUG \
321.1Sfredette#  -DNET_DEBUG -DRARP_DEBUG -DETHER_DEBUG -DDEBUG_PROM
331.1Sfredette
341.23StsutsuiCPUFLAGS=	# ignore settings in /etc/mk.conf
351.19StsutsuiDEFS= -Dsun3 -D_STANDALONE -D__daddr_t=int32_t
361.24StsutsuiINCL= -I. -I${.CURDIR} -I${S}/lib/libsa -I${S} -I${.CURDIR}/../../..
371.1SfredetteAFLAGS= -Wa,-mc68020 -Wa,-mc68851
381.23StsutsuiCFLAGS= -mc68000 -Wa,-mc68010 -Wa,-m68851 -msoft-float
391.25StsutsuiCFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
401.23StsutsuiCOPTS= -Os -fno-defer-pop -ffreestanding
411.23StsutsuiCPPFLAGS= ${DEFS} ${DEBUG} ${INCL}
421.1SfredetteCLEANFILES= SRT0.o SRT1.o vers.c
431.1Sfredette
441.22SheSRC_net= net.c ether.c arp.c ip_cksum.c rarp.c
451.1Sfredette
461.8SfredetteSRC_sa = alloc.c bcopy.c close.c files.c getfile.c loadfile.c loadfile_aout.c \
471.17Sdsl	loadfile_elf32.c lseek.c memcpy.c memmove.c open.c printf.c read.c \
481.17Sdsl	snprintf.c sprintf.c strerror.c subr_prf.c twiddle.c ctrlsp.S
491.1Sfredette
501.21StsutsuiSRC_kern= intoa.c
511.21Stsutsui
521.21Stsutsui# bring in the required libgcc integer support:
531.21StsutsuiSRC_libc_gen= mulsi3.S divsi3.S udivsi3.S modsi3.S umodsi3.S muldi3.c
541.21Stsutsui
551.21StsutsuiSRC_libc_inet= inet_addr.c
561.21Stsutsui
571.21StsutsuiSRC_libc_quad= ashldi3.c ashrdi3.c
581.21Stsutsui
591.21StsutsuiSRC_libc_string= bcmp.S bzero.S memcmp.S memset.S strcmp.S strlen.S strncmp.S
601.1Sfredette
611.24StsutsuiSRC_here= SRT1.c clock.c dev_disk.c devopen.c \
621.1Sfredette	 gets.c idprom.c netif_sun.c panic.c \
631.11Slukem	 promboot.c promcons.c promdev.c putstr.c \
641.1Sfredette	 sun2.c sun3.c sun3x.c vers.c xxboot.c
651.1Sfredette
661.21StsutsuiSRCS=	${SRC_net} ${SRC_sa} ${SRC_kern} \
671.21Stsutsui	${SRC_libc_gen} ${SRC_libc_inet} ${SRC_libc_quad} ${SRC_libc_string} \
681.21Stsutsui	${SRC_here}
691.1Sfredette
701.1Sfredette# only needed during build
711.1Sfredettelibinstall::
721.1Sfredette
731.1Sfredette
741.5Stv.undef DESTDIR=
751.1Sfredette.include <bsd.lib.mk>
761.1Sfredette
771.1Sfredette# Nuke these...
781.1SfredetteLOBJS=
791.1SfredettePOBJS=
801.1SfredetteSOBJS=
811.1Sfredette
821.1Sfredette# Customized rules...
831.1Sfredette
841.1Sfredettevers.c: ${.CURDIR}/version
851.18Slukem	${HOST_SH} ${S}/conf/newvers_stand.sh -MD ${.CURDIR}/version "${MACHINE}"
86