diff options
Diffstat (limited to '')
-rw-r--r-- | c/src/exec/sapi/include/rtems/Makefile.in | 39 | ||||
-rw-r--r-- | c/src/exec/sapi/include/rtems/sptables.h.in (renamed from c/src/exec/sapi/include/rtems/sptables.h) | 4 |
2 files changed, 24 insertions, 19 deletions
diff --git a/c/src/exec/sapi/include/rtems/Makefile.in b/c/src/exec/sapi/include/rtems/Makefile.in index 710ab6321c..625fc5002e 100644 --- a/c/src/exec/sapi/include/rtems/Makefile.in +++ b/c/src/exec/sapi/include/rtems/Makefile.in @@ -5,24 +5,30 @@ @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ -top_builddir = ../../../../../.. -subdir = c/src/exec/sapi/include/rtems +top_builddir = ../../.. +subdir = sapi/include/rtems -INSTALL = @INSTALL@ - -RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@ +RTEMS_ROOT = @RTEMS_ROOT@ PROJECT_ROOT = @PROJECT_ROOT@ VPATH = @srcdir@ -H_PIECES= config directives extension fatal init io mptables -H_FILES=$(H_PIECES:%=$(srcdir)/%.h) +H_PIECES = config directives extension fatal init io mptables +H_FILES = $(H_PIECES:%=$(srcdir)/%.h) sptables.h -SRCS=$(H_FILES) +SRCS = $(H_FILES) -include $(RTEMS_ROOT)/make/custom/${RTEMS_BSP}.cfg +include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg include $(RTEMS_ROOT)/make/leaf.cfg +INSTALL_CHANGE = @INSTALL_CHANGE@ +mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs + +INSTALLDIRS = $(PROJECT_INCLUDE)/rtems + +$(INSTALLDIRS): + @$(mkinstalldirs) $(INSTALLDIRS) + # # Add your list of files to delete here. The config files # already know how to delete some stuff, so you may want @@ -33,16 +39,15 @@ include $(RTEMS_ROOT)/make/leaf.cfg CLEAN_ADDITIONS += CLOBBER_ADDITIONS += -all: $(SRCS) $(ARCH) $(PROJECT_INCLUDE)/rtems/sptables.h - $(INSTALL_CHANGE) -m 444 ${H_FILES} $(PROJECT_INCLUDE)/rtems/ +all: preinstall -$(PROJECT_INCLUDE)/rtems/sptables.h: $(ARCH)/sptables.h-tmp - $(INSTALL_CHANGE) -m 444 $(ARCH)/sptables.h-tmp $@ +preinstall: $(INSTALLDIRS) $(H_FILES) + $(INSTALL_CHANGE) -m 644 $(H_FILES) $(PROJECT_INCLUDE)/rtems -$(ARCH)/sptables.h-tmp: $(srcdir)/sptables.h - $(SED) -e 's?REPLACE_THIS_WITH_THE_BSP?${RTEMS_BSP}?' \ - < $< >$(ARCH)/sptables.h-tmp +sptables.h: $(srcdir)/sptables.h.in $(top_builddir)/config.status + cd $(top_builddir) \ + && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status +Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status diff --git a/c/src/exec/sapi/include/rtems/sptables.h b/c/src/exec/sapi/include/rtems/sptables.h.in index 74838f46e0..737095a7de 100644 --- a/c/src/exec/sapi/include/rtems/sptables.h +++ b/c/src/exec/sapi/include/rtems/sptables.h.in @@ -63,11 +63,11 @@ const rtems_multiprocessing_table * This is the version string. */ -#define RTEMS_VERSION "rtems-19990709" +#define RTEMS_VERSION "rtems-@RTEMS_VERSION@" const char _RTEMS_version[] = "RTEMS RELEASE " RTEMS_VERSION - "(" CPU_NAME "/" CPU_MODEL_NAME "/REPLACE_THIS_WITH_THE_BSP)"; + "(" CPU_NAME "/" CPU_MODEL_NAME "/@RTEMS_BSP@)"; #ifdef __cplusplus } |