Also: since repetition offends me, I would have written this as:

cf_upgrade_test_SOURCES = cf_upgrade_test.c $(patsubst %, $(CFUPGRADE)/%, alloc-mini.c alloc-mini.h ...)