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