#!/bin/sh PREFIX=TESTS for s in ${@} do src="${s#*/}" exe="tests/test-${src%.*}" dep="tests/${exe}.d" echo "${PREFIX} += ${exe}" >> tests.mk echo "${dep}:" >> tests.mk echo "-include ${dep}" >> tests.mk echo "${exe}: ${s} libejit.a" >> tests.mk echo " \$(COMPILE_TEST) ${s} libejit.a -o ${exe}" >> tests.mk done