Changeset 48588ab in rtems


Ignore:
Timestamp:
Mar 7, 2011, 4:05:18 AM (9 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, master
Children:
babaede
Parents:
cc66929
Message:

2011-03-07 Ralf Corsépius <ralf.corsepius@…>

  • Makefile.am, configure.ac: Move file generation into Makefile.
Location:
c/src/make
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/make/ChangeLog

    rcc66929 r48588ab  
     12011-03-07      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * Makefile.am, configure.ac: Move file generation into Makefile.
     4
    152011-03-07      Ralf Corsépius <ralf.corsepius@rtems.org>
    26
  • c/src/make/Makefile.am

    rcc66929 r48588ab  
    44
    55ACLOCAL_AMFLAGS = -I aclocal -I ../aclocal
     6
     7CLEANFILES =
    68
    79rtems_makedir = $(pkgdatadir)/make
     
    2830endif
    2931
     32bsp.cfg: bsp.cfg.in Makefile
     33        sed \
     34        -e "s,[@]HAS_MP[@],$(HAS_MP)," \
     35        -e "s,[@]HAS_POSIX_API[@],$(HAS_POSIX_API)," \
     36        -e "s,[@]HAS_CPLUSPLUS[@],$(HAS_CPLUSPLUS)," \
     37        -e "s,[@]HAS_NETWORKING[@],$(HAS_NETWORKING),"  \
     38        < $(srcdir)/bsp.cfg.in > bsp.cfg
     39CLEANFILES += bsp.cfg
     40
     41target.cfg: target.cfg.in Makefile
     42        sed \
     43        -e "s,[@]CPPFLAGS[@],$(CPPFLAGS),"  \
     44        -e "s,[@]CFLAGS[@],$(CFLAGS),"  \
     45        -e "s,[@]LIBS[@],$(LIBS),"  \
     46        -e "s,[@]CC[@],$(CC),"  \
     47        -e "s,[@]CXX[@],$(CXX),"  \
     48        -e "s,[@]AS[@],$(AS),"  \
     49        -e "s,[@]AR[@],$(AR),"  \
     50        -e "s,[@]NM[@],$(NM),"  \
     51        -e "s,[@]LD[@],$(LD),"  \
     52        -e "s,[@]SIZE[@],$(SIZE),"  \
     53        -e "s,[@]STRIP[@],$(STRIP)," \
     54        -e "s,[@]RANLIB[@],$(RANLIB),"  \
     55        -e "s,[@]OBJCOPY[@],$(OBJCOPY),"  \
     56        -e "s,[@]RTEMS_CPU[@],$(RTEMS_CPU),"  \
     57        -e "s,[@]RTEMS_HAS_MULTIPROCESSING[@],$(HAS_MP)," \
     58        -e "s,[@]RTEMS_HAS_POSIX_API[@],$(HAS_POSIX_API)," \
     59        -e "s,[@]RTEMS_HAS_CPLUSPLUS[@],$(HAS_CPLUSPLUS)," \
     60        -e "s,[@]RTEMS_HAS_NETWORKING[@],$(HAS_NETWORKING),"  \
     61        < $(srcdir)/target.cfg.in > target.cfg
     62CLEANFILES += target.cfg
     63
     64host.cfg: host.cfg.in Makefile
     65        sed \
     66        -e "s,[@]CP[@],$(CP)," \
     67        -e "s,[@]MV[@],$(MV)," \
     68        -e "s,[@]LN[@],$(LN),"  \
     69        -e "s,[@]SHELL[@],$(SHELL),"  \
     70        -e "s,[@]KSH[@],$(KSH),"  \
     71        < $(srcdir)/host.cfg.in > host.cfg
     72CLEANFILES += host.cfg
     73
     74Makefile.inc: Makefile.inc.in Makefile
     75        sed \
     76        -e "s,[@]prefix[@],$(prefix)," \
     77        -e "s,[@]exec_prefix[@],$(exec_prefix)," \
     78        -e "s,[@]pkgdatadir[@],$(pkgdatadir),"  \
     79        -e "s,[@]RTEMS_BSP[@],$(RTEMS_BSP),"  \
     80        -e "s,[@]CC[@],$(CC),"  \
     81        -e "s,[@]CXX[@],$(CXX),"  \
     82        -e "s,[@]AS[@],$(AS),"  \
     83        -e "s,[@]AR[@],$(AR),"  \
     84        -e "s,[@]NM[@],$(NM),"  \
     85        -e "s,[@]LD[@],$(LD),"  \
     86        -e "s,[@]SIZE[@],$(SIZE),"  \
     87        -e "s,[@]OBJCOPY[@],$(OBJCOPY),"  \
     88        -e "s,[@]RTEMS_HAS_POSIX_API[@],$(HAS_POSIX_API)," \
     89        -e "s,[@]RTEMS_HAS_CPLUSPLUS[@],$(HAS_CPLUSPLUS)," \
     90        < $(srcdir)/Makefile.inc.in > Makefile.inc
     91CLEANFILES += Makefile.inc
     92
    3093## At the moment all actively supported configurations
    3194## use gcc-target-default.cfg only.
  • c/src/make/configure.ac

    rcc66929 r48588ab  
    7979# Explicitly list all Makefiles here
    8080AC_CONFIG_FILES([Makefile
    81 Makefile.inc
    82 host.cfg
    83 bsp.cfg
    8481])
    85 AC_CONFIG_FILES([target.cfg])
    8682AC_OUTPUT
Note: See TracChangeset for help on using the changeset viewer.