Makefile revision 1.7
11.7Swrstuden# $NetBSD: Makefile,v 1.7 1998/09/12 20:17:43 wrstuden Exp $ 21.1Scgd 31.1ScgdPROG= doexec 41.1ScgdNOMAN= noman, no way, man 51.1Scgd 61.6ScgdLDSTATIC= -static # only static compilation makes sense here 71.1Scgd 81.7Swrstuden.if (defined(DESTDIR)) 91.7SwrstudenLDLIBS+= ${LIBCRT0} -lgcc -lc 101.7SwrstudenGOODAOUT_LIB= -nostdlib -L${DESTDIR}/usr/lib ${LDSTATIC} 111.7Swrstuden.else 121.7SwrstudenGOODAOUT_LIB= ${LDSTATIC} 131.7Swrstuden.endif 141.7Swrstuden 151.1ScgdRP= ${.OBJDIR}/${PROG} 161.1ScgdTD= ${.CURDIR}/tests 171.1ScgdOD= ${.CURDIR}/good 181.1Scgd 191.1Scgdall: ${PROG} goodaout truncaout 201.1ScgdCLEANFILES+= goodaout truncaout 211.1Scgd 221.1Scgdregress: test-empty test-nonexist \ 231.1Scgd test-nonexistshell test-devnullscript test-badinterplen \ 241.1Scgd test-goodscript test-scriptarg test-scriptarg-nospace \ 251.1Scgd test-goodaout test-truncaout 261.1Scgd 271.1Scgdtest-empty: ${PROG} ${TD}/empty 281.1Scgd ${RP} ${TD}/empty | diff - ${OD}/empty 291.1Scgd 301.1Scgdtest-nonexist: ${PROG} 311.1Scgd ${RP} ${TD}/nonexistent | diff - ${OD}/nonexistent 321.1Scgd 331.1Scgdtest-nonexistshell: ${PROG} ${TD}/nonexistshell 341.1Scgd ${RP} ${TD}/nonexistshell | diff - ${OD}/nonexistshell 351.1Scgd 361.1Scgdtest-devnullscript: ${PROG} ${TD}/devnullscript 371.1Scgd ${RP} ${TD}/devnullscript | diff - ${OD}/devnullscript 381.1Scgd 391.1Scgdtest-badinterplen: ${PROG} ${TD}/badinterplen 401.1Scgd ${RP} ${TD}/badinterplen | diff - ${OD}/badinterplen 411.1Scgd 421.1Scgdtest-goodscript: ${PROG} ${TD}/goodscript 431.1Scgd ${RP} ${TD}/goodscript | diff - ${OD}/goodscript 441.1Scgd 451.1Scgdtest-scriptarg: ${PROG} ${TD}/scriptarg 461.1Scgd ${RP} ${TD}/scriptarg 2>&1 | diff - ${OD}/scriptarg 471.1Scgd 481.1Scgdtest-scriptarg-nospace: ${PROG} ${TD}/scriptarg-nospace 491.1Scgd ${RP} ${TD}/scriptarg-nospace 2>&1 | diff - ${OD}/scriptarg-nospace 501.1Scgd 511.1Scgdgoodaout: ${TD}/goodaout.c 521.7Swrstuden ${LINK.c} ${GOODAOUT_LIB} -o ${.TARGET} ${TD}/goodaout.c ${LDLIBS} 531.1Scgd 541.1Scgdtest-goodaout: ${PROG} goodaout 551.1Scgd ${RP} ${.OBJDIR}/goodaout | diff - ${OD}/goodaout 561.1Scgd 571.1Scgdtruncaout: goodaout 581.1Scgd /bin/rm -rf truncaout 591.1Scgd dd if=${.OBJDIR}/goodaout of=truncaout bs=16 count=1 601.1Scgd chmod a+x truncaout 611.3Sglass 621.1Scgdtest-truncaout: ${PROG} truncaout 631.1Scgd ${RP} ${.OBJDIR}/truncaout | diff - ${OD}/truncaout 641.1Scgd 651.1Scgd.include <bsd.prog.mk> 66