-%_unit.c: $(TEST_CFILES) @top_srcdir@/tools/sg_unit_extractor.pl
- @echo TEST_UNITS=$(TEST_UNITS)
- @echo testall_SOURCES=$(testall_SOURCES)
- @lookfor=`echo $@ | sed 's/_unit.c$$/.c/'`; \
- for s in $(TEST_CFILES) ; do \
- if echo $$s | grep $$lookfor >/dev/null; then \
- src="$$src $$s"; \
- fi; \
- done; \
- echo "Generate Testing Suite $@ from$$src"; \
- @top_srcdir@/tools/sg_unit_extractor.pl $$src
+./cunit_unit.c: xbt/cunit.c
+ @top_srcdir@/tools/sg_unit_extractor.pl $^
+./ex_unit.c: xbt/ex.c
+ @top_srcdir@/tools/sg_unit_extractor.pl $^
+./dynar_unit.c: xbt/dynar.c
+ @top_srcdir@/tools/sg_unit_extractor.pl $^
+./dict_unit.c: xbt/dict.c
+ @top_srcdir@/tools/sg_unit_extractor.pl $^
+./set_unit.c: xbt/set.c
+ @top_srcdir@/tools/sg_unit_extractor.pl $^
+./swag_unit.c: xbt/swag.c
+ @top_srcdir@/tools/sg_unit_extractor.pl $^
+./config_unit.c: xbt/config.c
+ @top_srcdir@/tools/sg_unit_extractor.pl $^