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