Home | History | Annotate | Line # | Download | only in libsa
Makefile revision 1.28.22.2
      1  1.28.22.2     rmind #	$NetBSD: Makefile,v 1.28.22.2 2014/05/18 17:45:28 rmind Exp $
      2       1.23   tsutsui 
      3        1.1  fredette # Logically src/sys
      4  1.28.22.2     rmind .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.1  fredette AFLAGS= -Wa,-mc68020 -Wa,-mc68851
     17  1.28.22.2     rmind .if defined(HAVE_GCC) && ${HAVE_GCC} >= 48
     18  1.28.22.2     rmind # gcc 4.8 convers -mc68000 to -mcpu=68000 and that breaks gas
     19  1.28.22.2     rmind # which works for -march=68010 but breaks for -mcpu=68010
     20  1.28.22.2     rmind CFLAGS= -march=68010
     21  1.28.22.2     rmind .else
     22  1.28.22.2     rmind CFLAGS= -mc68000 -Wa,-mc68010
     23  1.28.22.2     rmind .endif
     24  1.28.22.2     rmind CFLAGS+= -Wa,-m68851 -msoft-float
     25       1.25   tsutsui CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
     26  1.28.22.1     rmind COPTS= -Os -fno-defer-pop -ffreestanding -fno-unwind-tables
     27       1.23   tsutsui CPPFLAGS= ${DEFS} ${DEBUG} ${INCL}
     28        1.1  fredette CLEANFILES= SRT0.o SRT1.o vers.c
     29        1.1  fredette 
     30       1.27   tsutsui SRCS= SRT0.S SRT1.c
     31       1.27   tsutsui OBJS= SRT0.o SRT1.o
     32        1.1  fredette 
     33       1.27   tsutsui realall: ${OBJS}
     34        1.1  fredette 
     35       1.27   tsutsui .include <bsd.prog.mk>
     36        1.1  fredette 
     37       1.27   tsutsui ### find out what to use for libkern
     38       1.27   tsutsui KERN_AS= library
     39       1.27   tsutsui .include "${S}/lib/libkern/Makefile.inc"
     40       1.27   tsutsui LIBKERN= ${KERNLIB}
     41        1.1  fredette 
     42       1.27   tsutsui ### find out what to use for libsa
     43       1.27   tsutsui SA_AS= library
     44       1.27   tsutsui SAMISCMAKEFLAGS= SA_USE_LOADFILE=yes SA_EXTRADIR=${.CURDIR}
     45       1.27   tsutsui .include "${S}/lib/libsa/Makefile.inc"
     46       1.27   tsutsui LIBSA= ${SALIB}
     47        1.1  fredette 
     48       1.27   tsutsui LIBS= ${LIBSA} ${LIBKERN}
     49        1.1  fredette 
     50       1.27   tsutsui realall: ${LIBS}
     51        1.1  fredette 
     52       1.28  dholland cleandir distclean: .WAIT cleanlibdir
     53        1.1  fredette 
     54       1.27   tsutsui cleanlibdir:
     55       1.27   tsutsui 	-rm -rf lib
     56