Use pkg-config.
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 15 May 2006 07:21:24 +0000 (07:21 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 15 May 2006 07:21:24 +0000 (07:21 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@602 38d2e660-2303-0410-9eaa-f027e97ec537

app/demo/demo.mk

index 1347fce901c874e88f41636628eea1f6ca9abc8d..f82e5b908eb6548c218e5df64dc236d90550ce96 100755 (executable)
@@ -8,6 +8,9 @@
 # Author: Bernardo Innocenti <bernie@develer.com>
 #
 # $Log$
+# Revision 1.3  2006/05/15 07:21:24  bernie
+# Use pkg-config.
+#
 # Revision 1.2  2006/03/27 04:49:50  bernie
 # Add bouncing logo demo.
 #
@@ -69,8 +72,8 @@ demo_ASRC = \
 $(OBJDIR)/demo/emul/emulwin.o: emul/emulwin_moc.cpp 
 $(OBJDIR)/demo/drv/lcd_gfx_qt.o: drv/lcd_gfx_qt_moc.cpp
 
-EMUL_CFLAGS = -I/usr/local/kde4/include/Qt -I/usr/local/kde4/include -DQT_CLEAN_NAMESPACE -DQT3_SUPPORT
-EMUL_LDFLAGS = -L /usr/local/kde4/lib64 -lQtGui -lQtCore
+EMUL_CFLAGS = $(shell pkg-config QtGui --cflags) -DQT_CLEAN_NAMESPACE -DQT3_SUPPORT
+EMUL_LDFLAGS = $(shell pkg-config QtGui --libs)
 demo_CFLAGS = -Os -D_QT=4 -D'ARCH=ARCH_EMUL' -Ihw $(EMUL_CFLAGS)
 demo_CXXFLAGS = -Os -D_QT=4 -D'ARCH=ARCH_EMUL' -Ihw $(EMUL_CFLAGS)
 demo_LDFLAGS = $(EMUL_LDFLAGS)