Home | History | Annotate | Line # | Download | only in common
Makefile revision 1.8.104.1
      1  1.8.104.1       mjf #	$NetBSD: Makefile,v 1.8.104.1 2009/01/17 13:28:22 mjf Exp $
      2        1.1    tsubai 
      3        1.7   tsutsui WARNS?= 1
      4        1.1    tsubai S= ${.CURDIR}/../../../..
      5        1.1    tsubai 
      6        1.1    tsubai OBJS= romcalls.o
      7        1.1    tsubai 
      8        1.7   tsutsui CFLAGS= -Os -ffreestanding -mmemcpy -mno-abicalls -msoft-float -G 0
      9  1.8.104.1       mjf CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
     10        1.1    tsubai 
     11        1.1    tsubai CPPFLAGS+= -D_STANDALONE #-DBOOT_DEBUG
     12        1.4   tsutsui CPPFLAGS+= -DHAVE_CHANGEDISK_HOOK
     13        1.3   tsutsui CPPFLAGS+= -DLIBSA_USE_MEMSET -DLIBSA_USE_MEMCPY
     14        1.1    tsubai CPPFLAGS+= -I. -I${S}
     15        1.8   tsutsui CPPFLAGS+= -D__daddr_t=int32_t
     16        1.1    tsubai 
     17        1.7   tsutsui AFLAGS= -D_LOCORE -mno-abicalls
     18        1.1    tsubai 
     19        1.1    tsubai ### find out what to use for libkern
     20        1.1    tsubai .include "${S}/lib/libkern/Makefile.inc"
     21        1.1    tsubai 
     22        1.1    tsubai ### find out what to use for libz
     23        1.1    tsubai .include "${S}/lib/libz/Makefile.inc"
     24        1.1    tsubai 
     25        1.1    tsubai ### find out what to use for libsa
     26        1.1    tsubai SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes
     27        1.1    tsubai .include "${S}/lib/libsa/Makefile.inc"
     28        1.1    tsubai 
     29        1.5  jdolecek .if !make(obj) && !make(clean) && !make(cleandir)
     30        1.1    tsubai .BEGIN:
     31        1.1    tsubai 	@[ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine
     32        1.1    tsubai 	@[ -h mips ] || ln -s ${S}/arch/mips/include mips
     33        1.2   mycroft .NOPATH: machine mips
     34        1.6  jdolecek .endif
     35        1.2   mycroft CLEANFILES+= machine mips
     36        1.1    tsubai 
     37        1.2   mycroft realall: ${OBJS} ${KERNLIB} ${ZLIB} ${SALIB}
     38        1.1    tsubai #	ln -s ${KERNLIB}
     39        1.1    tsubai #	ln -s ${ZLIB}
     40        1.1    tsubai #	ln -s ${SALIB}
     41        1.1    tsubai 
     42        1.1    tsubai .include <bsd.prog.mk>
     43