Home | History | Annotate | Line # | Download | only in libsa
      1 #	$NetBSD: Makefile,v 1.33 2018/02/02 01:02:41 mrg Exp $
      2 
      3 # Logically src/sys
      4 .include <bsd.own.mk>
      5 S!= cd ${.CURDIR}/../../../..; pwd
      6 DIR_SA=${S}/lib/libsa
      7 DIR_KERN=${S}/lib/libkern ${S}/lib/libkern/arch/m68k
      8 DIR_LIBC=${S}/../common/lib/libc
      9 
     10 # DEBUG= -DDEBUG -DNETIF_DEBUG -DNFS_DEBUG -DRPC_DEBUG \
     11 #  -DNET_DEBUG -DRARP_DEBUG -DETHER_DEBUG -DDEBUG_PROM
     12 
     13 CPUFLAGS=	# ignore settings in /etc/mk.conf
     14 DEFS= -Dsun3 -D_STANDALONE -D__daddr_t=int32_t
     15 INCL= -I. -I${.CURDIR} -I${S}/lib/libsa -I${S} -I${S}/arch
     16 AFLAGS= -Wa,-mc68020 -Wa,-mc68851
     17 # gcc 4.8 converts -mc68000 to -mcpu=68000 and that breaks gas
     18 # which works for -march=68010 but breaks for -mcpu=68010
     19 CFLAGS= -march=68010
     20 CFLAGS+= -Wa,-m68851 -msoft-float
     21 CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
     22 COPTS= -Os -fno-defer-pop -ffreestanding -fno-unwind-tables
     23 CPPFLAGS= ${DEFS} ${DEBUG} ${INCL}
     24 CLEANFILES= SRT0.o SRT1.o
     25 
     26 SRCS= SRT0.S SRT1.c
     27 OBJS= SRT0.o SRT1.o
     28 
     29 realall: ${OBJS}
     30 
     31 .include <bsd.prog.mk>
     32 
     33 ### find out what to use for libkern
     34 KERN_AS= library
     35 .include "${S}/lib/libkern/Makefile.inc"
     36 LIBKERN= ${KERNLIB}
     37 
     38 ### find out what to use for libsa
     39 SA_AS= library
     40 SAMISCMAKEFLAGS= SA_USE_LOADFILE=yes SA_EXTRADIR=${.CURDIR}
     41 .include "${S}/lib/libsa/Makefile.inc"
     42 LIBSA= ${SALIB}
     43 
     44 LIBS= ${LIBSA} ${LIBKERN}
     45 
     46 realall: ${LIBS}
     47 
     48 cleandir distclean: .WAIT cleanlibdir
     49 
     50 cleanlibdir:
     51 	-rm -rf lib
     52