help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

setting macros/variables dynamically


From: Ron Croonenberg
Subject: setting macros/variables dynamically
Date: Wed, 31 Oct 2007 22:31:38 -0400
User-agent: Thunderbird 1.5.0.10 (Windows/20070221)

Hello,


I am (trying) to make a Makefile for compiling an application that uses
MySQL. The app need to be compiled with flags and libs that are a bit
machine dependant.

I can find the options etc by using 'mysql_config --cflags'  and
'mysql_config --libs"

What I would like is something like (intuitive):

MYSQL_LIBS = 'mysql_config --libs'


app:
    $(CC) file1.c ... filen.c  $(MYSQL_LIBS)

so that I can basically use the same makefile on every different machine.

It probably isn't as simple as I imagine it..

but...   any tips ?


thanks,

Ron






reply via email to

[Prev in Thread] Current Thread [Next in Thread]