Sistema l'errore da me commesso in fase di conversione...
[bertos.git] / app / demo / demo.mk
1 #
2 # $Id$
3 # Copyright 2003, 2004, 2005, 2006 Develer S.r.l. (http://www.develer.com/)
4 # All rights reserved.
5 #
6 # Makefile fragment for DevLib demo application.
7 #
8 # Author: Bernardo Innocenti <bernie@develer.com>
9 #
10 # $Log$
11 # Revision 1.9  2007/09/29 15:54:14  bernie
12 # Make demo Qt emulator compile again.
13 #
14 # Revision 1.8  2006/09/20 14:27:22  marco
15 # Added fonts, switch.S; fixed moc
16 #
17 # Revision 1.7  2006/09/19 17:48:45  bernie
18 # Remove artwork.c
19 #
20 # Revision 1.6  2006/06/02 12:27:36  bernie
21 # Tweak apparence; enable assertions.
22 #
23 # Revision 1.5  2006/05/27 22:42:02  bernie
24 # Add verstag.
25 #
26 # Revision 1.4  2006/05/27 17:16:38  bernie
27 # Make demos a bit more interesting.
28 #
29 # Revision 1.3  2006/05/15 07:21:24  bernie
30 # Use pkg-config.
31 #
32 # Revision 1.2  2006/03/27 04:49:50  bernie
33 # Add bouncing logo demo.
34 #
35 # Revision 1.1  2006/03/22 09:52:13  bernie
36 # Add demo application.
37 #
38
39 include fonts/fonts.mk
40 include emul/emul.mk
41
42 # Set to 1 for debug builds
43 demo_DEBUG = 1
44
45 # Our target application
46 TRG += demo
47
48 # FIXME: we want to use g++ for C source too
49 CC = g++
50
51 demo_CXXSRC = \
52         emul/emul.cpp \
53         emul/emulwin.cpp \
54         emul/emulkbd.cpp \
55         drv/lcd_gfx_qt.cpp
56
57 demo_CSRC = \
58         app/demo/demo.c \
59         os/hptime.c \
60         gfx/bitmap.c \
61         gfx/line.c \
62         gfx/win.c \
63         gfx/text.c \
64         gfx/text_format.c \
65         gui/menu.c \
66         fonts/helvB10.c \
67         fonts/luBS14.c \
68         fonts/ncenB18.c \
69         icons/logo.c \
70         drv/kbd.c \
71         drv/timer.c \
72         drv/buzzer.c \
73         drv/ser.c \
74         drv/ser_posix.c \
75         mware/formatwr.c \
76         mware/hex.c \
77         mware/event.c \
78         mware/observer.c \
79         mware/resource.c \
80         mware/sprintf.c \
81         kern/proc.c \
82         kern/sem.c \
83         kern/signal.c \
84         kern/monitor.c \
85         kern/proc_test.c \
86         verstag.c
87
88 demo_CPPASRC = \
89         kern/switch.S
90
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
96
97 #FIXME: isn't there a way to avoid repeating the pattern rule?
98 drv/timer_qt_moc.cpp: drv/timer_qt.c
99         $(QT_MOC) -o $@ $<
100
101
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)
105
106 # Debug stuff
107 ifeq ($(demo_DEBUG),1)
108         demo_CFLAGS += -D_DEBUG
109         demo_CXXFLAGS += -D_DEBUG
110 #       demo_PCSRC += drv/kdebug.c
111 else
112         demo_CFLAGS += -Os
113         demo_CXXFLAGS += -Os
114 endif
115