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