From f5ad98d91dc7e83a1b4797dec2458676441f4daf Mon Sep 17 00:00:00 2001 From: asterix Date: Tue, 27 May 2008 15:55:55 +0000 Subject: [PATCH] Fix demo app to compiling with new version of bertos. Clean up. Reformat. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1392 38d2e660-2303-0410-9eaa-f027e97ec537 --- app/demo/demo.c | 7 ++++++- app/demo/demo.mk | 10 +++++----- app/demo/verstag.h | 15 ++++++++------- 3 files changed, 19 insertions(+), 13 deletions(-) diff --git a/app/demo/demo.c b/app/demo/demo.c index c13fdf78..bec5f977 100644 --- a/app/demo/demo.c +++ b/app/demo/demo.c @@ -37,20 +37,25 @@ * \brief Windowing system test. */ +#include + #include + #include #include + #include #include #include #include + #include #include #include #include + #include #include -#include /** * Draw a pentacle in the provided bitmap. diff --git a/app/demo/demo.mk b/app/demo/demo.mk index 6b78790d..f9dbd818 100644 --- a/app/demo/demo.mk +++ b/app/demo/demo.mk @@ -51,27 +51,27 @@ demo_CSRC = \ bertos/mware/resource.c \ bertos/mware/sprintf.c \ bertos/kern/proc.c \ + bertos/kern/proc_test.c \ bertos/kern/sem.c \ bertos/kern/signal.c \ bertos/kern/monitor.c \ - bertos/kern/proc_test.c \ bertos/verstag.c demo_CPPASRC = \ - bertos/kern/switch.S + bertos/emul/switch.S # FIXME: maybe this junk should go in emul/emul.mk? $(OBJDIR)/demo/bertos/emul/emulwin.o: bertos/emul/emulwin_moc.cpp $(OBJDIR)/demo/bertos/drv/lcd_gfx_qt.o: bertos/drv/lcd_gfx_qt_moc.cpp -$(OBJDIR)/demo/bertos/drv/timer.o: bertos/drv/timer_qt_moc.cpp +$(OBJDIR)/demo/bertos/drv/timer.o: bertos/emul/timer_qt_moc.cpp $(OBJDIR)/demo/bertos/emul/emulkbd.o: bertos/emul/emulkbd_moc.cpp #FIXME: isn't there a way to avoid repeating the pattern rule? -bertos/drv/timer_qt_moc.cpp: bertos/emul/timer_qt.c +bertos/emul/timer_qt_moc.cpp: bertos/emul/timer_qt.c $(QT_MOC) -o $@ $< -demo_CFLAGS = -D_QT=4 -D'ARCH=ARCH_EMUL' -Iapp/demo $(EMUL_CFLAGS) +demo_CFLAGS = -D_QT=4 -D'ARCH=ARCH_EMUL' -Iapp/demo -Ibertos/emul $(EMUL_CFLAGS) demo_CXXFLAGS = -D_QT=4 -D'ARCH=ARCH_EMUL' -Iapp/demo $(EMUL_CFLAGS) demo_LDFLAGS = $(EMUL_LDFLAGS) diff --git a/app/demo/verstag.h b/app/demo/verstag.h index 3a20c6fe..4679d772 100644 --- a/app/demo/verstag.h +++ b/app/demo/verstag.h @@ -37,15 +37,16 @@ * * \brief Declare application version strings */ -#ifndef DEVLIB_VERSTAG_H -#define DEVLIB_VERSTAG_H -#ifndef ARCH_CONFIG_H - #include "cfg/arch_config.h" +#ifndef BERTOS_VERSTAG_H +#define BERTOS_VERSTAG_H + +#ifndef CFG_ARCH_CONFIG_H + #include "cfg/cfg_arch.h" #endif -#define APP_NAME "Devlib Demo" -#define APP_DESCRIPTION "DevLib Multidemo Application" +#define APP_NAME "BeRTOS Demo" +#define APP_DESCRIPTION "BeRTOS Multidemo Application" #define APP_AUTHOR "Develer" #define APP_COPYRIGHT "Copyright 2006 Develer (http://www.develer.com/)" @@ -91,4 +92,4 @@ extern const int vers_build_nr; /** Hostname of the machine used to build this binary (contains VERS_HOST) */ extern const char vers_host[]; -#endif /* DEVLIB_VERSTAG_H */ +#endif /* BERTOS_VERSTAG_H */ -- 2.25.1