Home | History | Annotate | Line # | Download | only in libsa
Makefile revision 1.7
      1 #	$NetBSD: Makefile,v 1.7 2001/12/15 23:02:34 fredette 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 SRT1.o
     11 
     12 NOLINT=# defined
     13 NOPIC=# defined
     14 NOPROFILE=# defined
     15 
     16 # Logically src/sys
     17 S=${.CURDIR}/../../../..
     18 DIR_SA=${S}/lib/libsa
     19 DIR_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 
     26 DEFS= -Dsun3 -D_STANDALONE
     27 INCL= -I. -I${.CURDIR} -I${S}/lib/libsa -I${S}
     28 AFLAGS= -Wa,-mc68020 -Wa,-mc68851
     29 CFLAGS= -mc68000 -Wa,-mc68010 -Wa,-m68851 -Os -msoft-float -fno-defer-pop
     30 CPPFLAGS= ${DEFS} ${DBG} ${INCL}
     31 CLEANFILES= SRT0.o SRT1.o vers.c
     32 
     33 SRC_net= net.c ether.c arp.c in_cksum.c rarp.c
     34 
     35 SRC_sa = alloc.c bcopy.c close.c getfile.c loadfile.c loadfile_aout.c \
     36 	loadfile_elf32.c lseek.c memcpy.c open.c printf.c read.c sprintf.c \
     37 	strerror.c subr_prf.c twiddle.c
     38 
     39 SRC_kern= ashldi3.c ashrdi3.c bcmp.c bzero.c inet_addr.c intoa.c \
     40 	memcmp.c memset.c strcmp.c strlen.c strncmp.c
     41 
     42 SRC_here= clock.c dev_disk.c devopen.c \
     43 	 gets.c idprom.c netif_sun.c panic.c \
     44 	 promboot.c promcons.c promdev.c \
     45 	 sun2.c sun3.c sun3x.c vers.c xxboot.c
     46 
     47 SRCS= ${SRC_net} ${SRC_sa} ${SRC_kern} ${SRC_here}
     48 SRCS+= ${S}/arch/sun68k/sun68k/ctrlsp.S
     49 
     50 # only needed during build
     51 libinstall::
     52 
     53 # bring in the required libgcc integer support:
     54 .if defined(MACHINE_ARCH) && (${MACHINE_ARCH} == "m68000")
     55 LIBGCC_OBJS=   _mulsi3.o _divsi3.o _udivsi3.o _modsi3.o _umodsi3.o _muldi3.o
     56 ${LIBGCC_OBJS}:
     57 	@${AR} xv ${DESTDIR}/usr/lib/libgcc.a $@
     58 OBJS+= ${LIBGCC_OBJS}
     59 .endif
     60 
     61 .include <bsd.own.mk>
     62 .undef DESTDIR=
     63 .include <bsd.lib.mk>
     64 
     65 # Nuke these...
     66 LOBJS=
     67 POBJS=
     68 SOBJS=
     69 
     70 # Customized rules...
     71 
     72 vers.c: ${.CURDIR}/version
     73 	sh ${S}/conf/newvers_stand.sh -MD ${.CURDIR}/version "${MACHINE}"
     74