1 objects=main1.o foo.o main2.o bar.o 2 mains=main1.o main2.o 3 4 # expect a list which contains all the object files not in `mains' 5 test: 6 echo $(filter-out $(mains),$(objects)) 7