1 | # $Id$ |
---|
2 | |
---|
3 | TARGET = i686-pc-mingw32 |
---|
4 | |
---|
5 | noinst_DATA = |
---|
6 | CLEANFILES = |
---|
7 | |
---|
8 | |
---|
9 | BINUTILS_VERS = 2.16.91-20060119-1 |
---|
10 | BINUTILS_RPMREL = 0.20060214.0 |
---|
11 | |
---|
12 | BINUTILS_SUBPACKAGES = $(top_builddir)/common/common.add |
---|
13 | BINUTILS_SUBPACKAGES += ../binutils/binutils.add |
---|
14 | BINUTILS_SUBPACKAGES += ../binutils/rpm-install.add |
---|
15 | BINUTILS_SUBPACKAGES += $(top_builddir)/common/clean.add |
---|
16 | BINUTILS_SUBPACKAGES += ../binutils/target-binutils.add |
---|
17 | BINUTILS_SUBPACKAGES += ../binutils/base-binutils.add |
---|
18 | |
---|
19 | $(TARGET)-binutils.spec.in: $(BINUTILS_SUBPACKAGES) |
---|
20 | cat $^ | sed \ |
---|
21 | -e "/[@]SOURCES[@]/r ./binutils-sources.add" \ |
---|
22 | -e "/[@]SOURCES[@]/d" \ |
---|
23 | -e '/^%define _prefix.*$$/d' \ |
---|
24 | -e '/^%define rpmgroup.*$$/d' \ |
---|
25 | -e '/^%define binutils_target.*$$/d' \ |
---|
26 | -e "s,[@]rpmprefix[@],,g" \ |
---|
27 | -e "s,rtems[@]osversion[@],rtems,g" \ |
---|
28 | -e "s,%{rpmgroup},Development/Tools,g" \ |
---|
29 | > $(TARGET)-binutils.spec.in |
---|
30 | CLEANFILES += $(TARGET)-binutils.spec.in |
---|
31 | |
---|
32 | |
---|
33 | $(TARGET)-binutils.spec: $(TARGET)-binutils.spec.in |
---|
34 | sed \ |
---|
35 | -e "s/[@]tool_target[@]/$(TARGET)/g" \ |
---|
36 | -e "s/[@]BINUTILS_VERS[@]/$(BINUTILS_VERS)/g" \ |
---|
37 | -e "s/[@]BINUTILS_RPMREL[@]/$(BINUTILS_RPMREL)/g" \ |
---|
38 | -e "s,[@]PATCH0[@],," \ |
---|
39 | $(srcdir)/$(TARGET)-binutils.spec.in > $@ |
---|
40 | CLEANFILES += $(TARGET)-binutils.spec |
---|
41 | noinst_DATA += $(TARGET)-binutils.spec |
---|