OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [score/] [include/] [rtems/] [score/] [Makefile.am] - Blame information for rev 582

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.