Makefile revision 1.10
11.10Slukem# $NetBSD: Makefile,v 1.10 1999/02/13 02:54:33 lukem Exp $ 21.1Scgd 31.1ScgdPROG= doexec 41.10SlukemMKMAN= no 51.1Scgd 61.6ScgdLDSTATIC= -static # only static compilation makes sense here 71.1Scgd 81.7Swrstuden.if (defined(DESTDIR)) 91.9ScastorLDLIBS+= -lgcc -lc ${LIBCRTEND} 101.9ScastorGOODAOUT_LIB= -nostdlib -L${DESTDIR}/usr/lib ${LDSTATIC} 111.9ScastorGOODAOUT_LIB+= ${LIBCRT0} ${LIBCRTBEGIN} 121.7Swrstuden.else 131.7SwrstudenGOODAOUT_LIB= ${LDSTATIC} 141.7Swrstuden.endif 151.7Swrstuden 161.1ScgdRP= ${.OBJDIR}/${PROG} 171.1ScgdTD= ${.CURDIR}/tests 181.1ScgdOD= ${.CURDIR}/good 191.1Scgd 201.1Scgdall: ${PROG} goodaout truncaout 211.1ScgdCLEANFILES+= goodaout truncaout 221.1Scgd 231.1Scgdregress: test-empty test-nonexist \ 241.1Scgd test-nonexistshell test-devnullscript test-badinterplen \ 251.1Scgd test-goodscript test-scriptarg test-scriptarg-nospace \ 261.1Scgd test-goodaout test-truncaout 271.1Scgd 281.1Scgdtest-empty: ${PROG} ${TD}/empty 291.1Scgd ${RP} ${TD}/empty | diff - ${OD}/empty 301.1Scgd 311.1Scgdtest-nonexist: ${PROG} 321.1Scgd ${RP} ${TD}/nonexistent | diff - ${OD}/nonexistent 331.1Scgd 341.1Scgdtest-nonexistshell: ${PROG} ${TD}/nonexistshell 351.1Scgd ${RP} ${TD}/nonexistshell | diff - ${OD}/nonexistshell 361.1Scgd 371.1Scgdtest-devnullscript: ${PROG} ${TD}/devnullscript 381.1Scgd ${RP} ${TD}/devnullscript | diff - ${OD}/devnullscript 391.1Scgd 401.1Scgdtest-badinterplen: ${PROG} ${TD}/badinterplen 411.1Scgd ${RP} ${TD}/badinterplen | diff - ${OD}/badinterplen 421.1Scgd 431.1Scgdtest-goodscript: ${PROG} ${TD}/goodscript 441.1Scgd ${RP} ${TD}/goodscript | diff - ${OD}/goodscript 451.1Scgd 461.1Scgdtest-scriptarg: ${PROG} ${TD}/scriptarg 471.1Scgd ${RP} ${TD}/scriptarg 2>&1 | diff - ${OD}/scriptarg 481.1Scgd 491.1Scgdtest-scriptarg-nospace: ${PROG} ${TD}/scriptarg-nospace 501.1Scgd ${RP} ${TD}/scriptarg-nospace 2>&1 | diff - ${OD}/scriptarg-nospace 511.1Scgd 521.1Scgdgoodaout: ${TD}/goodaout.c 531.7Swrstuden ${LINK.c} ${GOODAOUT_LIB} -o ${.TARGET} ${TD}/goodaout.c ${LDLIBS} 541.1Scgd 551.1Scgdtest-goodaout: ${PROG} goodaout 561.1Scgd ${RP} ${.OBJDIR}/goodaout | diff - ${OD}/goodaout 571.1Scgd 581.1Scgdtruncaout: goodaout 591.1Scgd /bin/rm -rf truncaout 601.1Scgd dd if=${.OBJDIR}/goodaout of=truncaout bs=16 count=1 611.1Scgd chmod a+x truncaout 621.3Sglass 631.1Scgdtest-truncaout: ${PROG} truncaout 641.1Scgd ${RP} ${.OBJDIR}/truncaout | diff - ${OD}/truncaout 651.1Scgd 661.1Scgd.include <bsd.prog.mk> 67