automake
[Top][All Lists]
Advanced

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

can I use pkg-config in my Makefile.am?


From: eawiggins
Subject: can I use pkg-config in my Makefile.am?
Date: Mon, 26 May 2008 11:18:39 -0700 (PDT)

I'm trying to convert to autoconf, automake, and it's a steep learning curve.
Should I be able to put "$(shell pkg-config ...) lines in my Makefile.am,
like I have below?

bin_PROGRAMS= myprog
cxp_CPPFLAGS= -I$(top_srcdir)/include $(shell pkg-config --cflags glib-2.0)
cxp_SOURCES= main.cpp 
cxp_CXXFLAGS= $(OGRE_CFLAGS) $(OIS_CFLAGS)
cxp_LDADD= $(OGRE_LIBS) $(OIS_LIBS) $(shell pkg-config --libs glib-2.0)

Anyone know how this is done? I've tried but doesn't seem to be working out
well. Thinks it's some sort of gnu extension.
-- 
View this message in context: 
http://www.nabble.com/can-I-use-pkg-config-in-my-Makefile.am--tp17476775p17476775.html
Sent from the Gnu - Automake - General mailing list archive at Nabble.com.





reply via email to

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