Home | History | Annotate | Line # | Download | only in libsa
Makefile revision 1.4.2.2
      1  1.4.2.2  nathanw #	$NetBSD: Makefile,v 1.4.2.2 2002/01/08 00:28:24 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.2  nathanw SRC_sa = alloc.c bcopy.c close.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.2  nathanw LIBGCC_OBJS=   _mulsi3.o _divsi3.o _udivsi3.o _modsi3.o _umodsi3.o _muldi3.o
     56  1.4.2.2  nathanw ${LIBGCC_OBJS}:
     57  1.4.2.2  nathanw 	@${AR} xv ${DESTDIR}/usr/lib/libgcc.a $@
     58  1.4.2.2  nathanw OBJS+= ${LIBGCC_OBJS}
     59  1.4.2.2  nathanw .endif
     60  1.4.2.2  nathanw 
     61  1.4.2.2  nathanw .include <bsd.own.mk>
     62  1.4.2.2  nathanw .undef DESTDIR=
     63  1.4.2.2  nathanw .include <bsd.lib.mk>
     64  1.4.2.2  nathanw 
     65  1.4.2.2  nathanw # Nuke these...
     66  1.4.2.2  nathanw LOBJS=
     67  1.4.2.2  nathanw POBJS=
     68  1.4.2.2  nathanw SOBJS=
     69  1.4.2.2  nathanw 
     70  1.4.2.2  nathanw # Customized rules...
     71  1.4.2.2  nathanw 
     72  1.4.2.2  nathanw vers.c: ${.CURDIR}/version
     73  1.4.2.2  nathanw 	sh ${S}/conf/newvers_stand.sh -MD ${.CURDIR}/version "${MACHINE}"
     74