source: rtems/c/src/lib/libbsp/include/rtems/score/Makefile.am @ ee2319a5

4.104.114.84.95
Last change on this file since ee2319a5 was ee2319a5, checked in by Joel Sherrill <joel.sherrill@…>, on 09/24/01 at 18:19:47

2001-09-22 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Use SUBDIRS = instead of SUBDIRS += to make automake-1.5 happy.
  • include/rtems/score/Makefile.am: Use CLEANFILES = to make automake-1.5 happy.
  • bsp.am: Use PREINSTALL_FILES = to make automake-1.5 happy.
  • Property mode set to 100644
File size: 2.5 KB
Line 
1##
2##  $Id$
3##
4
5AUTOMAKE_OPTIONS = foreign 1.4
6
7include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
8
9TARGOPTS = targopts.h
10
11H_FILES = $(TARGOPTS)
12
13PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score \
14    $(H_FILES:%=$(PROJECT_INCLUDE)/rtems/score/%)
15
16$(PROJECT_INCLUDE)/rtems/score:
17        @$(mkinstalldirs) $@
18
19$(PROJECT_INCLUDE)/rtems/score/%.h: %.h
20        $(INSTALL_DATA) $< $@
21
22CLEANFILES = $(TARGOPTS)
23
24# Until RTEMS_CPU is removed from all the make configuration files,
25# this will need to be here to transform hppa1.1 into hppa1_1 to
26# make it a valid cpp symbol.  At some point in the near future,
27# targopts.h should not define RTEMS_CPU.  As best I can tell,
28# gcc cpp predefines eliminate the need for RTEMS_CPU_MODEL
29# on some families but not on others.  For example, the i386
30# family does not give us enough information from the predefines.
31RTEMS_CPU_DEFINED = $(subst .,_,$(RTEMS_CPU))
32
33# make the target dependent options file
34$(TARGOPTS): Makefile.in
35        @echo "/* target board dependent options file */"       >$@
36        @echo "/* automatically generated -- DO NOT EDIT!! */" >>$@
37        @echo                                                  >>$@
38        @echo "#ifndef __TARGET_OPTIONS_h"                     >>$@
39        @echo "#define __TARGET_OPTIONS_h"                     >>$@
40        @echo                                                  >>$@
41        @echo "#include <rtems/score/cpuopts.h>"               >>$@
42        @echo                                                  >>$@
43        @echo "#ifdef $(RTEMS_CPU_DEFINED)"                    >>$@
44        @echo "#undef $(RTEMS_CPU_DEFINED)"                    >>$@
45        @echo "#endif"                                         >>$@
46        @echo "#define $(RTEMS_CPU_DEFINED) 1"                 >>$@
47        @echo                                                  >>$@
48        @echo "#ifdef $(RTEMS_CPU_MODEL)"                      >>$@
49        @echo "#undef $(RTEMS_CPU_MODEL)"                      >>$@
50        @echo "#endif"                                         >>$@
51        @echo "#define $(RTEMS_CPU_MODEL) 1"                   >>$@
52        @echo                                                  >>$@
53        @echo "#ifdef @RTEMS_BSP@"                            >>$@
54        @echo "#undef @RTEMS_BSP@"                            >>$@
55        @echo "#endif"                                         >>$@
56        @echo "#define @RTEMS_BSP@ 1"                         >>$@
57        @echo                                                  >>$@
58        @$(make-target-options)
59        @echo                                                  >>$@
60        @echo "#endif"                                         >>$@
61
62all-local: $(PREINSTALL_FILES)
63
64include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.