Tweak apparence; enable assertions.
[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.6  2006/06/02 12:27:36  bernie
12 # Tweak apparence; enable assertions.
13 #
14 # Revision 1.5  2006/05/27 22:42:02  bernie
15 # Add verstag.
16 #
17 # Revision 1.4  2006/05/27 17:16:38  bernie
18 # Make demos a bit more interesting.
19 #
20 # Revision 1.3  2006/05/15 07:21:24  bernie
21 # Use pkg-config.
22 #
23 # Revision 1.2  2006/03/27 04:49:50  bernie
24 # Add bouncing logo demo.
25 #
26 # Revision 1.1  2006/03/22 09:52:13  bernie
27 # Add demo application.
28 #
29
30
31 # Set to 1 for debug builds
32 demo_DEBUG = 1
33
34 # Our target application
35 TRG += demo
36
37 CC = g++
38 CXX = g++
39
40 demo_CXXSRC = \
41         emul/emul.cpp \
42         emul/emulwin.cpp \
43         emul/emulkbd.cpp \
44         drv/lcd_gfx_qt.cpp
45
46 demo_CSRC = \
47         app/demo/demo.c \
48         os/hptime.c \
49         gfx/bitmap.c \
50         gfx/line.c \
51         gfx/win.c \
52         gfx/text.c \
53         gfx/text_format.c \
54         gui/menu.c \
55         fonts/helvB10.c \
56         fonts/luBS14.c \
57         fonts/ncenB18.c \
58         icons/artwork.c \
59         icons/logo.c \
60         drv/kbd.c \
61         drv/timer.c \
62         drv/buzzer.c \
63         drv/ser.c \
64         drv/ser_posix.c \
65         mware/formatwr.c \
66         mware/hex.c \
67         mware/event.c \
68         mware/observer.c \
69         mware/resource.c \
70         mware/sprintf.c \
71         kern/proc.c \
72         kern/sem.c \
73         kern/signal.c \
74         kern/monitor.c \
75         verstag.c
76
77 demo_ASRC = \
78         kern/switch_x86_64.s
79
80
81 $(OBJDIR)/demo/emul/emulwin.o: emul/emulwin_moc.cpp 
82 $(OBJDIR)/demo/drv/lcd_gfx_qt.o: drv/lcd_gfx_qt_moc.cpp
83
84 EMUL_CFLAGS = $(shell pkg-config QtGui --cflags) -DQT_CLEAN_NAMESPACE -DQT3_SUPPORT
85 EMUL_LDFLAGS = $(shell pkg-config QtGui --libs)
86 demo_CFLAGS = -D_QT=4 -D'ARCH=ARCH_EMUL' -Iapp/demo -Ihw $(EMUL_CFLAGS)
87 demo_CXXFLAGS = -D_QT=4 -D'ARCH=ARCH_EMUL' -Iapp/demo -Ihw $(EMUL_CFLAGS)
88 demo_LDFLAGS = $(EMUL_LDFLAGS)
89
90 # Debug stuff
91 ifeq ($(demo_DEBUG),1)
92         demo_CFLAGS += -D_DEBUG
93         demo_CXXFLAGS += -D_DEBUG
94 #       demo_PCSRC += drv/kdebug.c
95 else
96         demo_CFLAGS += -Os
97         demo_CXXFLAGS += -Os
98 endif
99