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