1 1.4.2.3 nathanw # $NetBSD: Makefile,v 1.4.2.3 2002/04/01 07:43:27 nathanw Exp $ 2 1.4.2.2 nathanw 3 1.4.2.2 nathanw LIB=sa 4 1.4.2.2 nathanw 5 1.4.2.2 nathanw # 6 1.4.2.2 nathanw # We're not actually building a profiled version, 7 1.4.2.2 nathanw # but this way the separate object files get built 8 1.4.2.2 nathanw # 9 1.4.2.2 nathanw 10 1.4.2.2 nathanw POBJS=SRT0.o SRT1.o 11 1.4.2.2 nathanw 12 1.4.2.2 nathanw NOLINT=# defined 13 1.4.2.2 nathanw NOPIC=# defined 14 1.4.2.2 nathanw NOPROFILE=# defined 15 1.4.2.2 nathanw 16 1.4.2.2 nathanw # Logically src/sys 17 1.4.2.2 nathanw S=${.CURDIR}/../../../.. 18 1.4.2.2 nathanw DIR_SA=${S}/lib/libsa 19 1.4.2.2 nathanw DIR_KERN=${S}/lib/libkern 20 1.4.2.2 nathanw 21 1.4.2.2 nathanw .PATH: ${DIR_SA} ${DIR_KERN} 22 1.4.2.2 nathanw 23 1.4.2.2 nathanw # DBG= -DDEBUG -DNETIF_DEBUG -DNFS_DEBUG -DRPC_DEBUG \ 24 1.4.2.2 nathanw # -DNET_DEBUG -DRARP_DEBUG -DETHER_DEBUG -DDEBUG_PROM 25 1.4.2.2 nathanw 26 1.4.2.2 nathanw DEFS= -Dsun3 -D_STANDALONE 27 1.4.2.2 nathanw INCL= -I. -I${.CURDIR} -I${S}/lib/libsa -I${S} 28 1.4.2.2 nathanw AFLAGS= -Wa,-mc68020 -Wa,-mc68851 29 1.4.2.2 nathanw CFLAGS= -mc68000 -Wa,-mc68010 -Wa,-m68851 -Os -msoft-float -fno-defer-pop 30 1.4.2.2 nathanw CPPFLAGS= ${DEFS} ${DBG} ${INCL} 31 1.4.2.2 nathanw CLEANFILES= SRT0.o SRT1.o vers.c 32 1.4.2.2 nathanw 33 1.4.2.2 nathanw SRC_net= net.c ether.c arp.c in_cksum.c rarp.c 34 1.4.2.2 nathanw 35 1.4.2.3 nathanw SRC_sa = alloc.c bcopy.c close.c files.c getfile.c loadfile.c loadfile_aout.c \ 36 1.4.2.2 nathanw loadfile_elf32.c lseek.c memcpy.c open.c printf.c read.c sprintf.c \ 37 1.4.2.2 nathanw strerror.c subr_prf.c twiddle.c 38 1.4.2.2 nathanw 39 1.4.2.2 nathanw SRC_kern= ashldi3.c ashrdi3.c bcmp.c bzero.c inet_addr.c intoa.c \ 40 1.4.2.2 nathanw memcmp.c memset.c strcmp.c strlen.c strncmp.c 41 1.4.2.2 nathanw 42 1.4.2.2 nathanw SRC_here= clock.c dev_disk.c devopen.c \ 43 1.4.2.2 nathanw gets.c idprom.c netif_sun.c panic.c \ 44 1.4.2.2 nathanw promboot.c promcons.c promdev.c \ 45 1.4.2.2 nathanw sun2.c sun3.c sun3x.c vers.c xxboot.c 46 1.4.2.2 nathanw 47 1.4.2.2 nathanw SRCS= ${SRC_net} ${SRC_sa} ${SRC_kern} ${SRC_here} 48 1.4.2.2 nathanw SRCS+= ${S}/arch/sun68k/sun68k/ctrlsp.S 49 1.4.2.2 nathanw 50 1.4.2.2 nathanw # only needed during build 51 1.4.2.2 nathanw libinstall:: 52 1.4.2.2 nathanw 53 1.4.2.2 nathanw # bring in the required libgcc integer support: 54 1.4.2.2 nathanw .if defined(MACHINE_ARCH) && (${MACHINE_ARCH} == "m68000") 55 1.4.2.3 nathanw SRCS+= ${DIR_KERN}/arch/m68k/mulsi3.S ${DIR_KERN}/arch/m68k/divsi3.S \ 56 1.4.2.3 nathanw ${DIR_KERN}/arch/m68k/udivsi3.S ${DIR_KERN}/arch/m68k/modsi3.S \ 57 1.4.2.3 nathanw ${DIR_KERN}/arch/m68k/umodsi3.S muldi3.c 58 1.4.2.2 nathanw .endif 59 1.4.2.2 nathanw 60 1.4.2.2 nathanw .include <bsd.own.mk> 61 1.4.2.2 nathanw .undef DESTDIR= 62 1.4.2.2 nathanw .include <bsd.lib.mk> 63 1.4.2.2 nathanw 64 1.4.2.2 nathanw # Nuke these... 65 1.4.2.2 nathanw LOBJS= 66 1.4.2.2 nathanw POBJS= 67 1.4.2.2 nathanw SOBJS= 68 1.4.2.2 nathanw 69 1.4.2.2 nathanw # Customized rules... 70 1.4.2.2 nathanw 71 1.4.2.2 nathanw vers.c: ${.CURDIR}/version 72 1.4.2.2 nathanw sh ${S}/conf/newvers_stand.sh -MD ${.CURDIR}/version "${MACHINE}" 73