-# $OpenBSD: Makefile,v 1.34 2017/07/07 10:56:13 bluhm Exp $
+# $OpenBSD: Makefile,v 1.35 2017/07/10 18:48:37 bluhm Exp $
REGRESS_TARGETS = test-compile-0 test-link-0 test-install-0 \
test-run-0 test-link-1 test-install-1 test-run-1 \
test-link-2 test-link-3 test-link-4 \
SOPTS = -version-info 0:0:0 -rpath /usr/local/lib
LIBS = a a0 a1 a2 a3 a4 bad a9 ${WEIRD}
-PROGS = p1 p2
+PRGS = p1 p2
OBJ_a = a.lo b.lo
a_OPTS = ${SOPTS}
.c.lo:
${LIBTOOL} --mode=compile ${CC} -c ${CFLAGS} ${.CURDIR}/$*.c
-.for p in ${PROGS}
+.for p in ${PRGS}
$p: ${OBJ_$p}
${LIBTOOL} --mode=link ${CC} ${CFLAGS} -o $@ ${LINK_$p}
.endfor
-.for t in ${PROGS}
+.for t in ${PRGS}
${DEST}/bin/$t: $t
mkdir -p ${DEST}/bin
${LIBTOOL} --mode=install cp $t ${DEST}/bin/$t
${LIBS_ENV} ${LIBTOOL} --mode=link ${CC} ${CFLAGS} -o $@ ${$l_OPTS} ${OBJ_$l}
.endfor
-CLEANFILES += ${PROGS} s1 *.c *.o *.lo *.la .libs/* lib1/* out*
+CLEANFILES += ${PRGS} s1 *.c *.o *.lo *.la .libs/* lib1/* out*
CLEANFILES += ${DEST}/bin/* ${DEST}/lib/* ${DEST2}/lib/* ${DEST3}/lib/*
.PHONY: ${REGRESS_TARGETS} regress compile-tests