all: infile-test infile-test: infile-test.o gcc -o infile-test infile-test.o `mysql_config --libs` infile-test.o: infile-test.c gcc -c `mysql_config --cflags` infile-test.c test: all @echo; echo "=== testing with mysql_options() ==="; echo ./infile-test @echo; echo "=== testing with mysql_real_connect() flags ==="; echo ./infile-test foo