source: rtems/cpukit/score/include/Makefile.am @ bd9265d

4.104.114.84.95
Last change on this file since bd9265d was bd9265d, checked in by Joel Sherrill <joel.sherrill@…>, on 05/14/02 at 18:11:36

2002-05-03 Ralf Corsepius <corsepiu@…>

  • include/Makefile.am: Work-around to autoconf-2.53 adding PACKAGE_* to autoheaders - sed out *PACKAGE* from cpuopts-tmp.h.
  • Property mode set to 100644
File size: 2.3 KB
Line 
1##
2## $Id$
3##
4
5
6$(PROJECT_INCLUDE)/%: %
7        $(INSTALL_DATA) $< $@
8
9include_rtemsdir = $(includedir)/rtems
10
11$(PROJECT_INCLUDE)/rtems:
12        @$(mkinstalldirs) $@
13
14include_rtems_HEADERS = rtems/debug.h rtems/system.h rtems/seterr.h
15
16PREINSTALL_FILES = $(PROJECT_INCLUDE)/rtems \
17    $(include_rtems_HEADERS:%=$(PROJECT_INCLUDE)/%)
18
19include_rtems_scoredir = $(includedir)/rtems/score
20
21$(PROJECT_INCLUDE)/rtems/score:
22        @$(mkinstalldirs) $@
23
24# We only build multiprocessing related files if HAS_MP was defined
25MP_H_FILES = rtems/score/mpci.h rtems/score/mppkt.h rtems/score/objectmp.h \
26    rtems/score/threadmp.h
27
28# H_FILES that get installed in the rtems/score subdirectoy
29STD_H_FILES = rtems/score/address.h rtems/score/apiext.h \
30    rtems/score/bitfield.h rtems/score/chain.h rtems/score/context.h \
31    rtems/score/copyrt.h rtems/score/coremsg.h rtems/score/coremutex.h \
32    rtems/score/coresem.h rtems/score/heap.h rtems/score/interr.h \
33    rtems/score/isr.h rtems/score/object.h rtems/score/priority.h \
34    rtems/score/stack.h rtems/score/states.h rtems/score/sysstate.h \
35    rtems/score/thread.h rtems/score/threadq.h rtems/score/tod.h \
36    rtems/score/tqdata.h rtems/score/userext.h rtems/score/watchdog.h \
37    rtems/score/wkspace.h
38
39if HAS_MP
40include_rtems_score_HEADERS = $(STD_H_FILES) $(MP_H_FILES) rtems/score/cpuopts.h
41else
42include_rtems_score_HEADERS = $(STD_H_FILES) rtems/score/cpuopts.h
43endif
44
45PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score \
46    $(include_rtems_score_HEADERS:%=$(PROJECT_INCLUDE)/%)
47
48# make the cpu dependent options file
49# FIXME: We are exporting a config-header here, which is a bad idea in
50# general
51rtems/score/cpuopts.h: rtems/score/cpuopts-tmp.h
52        @echo "/* target cpu dependent options file */"        >$@
53        @echo "/* automatically generated -- DO NOT EDIT!! */" >>$@
54        @echo                                                  >>$@
55        @echo "#ifndef __CPU_OPTIONS_h"                        >>$@
56        @echo "#define __CPU_OPTIONS_h"                        >>$@
57        @echo                                                  >>$@
58        @cat rtems/score/cpuopts-tmp.h | sed -e '/.*PACKAGE.*/d' >>$@
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.