1CC = cc 2 3TEST_fnmatch = testfnmatch.dat 4TEST_glob = testglob.dat 5TEST_regex = locale.dat rxposix.dat standards.dat testmatch.dat testregex.dat 6 7test : test.fnmatch test.glob test.regex 8 9test.fnmatch : testfnmatch 10 for i in $(TEST_fnmatch); do echo === $$i ===; ./testfnmatch -c < $$i; done 11 12test.glob : testglob 13 for i in $(TEST_glob); do echo === $$i ===; ./testglob -c < $$i; done 14 15test.regex : testregex 16 for i in $(TEST_regex); do echo === $$i ===; ./testregex -c < $$i; done 17 18all : testfnmatch testglob testregex 19 20testfnmatch : testfnmatch.o 21 $(CC) -o testfnmatch testfnmatch.o 22 23testglob : testglob.o 24 $(CC) -o testglob testglob.o 25 26testregex : testregex.o 27 $(CC) -o testregex testregex.o 28