Makefile revision 1.21
11.21Stsutsui# $NetBSD: Makefile,v 1.21 2005/12/24 14:15:47 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.2SfredettePOBJS=SRT0.o SRT1.o 111.1Sfredette 121.6StvNOLINT=# defined 131.6StvNOPIC=# defined 141.6StvNOPROFILE=# defined 151.1Sfredette 161.1Sfredette# Logically src/sys 171.1SfredetteS=${.CURDIR}/../../../.. 181.1SfredetteDIR_SA=${S}/lib/libsa 191.21StsutsuiDIR_KERN=${S}/lib/libkern ${S}/lib/libkern/arch/m68k 201.21StsutsuiDIR_LIBC=${S}/../common/lib/libc 211.1Sfredette 221.21Stsutsui.PATH: ${DIR_SA} ${DIR_KERN} \ 231.21Stsutsui ${DIR_LIBC}/gen ${DIR_LIBC}/arch/m68k/gen \ 241.21Stsutsui ${DIR_LIBC}/inet ${DIR_LIBC}/arch/m68k/inet \ 251.21Stsutsui ${DIR_LIBC}/quad ${DIR_LIBC}/arch/m68k/quad \ 261.21Stsutsui ${DIR_LIBC}/string ${DIR_LIBC}/arch/m68k/string \ 271.21Stsutsui ${S}/arch/sun68k/sun68k 281.1Sfredette 291.1Sfredette# DBG= -DDEBUG -DNETIF_DEBUG -DNFS_DEBUG -DRPC_DEBUG \ 301.1Sfredette# -DNET_DEBUG -DRARP_DEBUG -DETHER_DEBUG -DDEBUG_PROM 311.1Sfredette 321.19StsutsuiDEFS= -Dsun3 -D_STANDALONE -D__daddr_t=int32_t 331.1SfredetteINCL= -I. -I${.CURDIR} -I${S}/lib/libsa -I${S} 341.1SfredetteAFLAGS= -Wa,-mc68020 -Wa,-mc68851 351.15SmrgCFLAGS= -mc68000 -Wa,-mc68010 -Wa,-m68851 -Os -msoft-float -fno-defer-pop -ffreestanding 361.1SfredetteCPPFLAGS= ${DEFS} ${DBG} ${INCL} 371.1SfredetteCLEANFILES= SRT0.o SRT1.o vers.c 381.1Sfredette 391.1SfredetteSRC_net= net.c ether.c arp.c in_cksum.c rarp.c 401.1Sfredette 411.8SfredetteSRC_sa = alloc.c bcopy.c close.c files.c getfile.c loadfile.c loadfile_aout.c \ 421.17Sdsl loadfile_elf32.c lseek.c memcpy.c memmove.c open.c printf.c read.c \ 431.17Sdsl snprintf.c sprintf.c strerror.c subr_prf.c twiddle.c ctrlsp.S 441.1Sfredette 451.21StsutsuiSRC_kern= intoa.c 461.21Stsutsui 471.21Stsutsui# bring in the required libgcc integer support: 481.21StsutsuiSRC_libc_gen= mulsi3.S divsi3.S udivsi3.S modsi3.S umodsi3.S muldi3.c 491.21Stsutsui 501.21StsutsuiSRC_libc_inet= inet_addr.c 511.21Stsutsui 521.21StsutsuiSRC_libc_quad= ashldi3.c ashrdi3.c 531.21Stsutsui 541.21StsutsuiSRC_libc_string= bcmp.S bzero.S memcmp.S memset.S strcmp.S strlen.S strncmp.S 551.1Sfredette 561.1SfredetteSRC_here= clock.c dev_disk.c devopen.c \ 571.1Sfredette gets.c idprom.c netif_sun.c panic.c \ 581.11Slukem promboot.c promcons.c promdev.c putstr.c \ 591.1Sfredette sun2.c sun3.c sun3x.c vers.c xxboot.c 601.1Sfredette 611.21StsutsuiSRCS= ${SRC_net} ${SRC_sa} ${SRC_kern} \ 621.21Stsutsui ${SRC_libc_gen} ${SRC_libc_inet} ${SRC_libc_quad} ${SRC_libc_string} \ 631.21Stsutsui ${SRC_here} 641.1Sfredette 651.1Sfredette# only needed during build 661.1Sfredettelibinstall:: 671.1Sfredette 681.1Sfredette 691.5Stv.include <bsd.own.mk> 701.5Stv.undef DESTDIR= 711.1Sfredette.include <bsd.lib.mk> 721.1Sfredette 731.1Sfredette# Nuke these... 741.1SfredetteLOBJS= 751.1SfredettePOBJS= 761.1SfredetteSOBJS= 771.1Sfredette 781.1Sfredette# Customized rules... 791.1Sfredette 801.1Sfredettevers.c: ${.CURDIR}/version 811.18Slukem ${HOST_SH} ${S}/conf/newvers_stand.sh -MD ${.CURDIR}/version "${MACHINE}" 82