source: rtems/c/src/exec/score/include/rtems/score/Makefile.in @ 7d29dc7f

4.104.114.84.95
Last change on this file since 7d29dc7f was 7d29dc7f, checked in by Joel Sherrill <joel.sherrill@…>, on 11/10/99 at 22:13:42

Added line to make sure HAS_ITRON_API is defined in Makefile.

  • Property mode set to 100644
File size: 4.2 KB
Line 
1#
2#  $Id$
3#
4
5@SET_MAKE@
6srcdir = @srcdir@
7top_srcdir = @top_srcdir@
8top_builddir = ../../../..
9subdir = score/include/rtems/score
10
11RTEMS_ROOT = @RTEMS_ROOT@
12PROJECT_ROOT = @PROJECT_ROOT@
13
14VPATH = @srcdir@
15
16include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
17include $(RTEMS_ROOT)/make/leaf.cfg
18
19INSTALL_CHANGE = @INSTALL_CHANGE@
20mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs
21
22INSTALLDIRS = $(PROJECT_INCLUDE)/rtems/score
23
24$(INSTALLDIRS):
25        @$(mkinstalldirs) $(INSTALLDIRS)
26
27# We only build multiprocessing related files if HAS_MP was defined
28MP_H_PIECES_yes_V = mpci mppkt objectmp threadmp
29MP_H_PIECES = $(MP_H_PIECES_$(HAS_MP)_V)
30
31# H_FILES that get installed in the rtems/score subdirectoy
32H_PIECES = address apiext bitfield chain context copyrt coremsg coremutex \
33    coresem heap interr isr object priority stack states sysstate thread \
34    threadq tod tqdata userext watchdog wkspace $(MP_H_PIECES)
35H_FILES = $(H_PIECES:%=$(srcdir)/%.h)
36TARGOPTS = targopts.h
37
38SRCS = $(H_FILES) $(TARGOPTS)
39
40RTEMS_USE_NEWLIB = @RTEMS_USE_NEWLIB@
41HAS_ITRON_API = @HAS_ITRON_API@
42
43#
44# Add your list of files to delete here.  The config files
45#  already know how to delete some stuff, so you may want
46#  to just run 'make clean' first to see what gets missed.
47#  'make clobber' already includes 'make clean'
48#
49
50CLEAN_ADDITIONS += $(TARGOPTS)
51CLOBBER_ADDITIONS +=
52
53# Until RTEMS_CPU is removed from all the make configuration files,
54# this will need to be here to transform hppa1.1 into hppa1_1 to
55# make it a valid cpp symbol.  At some point in the near future,
56# targopts.h should not define RTEMS_CPU.  As best I can tell,
57# gcc cpp predefines eliminate the need for RTEMS_CPU_MODEL
58# on some families but not on others.  For example, the i386
59# family does not give us enough information from the predefines.
60RTEMS_CPU_DEFINED = $(subst .,_,$(RTEMS_CPU))
61
62# make the target dependent options file
63$(TARGOPTS):
64        @echo "/* target board dependent options file */"       >$@
65        @echo "/* automatically generated -- DO NOT EDIT!! */" >>$@
66        @echo                                                  >>$@
67        @echo "#ifndef __TARGET_OPTIONS_h"                     >>$@
68        @echo "#define __TARGET_OPTIONS_h"                     >>$@
69        @echo                                                  >>$@
70        @echo "#ifdef $(RTEMS_CPU_DEFINED)"                    >>$@
71        @echo "#undef $(RTEMS_CPU_DEFINED)"                    >>$@
72        @echo "#endif"                                         >>$@
73        @echo "#define $(RTEMS_CPU_DEFINED) 1"                 >>$@
74        @echo                                                  >>$@
75        @echo "#ifdef $(RTEMS_CPU_MODEL)"                      >>$@
76        @echo "#undef $(RTEMS_CPU_MODEL)"                      >>$@
77        @echo "#endif"                                         >>$@
78        @echo "#define $(RTEMS_CPU_MODEL) 1"                   >>$@
79        @echo                                                  >>$@
80        @echo "#ifdef @RTEMS_BSP@"                            >>$@
81        @echo "#undef @RTEMS_BSP@"                            >>$@
82        @echo "#endif"                                         >>$@
83        @echo "#define @RTEMS_BSP@ 1"                         >>$@
84        @echo                                                  >>$@
85        @$(make-target-options)
86        @if test "$(RTEMS_USE_MACROS)" = "yes"; then \
87        echo "#define USE_MACROS 1"             >>$@; \
88        else \
89        echo "#define USE_INLINES 1"            >>$@; \
90        fi
91        @if test "$(HAS_MP)" = "yes"; then \
92        echo "#define RTEMS_MULTIPROCESSING 1"  >>$@; \
93        fi
94        @if test "$(HAS_POSIX_API)" = "yes"; then \
95        echo "#define RTEMS_POSIX_API 1"        >>$@; \
96        fi
97        @if test "$(HAS_ITRON_API)" = "yes"; then \
98        echo "#define RTEMS_ITRON_API 1"        >>$@; \
99        fi
100        @if test "$(RTEMS_USE_NEWLIB)" = "yes"; then    \
101        echo "#define RTEMS_NEWLIB 1"           >>$@;   \
102        echo "#define MALLOC_PROVIDED 1"        >>$@;   \
103        fi
104        @echo                                                  >>$@
105        @echo "#endif"                                         >>$@
106
107all: preinstall
108
109preinstall: $(INSTALLDIRS) $(H_FILES) $(TARGOPTS)
110        @$(INSTALL_CHANGE) -m 644 $(H_FILES) $(PROJECT_INCLUDE)/rtems/score
111        @$(INSTALL_CHANGE) -m 644 $(TARGOPTS) $(PROJECT_INCLUDE)/rtems/score
112
113Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
114        cd $(top_builddir) \
115         && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
Note: See TracBrowser for help on using the repository browser.