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