source: rtems/contrib/crossrpms/cygwin/Makefile.am @ 4fa25687

4.104.114.84.95
Last change on this file since 4fa25687 was 4fa25687, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/16/06 at 14:05:36

Eliminate %{rpmgroup}

  • Property mode set to 100644
File size: 2.8 KB
Line 
1# $Id$
2
3TARGET = i686-pc-cygwin
4
5noinst_DATA =
6CLEANFILES =
7
8CYGWIN_VERS = 1.5.19-4
9CYGWIN_RPMREL = 0
10
11$(TARGET)-libs.spec: libs.spec.in
12        sed -e "/[@]INSTALL_POST[@]/r ../common/installpost.add" \
13          -e "/[@]INSTALL_POST[@]/d" \
14          -e "/[@]FIND_REQPROV[@]/r ../common/find-reqprov.add" \
15          -e "/[@]FIND_REQPROV[@]/d" \
16          -e "s/[@]tool_target[@]/$(TARGET)/g" \
17          -e "s/[@]CYGWIN_VERS[@]/$(CYGWIN_VERS)/g" \
18          -e "s/[@]CYGWIN_RPMREL[@]/$(CYGWIN_RPMREL)/g" \
19          $(srcdir)/libs.spec.in > $@
20CLEANFILES += $(TARGET)-libs.spec
21noinst_DATA += $(TARGET)-libs.spec
22
23
24BINUTILS_VERS = 20050610-1
25BINUTILS_RPMREL = 0.20060214.0
26
27BINUTILS_SUBPACKAGES = $(top_builddir)/common/common.add
28BINUTILS_SUBPACKAGES += ../binutils/binutils.add
29BINUTILS_SUBPACKAGES += ../binutils/rpm-install.add
30BINUTILS_SUBPACKAGES += $(top_builddir)/common/clean.add
31BINUTILS_SUBPACKAGES += ../binutils/target-binutils.add
32BINUTILS_SUBPACKAGES += ../binutils/base-binutils.add
33
34$(TARGET)-binutils.spec.in: $(BINUTILS_SUBPACKAGES) binutils-sources.add
35        cat $(BINUTILS_SUBPACKAGES) | sed \
36          -e "/[@]SOURCES[@]/r ./binutils-sources.add" \
37          -e "/[@]SOURCES[@]/d" \
38          -e '/^%define _prefix.*$$/d' \
39          -e '/^%define binutils_target.*$$/d' \
40          -e "s,[@]rpmprefix[@],,g" \
41          -e "s,rtems[@]osversion[@],rtems,g" \
42          > $(TARGET)-binutils.spec.in
43CLEANFILES += $(TARGET)-binutils.spec.in
44
45
46$(TARGET)-binutils.spec: $(TARGET)-binutils.spec.in
47        sed \
48          -e "s/[@]tool_target[@]/$(TARGET)/g" \
49          -e "s/[@]BINUTILS_VERS[@]/$(BINUTILS_VERS)/g" \
50          -e "s/[@]BINUTILS_RPMREL[@]/$(BINUTILS_RPMREL)/g" \
51          -e "s,[@]PATCH0[@],," \
52          $(srcdir)/$(TARGET)-binutils.spec.in > $@
53CLEANFILES += $(TARGET)-binutils.spec
54noinst_DATA += $(TARGET)-binutils.spec
55
56
57GCC_VERS = 3.4.4-1
58GCC_RPMREL = 0.20060213.0
59
60GCC_SUBPACKAGES = $(top_builddir)/common/common.add
61GCC_SUBPACKAGES += ../gcc/gccnewlib.add
62GCC_SUBPACKAGES += ../gcc/install.add
63GCC_SUBPACKAGES += ../gcc/rpm-install.add
64GCC_SUBPACKAGES += $(top_builddir)/common/clean.add
65GCC_SUBPACKAGES += ../gcc/target-gcc.add
66GCC_SUBPACKAGES += ../gcc/base-gcc.add
67GCC_SUBPACKAGES += ../gcc/target-c++.add
68
69$(TARGET)-gcc.spec.in: $(GCC_SUBPACKAGES) gcc-sources.add
70        cat $(GCC_SUBPACKAGES) | sed \
71          -e "/[@]SOURCES[@]/r ./gcc-sources.add" \
72          -e "/[@]SOURCES[@]/d" \
73          -e '/^%define _prefix.*$$/d' \
74          -e "s,[@]tool_target[@]-libc,@tool_target@-sys-root,g" \
75          -e "s,= %{newlib_version}-%{release},," \
76          -e "s,[@]rpmprefix[@],,g" \
77          -e "s,rtems[@]osversion[@],rtems,g" \
78          > $(TARGET)-gcc.spec.in
79CLEANFILES += $(TARGET)-gcc.spec.in
80
81$(TARGET)-gcc.spec: $(TARGET)-gcc.spec.in
82        sed \
83          -e "s/[@]tool_target[@]/$(TARGET)/g" \
84          -e "s/[@]GCC_VERS[@]/$(GCC_VERS)/g" \
85          -e "s/[@]GCC_RPMREL[@]/$(GCC_RPMREL)/g" \
86          $(srcdir)/$(TARGET)-gcc.spec.in > $@
87CLEANFILES += $(TARGET)-gcc.spec
88noinst_DATA += $(TARGET)-gcc.spec
Note: See TracBrowser for help on using the repository browser.