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: Bernie Innocenti <bernie@codewiz.org>
11 include bertos/fonts/fonts.mk
12 include bertos/emul/emul.mk
14 # Set to 1 for debug builds
17 # Our target application
20 # FIXME: we want to use g++ for C source too
25 bertos/emul/emul.cpp \
26 bertos/emul/emulwin.cpp \
27 bertos/emul/emulkbd.cpp \
28 bertos/drv/lcd_gfx_qt.cpp
37 bertos/gfx/text_format.c \
39 bertos/fonts/helvB10.c \
40 bertos/fonts/luBS14.c \
41 bertos/fonts/ncenB18.c \
45 bertos/drv/timer_test.c \
48 bertos/emul/ser_posix.c \
49 bertos/mware/formatwr.c \
51 bertos/mware/event.c \
52 bertos/mware/observer.c \
53 bertos/mware/resource.c \
54 bertos/mware/sprintf.c \
56 bertos/kern/proc_test.c \
57 bertos/kern/preempt.c \
59 bertos/kern/signal.c \
60 bertos/kern/monitor.c \
66 # FIXME: maybe this junk should go in emul/emul.mk?
67 $(OBJDIR)/demo/bertos/emul/emulwin.o: bertos/emul/emulwin_moc.cpp
68 $(OBJDIR)/demo/bertos/drv/lcd_gfx_qt.o: bertos/drv/lcd_gfx_qt_moc.cpp
69 $(OBJDIR)/demo/bertos/drv/timer.o: bertos/emul/timer_qt_moc.cpp
70 $(OBJDIR)/demo/bertos/emul/emulkbd.o: bertos/emul/emulkbd_moc.cpp
72 #FIXME: isn't there a way to avoid repeating the pattern rule?
73 bertos/emul/timer_qt_moc.cpp: bertos/emul/timer_qt.c
77 demo_CFLAGS = -Iapp/demo $(EMUL_CFLAGS)
78 demo_CXXFLAGS = -Iapp/demo $(EMUL_CFLAGS)
79 demo_LDFLAGS = $(EMUL_LDFLAGS)
82 ifeq ($(demo_DEBUG),0)