Home | History | Annotate | Line # | Download | only in prog
      1  1.5  christos # $NetBSD: Makefile,v 1.5 2009/01/28 16:11:23 christos Exp $
      2  1.4  dholland 
      3  1.4  dholland NOMAN=# defined (must be above bsd.own.mk)
      4  1.1  christos 
      5  1.1  christos .include <bsd.own.mk>
      6  1.1  christos 
      7  1.1  christos PROG=origin
      8  1.1  christos LIBFOO != cd ${.CURDIR}/../lib && ${PRINTOBJDIR}
      9  1.5  christos PROGDIR != cd ${.CURDIR} && ${PRINTOBJDIR}
     10  1.1  christos LDFLAGS+=-Wl,-R'$${ORIGIN}' -Wl,-L${LIBFOO} -lfoo
     11  1.1  christos CPPFLAGS+=-I${.CURDIR}/../lib
     12  1.1  christos 
     13  1.1  christos ${PROG}: libfoo.so.0
     14  1.1  christos 
     15  1.1  christos libfoo.so.0:
     16  1.3  christos 	-@cp ${LIBFOO}/libfoo.so.0 .
     17  1.1  christos 
     18  1.3  christos CLEANFILES+=libfoo.so.0
     19  1.1  christos 
     20  1.5  christos #	can't use ./${PROG} here because the kernel is still broken
     21  1.5  christos #	checkout the #ifdef notyet in kern_exec.c
     22  1.1  christos regress: ${PROG}
     23  1.5  christos 	${PROGDIR}/${PROG}
     24  1.1  christos 
     25  1.1  christos .include <bsd.prog.mk>
     26