1 | # $Id$ |
---|
2 | |
---|
3 | TARGET = i586-pc-freebsd6.0 |
---|
4 | |
---|
5 | include ../mkspec.am |
---|
6 | |
---|
7 | noinst_DATA = |
---|
8 | CLEANFILES = |
---|
9 | |
---|
10 | FREEBSD_VERS = 6.0 |
---|
11 | FREEBSD_RPMREL = @VERSION@ |
---|
12 | |
---|
13 | LIBS_SUBPACKAGES = $(top_builddir)/common/common.add |
---|
14 | LIBS_SUBPACKAGES += libs.add |
---|
15 | LIBS_SUBPACKAGES += ../gcc/rpm-install.add |
---|
16 | LIBS_SUBPACKAGES += $(top_builddir)/common/clean.add |
---|
17 | LIBS_SUBPACKAGES += target-libs.add |
---|
18 | |
---|
19 | $(TARGET)-libs.spec.in: $(LIBS_SUBPACKAGES) Makefile.am |
---|
20 | cat $(LIBS_SUBPACKAGES) | sed \ |
---|
21 | -e "s/[@]FREEBSD_VERS[@]/$(FREEBSD_VERS)/g" \ |
---|
22 | -e "s/[@]FREEBSD_RPMREL[@]/$(FREEBSD_RPMREL)/g" \ |
---|
23 | > $(TARGET)-libs.spec.in |
---|
24 | CLEANFILES += $(TARGET)-libs.spec.in |
---|
25 | |
---|
26 | @rpmprefix@$(TARGET)-libs.spec: $(TARGET)-libs.spec.in |
---|
27 | $(MKSPEC) $(srcdir)/$(TARGET)-libs.spec.in > $@ |
---|
28 | CLEANFILES += @rpmprefix@$(TARGET)-libs.spec |
---|
29 | noinst_DATA += @rpmprefix@$(TARGET)-libs.spec |
---|
30 | |
---|
31 | |
---|
32 | BINUTILS_VERS = 2.16.1 |
---|
33 | BINUTILS_RPMREL = @VERSION@ |
---|
34 | |
---|
35 | BINUTILS_SUBPACKAGES = $(top_builddir)/common/common.add |
---|
36 | BINUTILS_SUBPACKAGES += ../binutils/binutils.add |
---|
37 | BINUTILS_SUBPACKAGES += ../binutils/prep.add |
---|
38 | BINUTILS_SUBPACKAGES += ../binutils/build.add |
---|
39 | BINUTILS_SUBPACKAGES += ../binutils/install.add |
---|
40 | BINUTILS_SUBPACKAGES += ../binutils/rpm-install.add |
---|
41 | BINUTILS_SUBPACKAGES += $(top_builddir)/common/clean.add |
---|
42 | BINUTILS_SUBPACKAGES += ../binutils/target-binutils.add |
---|
43 | BINUTILS_SUBPACKAGES += ../binutils/base-binutils.add |
---|
44 | |
---|
45 | $(TARGET)-binutils.spec.in: $(BINUTILS_SUBPACKAGES) Makefile.am binutils-sources.add |
---|
46 | cat $(BINUTILS_SUBPACKAGES) | sed \ |
---|
47 | -e "/[@]SOURCES[@]/r ./binutils-sources.add" \ |
---|
48 | -e "/[@]SOURCES[@]/d" \ |
---|
49 | -e "s/[@]BINUTILS_VERS[@]/$(BINUTILS_VERS)/g" \ |
---|
50 | -e "s/[@]BINUTILS_RPMREL[@]/$(BINUTILS_RPMREL)/g" \ |
---|
51 | > $(TARGET)-binutils.spec.in |
---|
52 | CLEANFILES += $(TARGET)-binutils.spec.in |
---|
53 | |
---|
54 | @rpmprefix@$(TARGET)-binutils.spec: $(TARGET)-binutils.spec.in |
---|
55 | $(MKSPEC) $(srcdir)/$(TARGET)-binutils.spec.in > $@ |
---|
56 | CLEANFILES += @rpmprefix@$(TARGET)-binutils.spec |
---|
57 | noinst_DATA += @rpmprefix@$(TARGET)-binutils.spec |
---|
58 | |
---|
59 | |
---|
60 | GCC_VERS = 4.0.2 |
---|
61 | GCC_RPMREL = @VERSION@ |
---|
62 | |
---|
63 | GCC_SUBPACKAGES = $(top_builddir)/common/common.add |
---|
64 | GCC_SUBPACKAGES += ../gcc/gccnewlib.add |
---|
65 | GCC_SUBPACKAGES += ../gcc/prep.add |
---|
66 | GCC_SUBPACKAGES += ../gcc/build.add |
---|
67 | GCC_SUBPACKAGES += ../gcc/install.add |
---|
68 | GCC_SUBPACKAGES += ../gcc/rpm-install.add |
---|
69 | GCC_SUBPACKAGES += $(top_builddir)/common/clean.add |
---|
70 | GCC_SUBPACKAGES += ../gcc/target-gcc.add |
---|
71 | GCC_SUBPACKAGES += ../gcc/base-gcc.add |
---|
72 | GCC_SUBPACKAGES += ../gcc/target-c++.add |
---|
73 | |
---|
74 | $(TARGET)-gcc.spec.in: $(GCC_SUBPACKAGES) Makefile.am gcc-sources.add gcc-prep.add |
---|
75 | cat $(GCC_SUBPACKAGES) | sed \ |
---|
76 | -e "/[@]SOURCES[@]/r ./gcc-sources.add" \ |
---|
77 | -e "/[@]SOURCES[@]/d" \ |
---|
78 | -e "/[@]PREP[@]/r ./gcc-prep.add" \ |
---|
79 | -e "/[@]PREP[@]/d" \ |
---|
80 | -e "s/[@]GCC_VERS[@]/$(GCC_VERS)/g" \ |
---|
81 | -e "s/[@]GCC_RPMREL[@]/$(GCC_RPMREL)/g" \ |
---|
82 | -e "/[@]tool_target[@]-newlib/d" \ |
---|
83 | -e "/[@]tool_target[@]-w32api-sys-root/d" \ |
---|
84 | -e "/--with-newlib/d" \ |
---|
85 | -e 's,^%define build_newlib.*$$,%define build_newlib 0,' \ |
---|
86 | > $(TARGET)-gcc.spec.in |
---|
87 | CLEANFILES += $(TARGET)-gcc.spec.in |
---|
88 | |
---|
89 | @rpmprefix@$(TARGET)-gcc.spec: $(TARGET)-gcc.spec.in |
---|
90 | $(MKSPEC) $(srcdir)/$(TARGET)-gcc.spec.in > $@ |
---|
91 | CLEANFILES += @rpmprefix@$(TARGET)-gcc.spec |
---|
92 | noinst_DATA += @rpmprefix@$(TARGET)-gcc.spec |
---|