From 08d0de3ade0e6866aa3c09ffcc028d25233fe179 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Fri, 14 Jul 2006 15:20:00 +0000 Subject: Attempt to get some applications linked for RTEMS target, just to get the footprint calculation working git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@604 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip-apps/src/samples/footprint.c | 11 ++++++++++- pjsip-apps/src/samples/main_rtems.c | 12 ++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 pjsip-apps/src/samples/main_rtems.c (limited to 'pjsip-apps/src/samples') diff --git a/pjsip-apps/src/samples/footprint.c b/pjsip-apps/src/samples/footprint.c index 06142f67..7f631a79 100644 --- a/pjsip-apps/src/samples/footprint.c +++ b/pjsip-apps/src/samples/footprint.c @@ -529,8 +529,17 @@ int dummy_function() } -int main() +int test_main() { return dummy_function(); } +#if defined(PJ_RTEMS) && PJ_RTEMS!=0 +# include "../../pjlib/src/pjlib-test/main_rtems.c" +#else +int main() +{ + return test_main(); +} +#endif + diff --git a/pjsip-apps/src/samples/main_rtems.c b/pjsip-apps/src/samples/main_rtems.c new file mode 100644 index 00000000..d26605ac --- /dev/null +++ b/pjsip-apps/src/samples/main_rtems.c @@ -0,0 +1,12 @@ + +/* + * !! OIY OIY !! + * + * The purpose of this file is only to get the executable linked. I haven't + * actually tried to run this on RTEMS!! + * + */ + +#include "../../pjlib/src/pjlib-test/main_rtems.c" + + -- cgit v1.2.3