forked from Imagelibrary/rtems
Merger from rtems-4-6-branch.
This commit is contained in:
2
c/src/support/.cvsignore
Normal file
2
c/src/support/.cvsignore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
Makefile
|
||||||
|
Makefile.in
|
||||||
20
c/src/support/Makefile.am
Normal file
20
c/src/support/Makefile.am
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
##
|
||||||
|
## $Id$
|
||||||
|
##
|
||||||
|
|
||||||
|
include $(top_srcdir)/../../automake/compile.am
|
||||||
|
include $(top_srcdir)/../../automake/lib.am
|
||||||
|
|
||||||
|
AM_CPPFLAGS += -DRTEMS_BSP=\"$(RTEMS_BSP)\"
|
||||||
|
|
||||||
|
C_FILES=version.c
|
||||||
|
OBJS = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT))
|
||||||
|
|
||||||
|
LIB = $(ARCH)/libsupport.a
|
||||||
|
|
||||||
|
$(LIB): $(OBJS)
|
||||||
|
$(make-library)
|
||||||
|
|
||||||
|
all-local: $(ARCH) $(LIB)
|
||||||
|
|
||||||
|
include $(top_srcdir)/../../automake/local.am
|
||||||
28
c/src/support/version.c
Normal file
28
c/src/support/version.c
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
/*
|
||||||
|
* COPYRIGHT (c) 2003, Ralf Corsepius, Ulm, Germany.
|
||||||
|
* COPYRIGHT (c) 2003, On-Line Applications Research Corporation (OAR).
|
||||||
|
*
|
||||||
|
* The license and distribution terms for this file may be
|
||||||
|
* found in the file LICENSE in this distribution or at
|
||||||
|
* http://www.OARcorp.com/rtems/license.html.
|
||||||
|
*
|
||||||
|
* $Id$
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <rtems/system.h>
|
||||||
|
|
||||||
|
#ifndef RTEMS_VERSION
|
||||||
|
#error "Missing RTEMS_VERSION"
|
||||||
|
#endif
|
||||||
|
#ifndef CPU_NAME
|
||||||
|
#error "Missing CPU_NAME"
|
||||||
|
#endif
|
||||||
|
#ifndef CPU_MODEL_NAME
|
||||||
|
#error "Missing CPU_MODEL_NAME"
|
||||||
|
#endif
|
||||||
|
#ifndef RTEMS_BSP
|
||||||
|
#error "Missing RTEMS_BSP"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
const char _RTEMS_version[] =
|
||||||
|
RTEMS_VERSION "(" CPU_NAME "/" CPU_MODEL_NAME "/" RTEMS_BSP ")";
|
||||||
Reference in New Issue
Block a user