I'm trying to create a C program that can communicate with MySQL database via these two header files:
mysql.h
my_global.h
MySQL comes with mysql_config script that you can execute to find out where the include files and library files reside in the system. I was wondering how would you define it in the Makefile.am?
I currently have the following:
bin_PROGRAMS = db
db_SOURCES = db.c db.h
db_CFLAGS = -Wall `mysql_config --cflags --libs`
Is this the correct way?