Home | History | Annotate | Line # | Download | only in common
Makefile revision 1.6
      1 #	$NetBSD: Makefile,v 1.6 2003/03/30 08:01:13 tsutsui Exp $
      2 
      3 S= ${.CURDIR}/../../../..
      4 
      5 NOMAN= # defined
      6 
      7 CFLAGS= -Os -Wall
      8 
      9 CPPFLAGS+= -D_STANDALONE
     10 CPPFLAGS+= -DLIBSA_USE_MEMCPY -DLIBSA_USE_MEMSET
     11 CPPFLAGS+= -nostdinc -I${.OBJDIR} -I${S} -I.
     12 CPPFLAGS+= -D__daddr_t=int32_t
     13 AFLAGS= -D_LOCORE
     14 
     15 CLEANFILES+= machine m68k
     16 
     17 .BEGIN: machine m68k
     18 .NOPATH: machine m68k
     19 realdepend realall: machine m68k
     20 
     21 machine::
     22 	-rm -f $@
     23 	ln -s ${S}/arch/${MACHINE}/include $@
     24 
     25 m68k::
     26 	-rm -f $@
     27 	ln -s ${S}/arch/m68k/include $@
     28 
     29 ${OBJS}: machine m68k
     30 
     31 ### find out what to use for libkern
     32 KERN_AS= library
     33 .include "${S}/lib/libkern/Makefile.inc"
     34 LIBKERN= ${KERNLIB}
     35 
     36 ### find out what to use for libz
     37 Z_AS= library
     38 .include "${S}/lib/libz/Makefile.inc"
     39 LIBZ= ${ZLIB}
     40 
     41 ### find out what to use for libsa
     42 SA_AS= library
     43 SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes
     44 .include "${S}/lib/libsa/Makefile.inc"
     45 LIBSA= ${SALIB}
     46 
     47 LIBS= ${LIBSA} ${LIBZ} ${LIBKERN}
     48 
     49 realall: ${LIBS}
     50 
     51 cleandir distclean: cleanlibdir
     52 
     53 cleanlibdir:
     54 	-rm -rf lib
     55 
     56 .include <bsd.prog.mk>
     57