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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [lib/] [libbsp/] [include/] [rtems/] [score/] [Makefile.am] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
##
2
##  Makefile.am,v 1.4 2002/03/28 00:43:09 joel Exp
3
##
4
 
5
 
6
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
7
 
8
TARGOPTS = targopts.h
9
 
10
H_FILES = $(TARGOPTS)
11
 
12
PREINSTALL_FILES = $(PROJECT_INCLUDE)/rtems/score \
13
    $(H_FILES:%=$(PROJECT_INCLUDE)/rtems/score/%)
14
 
15
$(PROJECT_INCLUDE)/rtems/score:
16
        @$(mkinstalldirs) $@
17
 
18
$(PROJECT_INCLUDE)/rtems/score/%.h: %.h
19
        $(INSTALL_DATA) $< $@
20
 
21
CLEANFILES = $(TARGOPTS)
22
 
23
# Until RTEMS_CPU is removed from all the make configuration files,
24
# this will need to be here to transform hppa1.1 into hppa1_1 to
25
# make it a valid cpp symbol.  At some point in the near future,
26
# targopts.h should not define RTEMS_CPU.  As best I can tell,
27
# gcc cpp predefines eliminate the need for RTEMS_CPU_MODEL
28
# on some families but not on others.  For example, the i386
29
# family does not give us enough information from the predefines.
30
RTEMS_CPU_DEFINED = $(subst .,_,$(RTEMS_CPU))
31
 
32
# make the target dependent options file
33
$(TARGOPTS): Makefile.in
34
        @echo "/* target board dependent options file */"       >$@
35
        @echo "/* automatically generated -- DO NOT EDIT!! */" >>$@
36
        @echo                                                  >>$@
37
        @echo "#ifndef __TARGET_OPTIONS_h"                     >>$@
38
        @echo "#define __TARGET_OPTIONS_h"                     >>$@
39
        @echo                                                  >>$@
40
        @echo "#include "               >>$@
41
        @echo                                                  >>$@
42
        @echo "#ifdef $(RTEMS_CPU_DEFINED)"                    >>$@
43
        @echo "#undef $(RTEMS_CPU_DEFINED)"                    >>$@
44
        @echo "#endif"                                         >>$@
45
        @echo "#define $(RTEMS_CPU_DEFINED) 1"                 >>$@
46
        @echo                                                  >>$@
47
        @echo "#ifdef $(RTEMS_CPU_MODEL)"                      >>$@
48
        @echo "#undef $(RTEMS_CPU_MODEL)"                      >>$@
49
        @echo "#endif"                                         >>$@
50
        @echo "#define $(RTEMS_CPU_MODEL) 1"                   >>$@
51
        @echo                                                  >>$@
52
        @echo "#ifdef @RTEMS_BSP@"                            >>$@
53
        @echo "#undef @RTEMS_BSP@"                            >>$@
54
        @echo "#endif"                                         >>$@
55
        @echo "#define @RTEMS_BSP@ 1"                         >>$@
56
        @echo                                                  >>$@
57
        @$(make-target-options)
58
        @echo                                                  >>$@
59
        @echo "#endif"                                         >>$@
60
 
61
all-local: $(PREINSTALL_FILES)
62
 
63
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.