3 # Copyright 2003, 2004, 2005, 2006 Develer S.r.l. (http://www.develer.com/)
6 # Makefile fragment for DevLib demo application.
8 # Author: Bernardo Innocenti <bernie@develer.com>
11 # Revision 1.8 2006/09/20 14:27:22 marco
12 # Added fonts, switch.S; fixed moc
14 # Revision 1.7 2006/09/19 17:48:45 bernie
17 # Revision 1.6 2006/06/02 12:27:36 bernie
18 # Tweak apparence; enable assertions.
20 # Revision 1.5 2006/05/27 22:42:02 bernie
23 # Revision 1.4 2006/05/27 17:16:38 bernie
24 # Make demos a bit more interesting.
26 # Revision 1.3 2006/05/15 07:21:24 bernie
29 # Revision 1.2 2006/03/27 04:49:50 bernie
30 # Add bouncing logo demo.
32 # Revision 1.1 2006/03/22 09:52:13 bernie
33 # Add demo application.
36 include fonts/fonts.mk
38 # Set to 1 for debug builds
41 # Our target application
44 # FIXME: we want to use g++ for C source too
87 $(OBJDIR)/demo/emul/emulwin.o: emul/emulwin_moc.cpp
88 $(OBJDIR)/demo/drv/lcd_gfx_qt.o: drv/lcd_gfx_qt_moc.cpp
89 $(OBJDIR)/demo/drv/timer.o: drv/timer_qt_moc.cpp
90 $(OBJDIR)/demo/emul/emulkbd.o: emul/emulkbd_moc.cpp
92 #FIXME: isn't there a way to avoid repeating the pattern rule?
93 drv/timer_qt_moc.cpp: drv/timer_qt.c
96 EMUL_CFLAGS = $(shell pkg-config QtGui --cflags) -DQT_CLEAN_NAMESPACE -DQT3_SUPPORT
97 EMUL_LDFLAGS = $(shell pkg-config QtGui --libs)
98 demo_CFLAGS = -D_QT=4 -D'ARCH=ARCH_EMUL' -Iapp/demo -Ihw $(EMUL_CFLAGS)
99 demo_CXXFLAGS = -D_QT=4 -D'ARCH=ARCH_EMUL' -Iapp/demo -Ihw $(EMUL_CFLAGS)
100 demo_LDFLAGS = $(EMUL_LDFLAGS)
103 ifeq ($(demo_DEBUG),1)
104 demo_CFLAGS += -D_DEBUG
105 demo_CXXFLAGS += -D_DEBUG
106 # demo_PCSRC += drv/kdebug.c