source: rtems/c/src/exec/score/include/rtems/score/Makefile.am @ 9ba1f0a

4.104.114.84.95
Last change on this file since 9ba1f0a was 9ba1f0a, checked in by Joel Sherrill <joel.sherrill@…>, on 12/21/99 at 15:04:48

Patch rtems-rc-19991203-9.diff from Ralf Corsepius <corsepiu@…>
which ontains all what was left over from the other patches (Primarily
minor configuration cleanups).

To apply:

patch -p1 < rtems-rc-19991203-9.diff
./bootstrap

  • Property mode set to 100644
File size: 3.5 KB
RevLine 
[fba12eb6]1##
2##  $Id$
3##
[254b4450]4
[fba12eb6]5AUTOMAKE_OPTIONS = foreign 1.4
[d8ff793]6
[1896a650]7include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
8include $(RTEMS_ROOT)/make/leaf.cfg
9
[97e2729d]10# We only build multiprocessing related files if HAS_MP was defined
[fba12eb6]11MP_H_FILES = mpci.h mppkt.h objectmp.h threadmp.h
[97e2729d]12
[254b4450]13# H_FILES that get installed in the rtems/score subdirectoy
[fba12eb6]14STD_H_FILES = address.h apiext.h bitfield.h chain.h context.h copyrt.h coremsg.h \
15    coremutex.h coresem.h heap.h interr.h isr.h object.h priority.h stack.h \
16    states.h sysstate.h thread.h threadq.h tod.h tqdata.h userext.h \
17    watchdog.h wkspace.h
[6693a68]18TARGOPTS = targopts.h
[254b4450]19
[fba12eb6]20if HAS_MP
21H_FILES = $(STD_H_FILES) $(TARGOPTS) $(MP_H_FILES)
22else
23H_FILES = $(STD_H_FILES) $(TARGOPTS)
24endif
25
26PREINSTALL_FILES = \
27$(PROJECT_INCLUDE)/rtems/score \
28$(H_FILES:%=$(PROJECT_INCLUDE)/rtems/score/%)
29
30$(PROJECT_INCLUDE)/rtems/score:
31        @$(mkinstalldirs) $@
[dfe7746e]32
[fba12eb6]33$(PROJECT_INCLUDE)/rtems/score/%.h: %.h
34        $(INSTALL_DATA) $< $@
[254b4450]35
[fba12eb6]36CLEANFILES += $(TARGOPTS)
[254b4450]37
[e4071cf]38# Until RTEMS_CPU is removed from all the make configuration files,
39# this will need to be here to transform hppa1.1 into hppa1_1 to
40# make it a valid cpp symbol.  At some point in the near future,
41# targopts.h should not define RTEMS_CPU.  As best I can tell,
42# gcc cpp predefines eliminate the need for RTEMS_CPU_MODEL
43# on some families but not on others.  For example, the i386
44# family does not give us enough information from the predefines.
[6693a68]45RTEMS_CPU_DEFINED = $(subst .,_,$(RTEMS_CPU))
[e4071cf]46
47# make the target dependent options file
[6693a68]48$(TARGOPTS):
[e4071cf]49        @echo "/* target board dependent options file */"       >$@
50        @echo "/* automatically generated -- DO NOT EDIT!! */" >>$@
51        @echo                                                  >>$@
52        @echo "#ifndef __TARGET_OPTIONS_h"                     >>$@
53        @echo "#define __TARGET_OPTIONS_h"                     >>$@
54        @echo                                                  >>$@
55        @echo "#ifdef $(RTEMS_CPU_DEFINED)"                    >>$@
56        @echo "#undef $(RTEMS_CPU_DEFINED)"                    >>$@
57        @echo "#endif"                                         >>$@
58        @echo "#define $(RTEMS_CPU_DEFINED) 1"                 >>$@
59        @echo                                                  >>$@
60        @echo "#ifdef $(RTEMS_CPU_MODEL)"                      >>$@
61        @echo "#undef $(RTEMS_CPU_MODEL)"                      >>$@
62        @echo "#endif"                                         >>$@
63        @echo "#define $(RTEMS_CPU_MODEL) 1"                   >>$@
64        @echo                                                  >>$@
[6693a68]65        @echo "#ifdef @RTEMS_BSP@"                            >>$@
66        @echo "#undef @RTEMS_BSP@"                            >>$@
[e4071cf]67        @echo "#endif"                                         >>$@
[6693a68]68        @echo "#define @RTEMS_BSP@ 1"                         >>$@
[e4071cf]69        @echo                                                  >>$@
70        @$(make-target-options)
[6693a68]71        @if test "$(RTEMS_USE_MACROS)" = "yes"; then \
72        echo "#define USE_MACROS 1"             >>$@; \
73        else \
74        echo "#define USE_INLINES 1"            >>$@; \
75        fi
[29e68b75]76        @if test "$(HAS_MP)" = "yes"; then \
[6693a68]77        echo "#define RTEMS_MULTIPROCESSING 1"  >>$@; \
78        fi
79        @if test "$(HAS_POSIX_API)" = "yes"; then \
80        echo "#define RTEMS_POSIX_API 1"        >>$@; \
81        fi
[eb02f47]82        @if test "$(HAS_ITRON_API)" = "yes"; then \
[352c9b2]83        echo "#define RTEMS_ITRON_API 1"        >>$@; \
84        fi
[6693a68]85        @if test "$(RTEMS_USE_NEWLIB)" = "yes"; then    \
86        echo "#define RTEMS_NEWLIB 1"           >>$@;   \
87        echo "#define MALLOC_PROVIDED 1"        >>$@;   \
88        fi
[e4071cf]89        @echo                                                  >>$@
90        @echo "#endif"                                         >>$@
91
[fba12eb6]92all: $(PREINSTALL_FILES)
[6693a68]93
[fba12eb6]94EXTRA_DIST = $(STD_H_FILES) $(MP_H_FILES)
[d8ff793]95
[fba12eb6]96include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.