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