source: rtems/contrib/crossrpms/freebsd7.1/gcc.am @ 6beaac1

4.104.11
Last change on this file since 6beaac1 was 6beaac1, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 18, 2009 at 3:18:39 PM

New.

  • Property mode set to 100644
File size: 1.6 KB
Line 
1EXTRA_DIST += $(srcdir)/../gcc-prep.add
2EXTRA_DIST += $(srcdir)/gcc-sources.add
3
4GCC_OPTS =
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
19
20$(TARGET)-gcc.spec.in: $(GCC_SUBPACKAGES) Makefile.am $(srcdir)/gcc-sources.add $(srcdir)/../gcc-prep.add
21        cat $(GCC_SUBPACKAGES) | sed \
22          -e "/[@]SOURCES[@]/r $(srcdir)/gcc-sources.add" \
23          -e "/[@]SOURCES[@]/d" \
24          -e "/[@]PREP[@]/r $(srcdir)/../gcc-prep.add" \
25          -e "/[@]PREP[@]/d" \
26          -e "s/[@]GCC_VERS[@]/$(GCC_VERS)/g" \
27          -e "s/[@]GCC_PKGVERS[@]/$(GCC_PKGVERS)/g" \
28          -e "s/[@]GCC_RPMREL[@]/$(GCC_RPMREL)/g" \
29          -e "/[@]tool_target[@]-newlib/d" \
30          -e "/[@]tool_target[@]-w32api-sys-root/d" \
31          -e "/--with-newlib/d" \
32          | $(MKSPEC0) > $(TARGET)-gcc.spec.in
33CLEANFILES += $(TARGET)-gcc.spec.in
34
35@rpmprefix@$(TARGET)-gcc.spec: $(TARGET)-gcc.spec.in
36        $(MKSPEC) $(TARGET)-gcc.spec.in | $(SPECSTRIP) $(GCC_OPTS) > $@
37CLEANFILES += @rpmprefix@$(TARGET)-gcc.spec
38noinst_DATA += @rpmprefix@$(TARGET)-gcc.spec
39
40EXTRA_DIST += $(GCC_SUBPACKAGES)
Note: See TracBrowser for help on using the repository browser.