1 | # $Id$ |
---|
2 | |
---|
3 | # Just testing |
---|
4 | TARGET = sparc-rtems4.7 |
---|
5 | |
---|
6 | noinst_DATA = |
---|
7 | CLEANFILES = |
---|
8 | |
---|
9 | BINUTILS_VERS = 2.16.1 |
---|
10 | BINUTILS_RPMREL = 0.20060215.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) Makefile.am binutils-sources.add |
---|
20 | cat $(BINUTILS_SUBPACKAGES) | sed \ |
---|
21 | -e "/[@]SOURCES[@]/r ./binutils-sources.add" \ |
---|
22 | -e "/[@]SOURCES[@]/d" \ |
---|
23 | -e "s,[@]_prefix[@],$(prefix),g" \ |
---|
24 | -e "s,[@]rpmprefix[@],$(rpmprefix),g" \ |
---|
25 | -e "s,rtems[@]osversion[@],rtems,g" \ |
---|
26 | > $(TARGET)-binutils.spec.in |
---|
27 | CLEANFILES += $(TARGET)-binutils.spec.in |
---|
28 | |
---|
29 | |
---|
30 | $(TARGET)-binutils.spec: $(TARGET)-binutils.spec.in |
---|
31 | sed \ |
---|
32 | -e "s/[@]tool_target[@]/$(TARGET)/g" \ |
---|
33 | -e "s/[@]BINUTILS_VERS[@]/$(BINUTILS_VERS)/g" \ |
---|
34 | -e "s/[@]BINUTILS_RPMREL[@]/$(BINUTILS_RPMREL)/g" \ |
---|
35 | -e "/[@]PATCH/d" \ |
---|
36 | $(srcdir)/$(TARGET)-binutils.spec.in > $@ |
---|
37 | CLEANFILES += $(TARGET)-binutils.spec |
---|
38 | noinst_DATA += $(TARGET)-binutils.spec |
---|
39 | |
---|
40 | |
---|
41 | GCC_VERS = 4.0.2 |
---|
42 | GCC_RPMREL = 0.20060215.0 |
---|
43 | |
---|
44 | GCC_SUBPACKAGES = $(top_builddir)/common/common.add |
---|
45 | GCC_SUBPACKAGES += ../gcc/gccnewlib.add |
---|
46 | GCC_SUBPACKAGES += ../gcc/install.add |
---|
47 | GCC_SUBPACKAGES += ../gcc/rpm-install.add |
---|
48 | GCC_SUBPACKAGES += $(top_builddir)/common/clean.add |
---|
49 | GCC_SUBPACKAGES += ../gcc/target-gcc.add |
---|
50 | GCC_SUBPACKAGES += ../gcc/base-gcc.add |
---|
51 | GCC_SUBPACKAGES += ../gcc/target-c++.add |
---|
52 | GCC_SUBPACKAGES += ../gcc/base-libc.add |
---|
53 | GCC_SUBPACKAGES += ../gcc/target-libc.add |
---|
54 | |
---|
55 | $(TARGET)-gcc.spec.in: $(GCC_SUBPACKAGES) Makefile.am gcc-sources.add |
---|
56 | cat $(GCC_SUBPACKAGES) | sed \ |
---|
57 | -e "/[@]SOURCES[@]/r ./gcc-sources.add" \ |
---|
58 | -e "/[@]SOURCES[@]/d" \ |
---|
59 | -e "s,[@]_prefix[@],$(prefix),g" \ |
---|
60 | -e "s,[@]rpmprefix[@],$(rpmprefix),g" \ |
---|
61 | -e "s,rtems[@]osversion[@],rtems,g" \ |
---|
62 | -e "/^%package -n @rpmprefix@@tool_target@-gcc/d" \ |
---|
63 | -e "s/-n @rpmprefix@@tool_target@-gcc//" \ |
---|
64 | -e 's,^%define build_newlib.*$$,%define build_newlib 1,' \ |
---|
65 | > $(TARGET)-gcc.spec.in |
---|
66 | CLEANFILES += $(TARGET)-gcc.spec.in |
---|
67 | |
---|
68 | $(TARGET)-gcc.spec: $(TARGET)-gcc.spec.in |
---|
69 | sed \ |
---|
70 | -e "s/[@]tool_target[@]/$(TARGET)/g" \ |
---|
71 | -e "s/[@]GCC_VERS[@]/$(GCC_VERS)/g" \ |
---|
72 | -e "s/[@]GCC_RPMREL[@]/$(GCC_RPMREL)/g" \ |
---|
73 | -e "/[@]PATCH/d" \ |
---|
74 | $(srcdir)/$(TARGET)-gcc.spec.in > $@ |
---|
75 | CLEANFILES += $(TARGET)-gcc.spec |
---|
76 | noinst_DATA += $(TARGET)-gcc.spec |
---|