source: rtems/c/src/exec/score/include/rtems/score/Makefile.in @ 9572c41

4.104.114.84.95
Last change on this file since 9572c41 was c9b07e92, checked in by Joel Sherrill <joel.sherrill@…>, on 03/24/99 at 22:49:17

Automake II patch from Ralf Corsepius <corsepiu@…>:

With my most recent automake patch (automake II) we could even simplify more
files below make/, because the host-compiler related parts of those files
aren't used anymore :-.

Whatsoever, the patch below should fix this problem.

Note: This is a mere bug fix, it doesn't move any of the variables involved
to target.cfg nor does it try to eliminate any variable.

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