source: rtems/contrib/crossrpms/rtems4.11/gcc.am @ 7594821

4.115
Last change on this file since 7594821 was b714a34, checked in by Ralf Corsepius <ralf.corsepius@…>, on Apr 20, 2011 at 1:53:39 PM

Add gcc/base-go.add and gcc/target-go.add.

  • Property mode set to 100644
File size: 2.0 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/base-go.add
19GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-go.add
20GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-objc.add
21GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-newlib.add
22GCC_SUBPACKAGES += $(top_srcdir)/gcc/base-newlib.add
23
24$(TARGET)-gcc.spec.in: $(GCC_SUBPACKAGES) Makefile.am $(srcdir)/gcc-sources.add $(srcdir)/../gcc-prep.add $(srcdir)/../gcc.am
25        cat $(GCC_SUBPACKAGES) \
26          | sed \
27          -e "/[@]SOURCES[@]/r $(srcdir)/gcc-sources.add" \
28          -e "/[@]SOURCES[@]/d" \
29          -e "/[@]PREP[@]/r $(srcdir)/../gcc-prep.add" \
30          -e "/[@]PREP[@]/d" \
31          | sed \
32          -e "s/[@]GCC_VERS[@]/$(GCC_VERS)/g" \
33          -e "s/[@]GCC_PKGVERS[@]/$(GCC_PKGVERS)/g" \
34          -e "s/[@]GCC_RPMREL[@]/$(GCC_RPMREL)%{?dist}/g" \
35          -e "s/[@]NEWLIB_VERS[@]/$(NEWLIB_VERS)/g" \
36          -e "s/[@]NEWLIB_PKGVERS[@]/$(NEWLIB_PKGVERS)/g" \
37          -e "s/[@]NEWLIB_RPMREL[@]/$(NEWLIB_RPMREL)%{?dist}/g" \
38          -e "/--with-sysroot/d" \
39          -e "/[@]tool_target[@]-sys-root/d" \
40          -e "/[@]tool_target[@]-w32api-sys-root/d" \
41          | $(MKSPEC0) > $(TARGET)-gcc.spec.in
42CLEANFILES += $(TARGET)-gcc.spec.in
43
44@rpmprefix@$(TARGET)-gcc.spec: $(TARGET)-gcc.spec.in
45        $(MKSPEC) $(TARGET)-gcc.spec.in | $(SPECSTRIP) $(GCC_OPTS) > $@
46CLEANFILES += @rpmprefix@$(TARGET)-gcc.spec
47noinst_DATA += @rpmprefix@$(TARGET)-gcc.spec
48
49EXTRA_DIST += $(GCC_SUBPACKAGES)
Note: See TracBrowser for help on using the repository browser.