Home | History | Annotate | Line # | Download | only in libsa
Makefile revision 1.24.54.1
      1 #	$NetBSD: Makefile,v 1.24.54.1 2009/01/17 13:28:34 mjf Exp $
      2 
      3 LIB=sa
      4 
      5 # 
      6 # We're not actually building a profiled version,
      7 # but this way the separate object files get built
      8 #
      9 
     10 POBJS=SRT0.o
     11 
     12 NOLINT=# defined
     13 NOPIC=# defined
     14 NOPROFILE=# defined
     15 
     16 .include <bsd.own.mk>
     17 
     18 # Logically src/sys
     19 S=${.CURDIR}/../../../..
     20 DIR_SA=${S}/lib/libsa
     21 DIR_KERN=${S}/lib/libkern ${S}/lib/libkern/arch/m68k
     22 DIR_LIBC=${S}/../common/lib/libc
     23 
     24 .PATH:  ${DIR_SA} ${DIR_KERN} \
     25 	${DIR_LIBC}/gen ${DIR_LIBC}/arch/m68k/gen \
     26 	${DIR_LIBC}/inet ${DIR_LIBC}/arch/m68k/inet \
     27 	${DIR_LIBC}/quad ${DIR_LIBC}/arch/m68k/quad \
     28 	${DIR_LIBC}/string ${DIR_LIBC}/arch/m68k/string \
     29 	${S}/arch/sun68k/sun68k
     30 
     31 # DEBUG= -DDEBUG -DNETIF_DEBUG -DNFS_DEBUG -DRPC_DEBUG \
     32 #  -DNET_DEBUG -DRARP_DEBUG -DETHER_DEBUG -DDEBUG_PROM
     33 
     34 CPUFLAGS=	# ignore settings in /etc/mk.conf
     35 DEFS= -Dsun3 -D_STANDALONE -D__daddr_t=int32_t
     36 INCL= -I. -I${.CURDIR} -I${S}/lib/libsa -I${S} -I${.CURDIR}/../../..
     37 AFLAGS= -Wa,-mc68020 -Wa,-mc68851
     38 CFLAGS= -mc68000 -Wa,-mc68010 -Wa,-m68851 -msoft-float
     39 CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
     40 COPTS= -Os -fno-defer-pop -ffreestanding
     41 CPPFLAGS= ${DEFS} ${DEBUG} ${INCL}
     42 CLEANFILES= SRT0.o SRT1.o vers.c
     43 
     44 SRC_net= net.c ether.c arp.c ip_cksum.c rarp.c
     45 
     46 SRC_sa = alloc.c bcopy.c close.c files.c getfile.c loadfile.c loadfile_aout.c \
     47 	loadfile_elf32.c lseek.c memcpy.c memmove.c open.c printf.c read.c \
     48 	snprintf.c sprintf.c strerror.c subr_prf.c twiddle.c ctrlsp.S
     49 
     50 SRC_kern= intoa.c
     51 
     52 # bring in the required libgcc integer support:
     53 SRC_libc_gen= mulsi3.S divsi3.S udivsi3.S modsi3.S umodsi3.S muldi3.c
     54 
     55 SRC_libc_inet= inet_addr.c
     56 
     57 SRC_libc_quad= ashldi3.c ashrdi3.c
     58 
     59 SRC_libc_string= bcmp.S bzero.S memcmp.S memset.S strcmp.S strlen.S strncmp.S
     60 
     61 SRC_here= SRT1.c clock.c dev_disk.c devopen.c \
     62 	 gets.c idprom.c netif_sun.c panic.c \
     63 	 promboot.c promcons.c promdev.c putstr.c \
     64 	 sun2.c sun3.c sun3x.c vers.c xxboot.c
     65 
     66 SRCS=	${SRC_net} ${SRC_sa} ${SRC_kern} \
     67 	${SRC_libc_gen} ${SRC_libc_inet} ${SRC_libc_quad} ${SRC_libc_string} \
     68 	${SRC_here}
     69 
     70 # only needed during build
     71 libinstall::
     72 
     73 
     74 .undef DESTDIR=
     75 .include <bsd.lib.mk>
     76 
     77 # Nuke these...
     78 LOBJS=
     79 POBJS=
     80 SOBJS=
     81 
     82 # Customized rules...
     83 
     84 vers.c: ${.CURDIR}/version
     85 	${HOST_SH} ${S}/conf/newvers_stand.sh -MD ${.CURDIR}/version "${MACHINE}"
     86