Makefile revision 1.11
11.11Sis# $NetBSD: Makefile,v 1.11 1999/02/18 11:59:06 is 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.11SisTESTSCRIPTS=empty nonexistshell devnullscript badinterplen goodscript \ 211.11Sis scriptarg scriptarg-nospace 221.11Sis 231.11Sisall: ${PROG} goodaout truncaout ${TESTSCRIPTS} 241.11Sis 251.11Sis.for x in ${TESTSCRIPTS} 261.11Sis${x}: ${TD}/${x} 271.11Sis cp ${TD}/${x} ${.OBJDIR} 281.11Sis chmod +x ${.OBJDIR}/${x} 291.11Sis.endfor 301.11Sis 311.11SisCLEANFILES+= goodaout truncaout ${TESTSCRIPTS} 321.1Scgd 331.1Scgdregress: test-empty test-nonexist \ 341.1Scgd test-nonexistshell test-devnullscript test-badinterplen \ 351.1Scgd test-goodscript test-scriptarg test-scriptarg-nospace \ 361.1Scgd test-goodaout test-truncaout 371.1Scgd 381.11Sisempty: ${TD}/empty 391.11Sis cp ${TD}/empty ${.OBJDIR}/empty 401.11Sis chmod +x ${.OBJDIR}/empty 411.11Sis 421.11Sistest-empty: ${PROG} empty 431.11Sis ${RP} ${.OBJDIR}/empty | diff - ${OD}/empty 441.1Scgd 451.1Scgdtest-nonexist: ${PROG} 461.1Scgd ${RP} ${TD}/nonexistent | diff - ${OD}/nonexistent 471.1Scgd 481.11Sistest-nonexistshell: ${PROG} nonexistshell 491.11Sis ${RP} ${.OBJDIR}/nonexistshell | diff - ${OD}/nonexistshell 501.1Scgd 511.11Sistest-devnullscript: ${PROG} devnullscript 521.11Sis ${RP} ${.OBJDIR}/devnullscript | diff - ${OD}/devnullscript 531.1Scgd 541.11Sistest-badinterplen: ${PROG} badinterplen 551.11Sis ${RP} ${.OBJDIR}/badinterplen | diff - ${OD}/badinterplen 561.1Scgd 571.11Sistest-goodscript: ${PROG} goodscript 581.11Sis ${RP} ${.OBJDIR}/goodscript | diff - ${OD}/goodscript 591.1Scgd 601.11Sistest-scriptarg: ${PROG} scriptarg 611.11Sis ${RP} ${.OBJDIR}/scriptarg 2>&1 | diff - ${OD}/scriptarg 621.1Scgd 631.11Sistest-scriptarg-nospace: ${PROG} scriptarg-nospace 641.11Sis ${RP} ${.OBJDIR}/scriptarg-nospace 2>&1 | diff - ${OD}/scriptarg-nospace 651.1Scgd 661.1Scgdgoodaout: ${TD}/goodaout.c 671.7Swrstuden ${LINK.c} ${GOODAOUT_LIB} -o ${.TARGET} ${TD}/goodaout.c ${LDLIBS} 681.1Scgd 691.1Scgdtest-goodaout: ${PROG} goodaout 701.1Scgd ${RP} ${.OBJDIR}/goodaout | diff - ${OD}/goodaout 711.1Scgd 721.1Scgdtruncaout: goodaout 731.1Scgd /bin/rm -rf truncaout 741.1Scgd dd if=${.OBJDIR}/goodaout of=truncaout bs=16 count=1 751.1Scgd chmod a+x truncaout 761.3Sglass 771.1Scgdtest-truncaout: ${PROG} truncaout 781.1Scgd ${RP} ${.OBJDIR}/truncaout | diff - ${OD}/truncaout 791.1Scgd 801.1Scgd.include <bsd.prog.mk> 81