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