diff options
Diffstat (limited to 'pjsip')
-rw-r--r-- | pjsip/build/Makefile | 6 | ||||
-rw-r--r-- | pjsip/build/os-rtems.mak | 2 | ||||
-rw-r--r-- | pjsip/src/test-pjsip/main_rtems.c | 12 |
3 files changed, 19 insertions, 1 deletions
diff --git a/pjsip/build/Makefile b/pjsip/build/Makefile index 15ed0fb9..24755553 100644 --- a/pjsip/build/Makefile +++ b/pjsip/build/Makefile @@ -1,3 +1,8 @@ +# For common OSes, test's main() is defined in main.c. +# OS specific configuration may want to put it in different file. +# For example, see os-rtems.mak in current directory. +export TEST_OBJS = main.o + include ../../build/common.mak RULES_MAK := ../../build/rules.mak @@ -87,7 +92,6 @@ export TEST_OBJS += dlg_core_test.o msg_err_test.o msg_logger.o msg_test.o \ transport_test.o transport_udp_test.o \ tsx_basic_test.o tsx_bench.o tsx_uac_test.o \ tsx_uas_test.o txdata_test.o uri_test.o -export TEST_OBJS += main.o export TEST_CFLAGS += $(_CFLAGS) export TEST_LDFLAGS += $(_LDFLAGS) export TEST_EXE := ../bin/pjsip-test-$(TARGET_NAME)$(HOST_EXE) diff --git a/pjsip/build/os-rtems.mak b/pjsip/build/os-rtems.mak new file mode 100644 index 00000000..69118b41 --- /dev/null +++ b/pjsip/build/os-rtems.mak @@ -0,0 +1,2 @@ +export TEST_OBJS = main_rtems.o + diff --git a/pjsip/src/test-pjsip/main_rtems.c b/pjsip/src/test-pjsip/main_rtems.c new file mode 100644 index 00000000..a4d14e5a --- /dev/null +++ b/pjsip/src/test-pjsip/main_rtems.c @@ -0,0 +1,12 @@ + +/* + * !! OIY OIY !! + * + * The purpose of this file is only to get pjsip-test linked. I haven't + * actually tried to run pjsip-test on RTEMS!! + * + */ + +#include "../../pjlib/src/pjlib-test/main_rtems.c" + + |