Makefile revision 1.23
11.23Stsutsui# $NetBSD: Makefile,v 1.23 2006/09/17 05:44:46 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.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.1SfredetteINCL= -I. -I${.CURDIR} -I${S}/lib/libsa -I${S} 371.1SfredetteAFLAGS= -Wa,-mc68020 -Wa,-mc68851 381.23StsutsuiCFLAGS= -mc68000 -Wa,-mc68010 -Wa,-m68851 -msoft-float 391.23StsutsuiCOPTS= -Os -fno-defer-pop -ffreestanding 401.23StsutsuiCPPFLAGS= ${DEFS} ${DEBUG} ${INCL} 411.1SfredetteCLEANFILES= SRT0.o SRT1.o vers.c 421.1Sfredette 431.22SheSRC_net= net.c ether.c arp.c ip_cksum.c rarp.c 441.1Sfredette 451.8SfredetteSRC_sa = alloc.c bcopy.c close.c files.c getfile.c loadfile.c loadfile_aout.c \ 461.17Sdsl loadfile_elf32.c lseek.c memcpy.c memmove.c open.c printf.c read.c \ 471.17Sdsl snprintf.c sprintf.c strerror.c subr_prf.c twiddle.c ctrlsp.S 481.1Sfredette 491.21StsutsuiSRC_kern= intoa.c 501.21Stsutsui 511.21Stsutsui# bring in the required libgcc integer support: 521.21StsutsuiSRC_libc_gen= mulsi3.S divsi3.S udivsi3.S modsi3.S umodsi3.S muldi3.c 531.21Stsutsui 541.21StsutsuiSRC_libc_inet= inet_addr.c 551.21Stsutsui 561.21StsutsuiSRC_libc_quad= ashldi3.c ashrdi3.c 571.21Stsutsui 581.21StsutsuiSRC_libc_string= bcmp.S bzero.S memcmp.S memset.S strcmp.S strlen.S strncmp.S 591.1Sfredette 601.1SfredetteSRC_here= clock.c dev_disk.c devopen.c \ 611.1Sfredette gets.c idprom.c netif_sun.c panic.c \ 621.11Slukem promboot.c promcons.c promdev.c putstr.c \ 631.1Sfredette sun2.c sun3.c sun3x.c vers.c xxboot.c 641.1Sfredette 651.21StsutsuiSRCS= ${SRC_net} ${SRC_sa} ${SRC_kern} \ 661.21Stsutsui ${SRC_libc_gen} ${SRC_libc_inet} ${SRC_libc_quad} ${SRC_libc_string} \ 671.21Stsutsui ${SRC_here} 681.1Sfredette 691.1Sfredette# only needed during build 701.1Sfredettelibinstall:: 711.1Sfredette 721.1Sfredette 731.5Stv.undef DESTDIR= 741.1Sfredette.include <bsd.lib.mk> 751.1Sfredette 761.1Sfredette# Nuke these... 771.1SfredetteLOBJS= 781.1SfredettePOBJS= 791.1SfredetteSOBJS= 801.1Sfredette 811.1Sfredette# Customized rules... 821.1Sfredette 831.1Sfredettevers.c: ${.CURDIR}/version 841.18Slukem ${HOST_SH} ${S}/conf/newvers_stand.sh -MD ${.CURDIR}/version "${MACHINE}" 85