.PHONY: test
# Platform name as preprocessor symbol
-export PLATFORM=rtems
+export PLATFORM=RTEMS
# Platform name as used in file names
- export PLATFORM_FN=RTEMS
+ export PLATFORM_FN=rtems
# Create symbolic links to headers instead of copying them. Useful
# during development.
int
forb_signal_server_ready();
-#ifdef rtems
+ /**
+ * \def FORB_MAIN(id, orb, argc, argv)
+ *
+ * Introduce the definition of the main forb function i.e. the
+ * function which is called upon loading the FORB "component".
+ *
+ * @param id "C" identifier of the function. On some platforms, it is
+ * used to distinguish multiple FORB_MAIN functions from each other. *
+ *
+ * Example usage: FORB_MAIN(frm_dummy, forb_orb orb, int argc, char *argv[])
+ */
++#ifdef RTEMS
+ #define FORB_MAIN(id, orb, argc, argv) int forb_main_ ## id(orb, argc, argv)
+ #else
+ #define FORB_MAIN(id, orb, argc, argv) int forb_main(orb, argc, argv)
+ #endif
+
#ifdef __cplusplus
} /* extern "C"*/
#endif