source: rtems/contrib/crossrpms/rtems4.10/gcc.am @ 01141c5

4.104.114.9
Last change on this file since 01141c5 was 01141c5, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jul 3, 2008 at 8:18:22 AM

New.

  • Property mode set to 100644
File size: 1.8 KB
Line 
1EXTRA_DIST += $(srcdir)/../gcc-prep.add
2EXTRA_DIST += $(srcdir)/gcc-sources.add
3
4GCC_OPTS = --languages=c --newlib
5
6GCC_SUBPACKAGES = $(top_srcdir)/common/common.add
7GCC_SUBPACKAGES += $(top_srcdir)/gcc/gccnewlib.add
8GCC_SUBPACKAGES += $(top_srcdir)/gcc/prep.add
9GCC_SUBPACKAGES += $(top_srcdir)/gcc/build.add
10GCC_SUBPACKAGES += $(top_srcdir)/gcc/install.add
11GCC_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
12GCC_SUBPACKAGES += $(top_srcdir)/common/clean.add
13GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-gcc.add
14GCC_SUBPACKAGES += $(top_srcdir)/gcc/base-gcc.add
15GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-c++.add
16GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-gfortran.add
17GCC_SUBPACKAGES += $(top_srcdir)/gcc/base-gfortran.add
18GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-objc.add
19GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-newlib.add
20GCC_SUBPACKAGES += $(top_srcdir)/gcc/base-newlib.add
21
22$(TARGET)-gcc.spec.in: $(GCC_SUBPACKAGES) Makefile.am $(srcdir)/gcc-sources.add $(srcdir)/../gcc-prep.add
23        cat $(GCC_SUBPACKAGES) | sed \
24          -e "/[@]SOURCES[@]/r $(srcdir)/gcc-sources.add" \
25          -e "/[@]SOURCES[@]/d" \
26          -e "/[@]PREP[@]/r $(srcdir)/../gcc-prep.add" \
27          -e "/[@]PREP[@]/d" \
28          -e "s/[@]GCC_VERS[@]/$(GCC_VERS)/g" \
29          -e "s/[@]GCC_PKGVERS[@]/$(GCC_PKGVERS)/g" \
30          -e "s/[@]GCC_RPMREL[@]/$(GCC_RPMREL)/g" \
31          -e "s/[@]NEWLIB_VERS[@]/$(NEWLIB_VERS)/g" \
32          -e "/--with-sysroot/d" \
33          -e "/[@]tool_target[@]-sys-root/d" \
34          -e "/[@]tool_target[@]-w32api-sys-root/d" \
35          | $(MKSPEC0) > $(TARGET)-gcc.spec.in
36CLEANFILES += $(TARGET)-gcc.spec.in
37
38@rpmprefix@$(TARGET)-gcc.spec: $(TARGET)-gcc.spec.in
39        $(MKSPEC) $(TARGET)-gcc.spec.in | $(SPECSTRIP) $(GCC_OPTS) > $@
40CLEANFILES += @rpmprefix@$(TARGET)-gcc.spec
41noinst_DATA += @rpmprefix@$(TARGET)-gcc.spec
42
43EXTRA_DIST += $(GCC_SUBPACKAGES)
Note: See TracBrowser for help on using the repository browser.