Home | History | Annotate | Line # | Download | only in common
Makefile revision 1.5
      1 #	$NetBSD: Makefile,v 1.5 2002/04/13 17:48:10 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 AFLAGS= -D_LOCORE
     13 
     14 CLEANFILES+= machine m68k
     15 
     16 .BEGIN: machine m68k
     17 .NOPATH: machine m68k
     18 realdepend realall: machine m68k
     19 
     20 machine::
     21 	-rm -f $@
     22 	ln -s ${S}/arch/${MACHINE}/include $@
     23 
     24 m68k::
     25 	-rm -f $@
     26 	ln -s ${S}/arch/m68k/include $@
     27 
     28 ${OBJS}: machine m68k
     29 
     30 ### find out what to use for libkern
     31 KERN_AS= library
     32 .include "${S}/lib/libkern/Makefile.inc"
     33 LIBKERN= ${KERNLIB}
     34 
     35 ### find out what to use for libz
     36 Z_AS= library
     37 .include "${S}/lib/libz/Makefile.inc"
     38 LIBZ= ${ZLIB}
     39 
     40 ### find out what to use for libsa
     41 SA_AS= library
     42 SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes
     43 .include "${S}/lib/libsa/Makefile.inc"
     44 LIBSA= ${SALIB}
     45 
     46 LIBS= ${LIBSA} ${LIBZ} ${LIBKERN}
     47 
     48 realall: ${LIBS}
     49 
     50 cleandir distclean: cleanlibdir
     51 
     52 cleanlibdir:
     53 	-rm -rf lib
     54 
     55 .include <bsd.prog.mk>
     56