source: rtems/contrib/crossrpms/cygwin/Makefile.am @ e7fd334b

4.104.114.84.95
Last change on this file since e7fd334b was e7fd334b, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/17/06 at 03:10:28

Propagate $prefix as %_prefix

  • 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 "s,[@]_prefix[@],$(prefix),g" \
39          -e "s,[@]rpmprefix[@],$(rpmprefix),g" \
40          -e "s,rtems[@]osversion[@],rtems,g" \
41          > $(TARGET)-binutils.spec.in
42CLEANFILES += $(TARGET)-binutils.spec.in
43
44
45$(TARGET)-binutils.spec: $(TARGET)-binutils.spec.in
46        sed \
47          -e "s/[@]tool_target[@]/$(TARGET)/g" \
48          -e "s/[@]BINUTILS_VERS[@]/$(BINUTILS_VERS)/g" \
49          -e "s/[@]BINUTILS_RPMREL[@]/$(BINUTILS_RPMREL)/g" \
50          -e "/[@]PATCH/d" \
51          $(srcdir)/$(TARGET)-binutils.spec.in > $@
52CLEANFILES += $(TARGET)-binutils.spec
53noinst_DATA += $(TARGET)-binutils.spec
54
55
56GCC_VERS = 3.4.4-1
57GCC_RPMREL = 0.20060213.0
58
59GCC_SUBPACKAGES = $(top_builddir)/common/common.add
60GCC_SUBPACKAGES += ../gcc/gccnewlib.add
61GCC_SUBPACKAGES += ../gcc/install.add
62GCC_SUBPACKAGES += ../gcc/rpm-install.add
63GCC_SUBPACKAGES += $(top_builddir)/common/clean.add
64GCC_SUBPACKAGES += ../gcc/target-gcc.add
65GCC_SUBPACKAGES += ../gcc/base-gcc.add
66GCC_SUBPACKAGES += ../gcc/target-c++.add
67
68$(TARGET)-gcc.spec.in: $(GCC_SUBPACKAGES) gcc-sources.add
69        cat $(GCC_SUBPACKAGES) | sed \
70          -e "/[@]SOURCES[@]/r ./gcc-sources.add" \
71          -e "/[@]SOURCES[@]/d" \
72          -e "s,[@]_prefix[@],$(prefix),g" \
73          -e "s,[@]tool_target[@]-libc,@tool_target@-sys-root,g" \
74          -e "s,[=<][ ]*%{newlib_version}-%{release},," \
75          -e "s,[@]rpmprefix[@],$(rpmprefix),g" \
76          -e "s,rtems[@]osversion[@],rtems,g" \
77          > $(TARGET)-gcc.spec.in
78CLEANFILES += $(TARGET)-gcc.spec.in
79
80$(TARGET)-gcc.spec: $(TARGET)-gcc.spec.in
81        sed \
82          -e "s/[@]tool_target[@]/$(TARGET)/g" \
83          -e "s/[@]GCC_VERS[@]/$(GCC_VERS)/g" \
84          -e "s/[@]GCC_RPMREL[@]/$(GCC_RPMREL)/g" \
85          -e "/[@]PATCH/d" \
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.