1CC=gcc 2LDFLAGS=-laio 3CFLAGS=-W -Wall 4 5TESTS=aio-dio-invalidate-failure aio-dio-subblock-eof-read \ 6 aio-free-ring-with-bogus-nr-pages \ 7 aio-io-setup-with-nonwritable-context-pointer aio-dio-extend-stat 8 9all: $(TESTS) 10 11aio-dio-invalidate-failure: aio-dio-invalidate-failure.c 12 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ 13 14aio-dio-subblock-eof-read: aio-dio-subblock-eof-read.c 15 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ 16 17aio-free-ring-with-bogus-nr-pages: aio-free-ring-with-bogus-nr-pages.c 18 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ 19 20aio-io-setup-with-nonwritable-context-pointer: aio-io-setup-with-nonwritable-context-pointer.c 21 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ 22 23aio-dio-extend-stat: aio-dio-extend-stat.c 24 $(CC) $(CFLAGS) $(LDFLAGS) -lpthread -o $@ $^ 25