Home | History | Annotate | Line # | Download | only in common
Makefile revision 1.5
      1 #	$NetBSD: Makefile,v 1.5 2004/01/05 15:15:26 nonaka Exp $
      2 
      3 S= ${.CURDIR}/../../../..
      4 
      5 NOMAN= # defined
      6 
      7 CPPFLAGS+= -D_STANDALONE
      8 CPPFLAGS+= -D__daddr_t=int32_t
      9 CPPFLAGS+= -I. -I${S} -I${.OBJDIR}
     10 CPPFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
     11 
     12 CFLAGS+= -ffreestanding
     13 
     14 CLEANFILES+= machine powerpc
     15 
     16 .PHONY: machine-links
     17 beforedepend: machine-links
     18 
     19 machine-links:
     20 	-rm -f machine
     21 	ln -s ${S}/arch/${MACHINE}/include machine
     22 	-rm -f ${MACHINE_ARCH}
     23 	ln -s ${S}/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH}
     24 
     25 .include <bsd.prog.mk>
     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: machine-links ${LIBS}
     46 
     47 cleandir distclean: cleanlibdir
     48 
     49 cleanlibdir:
     50 	-rm -rf lib
     51