2 # $Id: demo.mk 18234 2007-10-08 13:39:48Z rasky $
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.9 2007/09/29 15:54:14 bernie
12 # Make demo Qt emulator compile again.
14 # Revision 1.8 2006/09/20 14:27:22 marco
15 # Added fonts, switch.S; fixed moc
17 # Revision 1.7 2006/09/19 17:48:45 bernie
20 # Revision 1.6 2006/06/02 12:27:36 bernie
21 # Tweak apparence; enable assertions.
23 # Revision 1.5 2006/05/27 22:42:02 bernie
26 # Revision 1.4 2006/05/27 17:16:38 bernie
27 # Make demos a bit more interesting.
29 # Revision 1.3 2006/05/15 07:21:24 bernie
32 # Revision 1.2 2006/03/27 04:49:50 bernie
33 # Add bouncing logo demo.
35 # Revision 1.1 2006/03/22 09:52:13 bernie
36 # Add demo application.
39 include fonts/fonts.mk
42 # Set to 1 for debug builds
45 # Our target application
48 # FIXME: we want to use g++ for C source too
91 # FIXME: maybe this junk should go in emul/emul.mk?
92 $(OBJDIR)/demo/emul/emulwin.o: emul/emulwin_moc.cpp
93 $(OBJDIR)/demo/drv/lcd_gfx_qt.o: drv/lcd_gfx_qt_moc.cpp
94 $(OBJDIR)/demo/drv/timer.o: drv/timer_qt_moc.cpp
95 $(OBJDIR)/demo/emul/emulkbd.o: emul/emulkbd_moc.cpp
97 #FIXME: isn't there a way to avoid repeating the pattern rule?
98 drv/timer_qt_moc.cpp: drv/timer_qt.c
102 demo_CFLAGS = -D_QT=4 -D'ARCH=ARCH_EMUL' -Iapp/demo -Ihw $(EMUL_CFLAGS)
103 demo_CXXFLAGS = -D_QT=4 -D'ARCH=ARCH_EMUL' -Iapp/demo -Ihw $(EMUL_CFLAGS)
104 demo_LDFLAGS = $(EMUL_LDFLAGS)
107 ifeq ($(demo_DEBUG),1)
108 demo_CFLAGS += -D_DEBUG
109 demo_CXXFLAGS += -D_DEBUG
110 # demo_PCSRC += drv/kdebug.c