1 | # $Id$ |
---|
2 | |
---|
3 | TARGET = i586-pc-freebsd6.1 |
---|
4 | |
---|
5 | include $(top_srcdir)/mkspec.am |
---|
6 | |
---|
7 | FREEBSD_VERS = 6.1 |
---|
8 | FREEBSD_RPMREL = @VERSION@ |
---|
9 | EXTRA_DIST += libs.add |
---|
10 | EXTRA_DIST += target-libs.add |
---|
11 | |
---|
12 | LIBS_SUBPACKAGES = $(top_srcdir)/common/common.add |
---|
13 | LIBS_SUBPACKAGES += $(srcdir)/libs.add |
---|
14 | LIBS_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add |
---|
15 | LIBS_SUBPACKAGES += $(top_srcdir)/common/clean.add |
---|
16 | LIBS_SUBPACKAGES += $(srcdir)/target-libs.add |
---|
17 | |
---|
18 | $(TARGET)-libs.spec.in: $(LIBS_SUBPACKAGES) Makefile.am |
---|
19 | cat $(LIBS_SUBPACKAGES) | sed \ |
---|
20 | -e "s/[@]FREEBSD_VERS[@]/$(FREEBSD_VERS)/g" \ |
---|
21 | -e "s/[@]FREEBSD_RPMREL[@]/$(FREEBSD_RPMREL)/g" \ |
---|
22 | -e "s,%{gcc_rpmvers},%{freebsd_rpmvers},g" \ |
---|
23 | > $(TARGET)-libs.spec.in |
---|
24 | CLEANFILES += $(TARGET)-libs.spec.in |
---|
25 | |
---|
26 | @rpmprefix@$(TARGET)-libs.spec: $(TARGET)-libs.spec.in |
---|
27 | $(MKSPEC) $(TARGET)-libs.spec.in | $(SPECSTRIP) > $@ |
---|
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 | EXTRA_DIST += binutils-sources.add |
---|
35 | |
---|
36 | BINUTILS_SUBPACKAGES = $(top_srcdir)/common/common.add |
---|
37 | BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/binutils.add |
---|
38 | BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/prep.add |
---|
39 | BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/build.add |
---|
40 | BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/install.add |
---|
41 | BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/rpm-install.add |
---|
42 | BINUTILS_SUBPACKAGES += $(top_srcdir)/common/clean.add |
---|
43 | BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/target-binutils.add |
---|
44 | BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/base-binutils.add |
---|
45 | |
---|
46 | $(TARGET)-binutils.spec.in: $(BINUTILS_SUBPACKAGES) Makefile.am binutils-sources.add |
---|
47 | cat $(BINUTILS_SUBPACKAGES) | sed \ |
---|
48 | -e "/[@]SOURCES[@]/r $(srcdir)/binutils-sources.add" \ |
---|
49 | -e "/[@]SOURCES[@]/d" \ |
---|
50 | -e "s/[@]BINUTILS_VERS[@]/$(BINUTILS_VERS)/g" \ |
---|
51 | -e "s/[@]BINUTILS_RPMREL[@]/$(BINUTILS_RPMREL)/g" \ |
---|
52 | > $(TARGET)-binutils.spec.in |
---|
53 | CLEANFILES += $(TARGET)-binutils.spec.in |
---|
54 | |
---|
55 | @rpmprefix@$(TARGET)-binutils.spec: $(TARGET)-binutils.spec.in |
---|
56 | $(MKSPEC) $(TARGET)-binutils.spec.in | $(SPECSTRIP) > $@ |
---|
57 | CLEANFILES += @rpmprefix@$(TARGET)-binutils.spec |
---|
58 | noinst_DATA += @rpmprefix@$(TARGET)-binutils.spec |
---|
59 | |
---|
60 | |
---|
61 | GCC_VERS = 4.1.0 |
---|
62 | GCC_RPMREL = @VERSION@ |
---|
63 | GCC_OPTS = --languages=c,cxx,f95 |
---|
64 | EXTRA_DIST += gcc-prep.add |
---|
65 | EXTRA_DIST += gcc-sources.add |
---|
66 | |
---|
67 | GCC_SUBPACKAGES = $(top_srcdir)/common/common.add |
---|
68 | GCC_SUBPACKAGES += $(top_srcdir)/gcc/gccnewlib.add |
---|
69 | GCC_SUBPACKAGES += $(top_srcdir)/gcc/prep.add |
---|
70 | GCC_SUBPACKAGES += $(top_srcdir)/gcc/build.add |
---|
71 | GCC_SUBPACKAGES += $(top_srcdir)/gcc/install.add |
---|
72 | GCC_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add |
---|
73 | GCC_SUBPACKAGES += $(top_srcdir)/common/clean.add |
---|
74 | GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-gcc.add |
---|
75 | GCC_SUBPACKAGES += $(top_srcdir)/gcc/base-gcc.add |
---|
76 | GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-c++.add |
---|
77 | GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-gfortran.add |
---|
78 | GCC_SUBPACKAGES += $(top_srcdir)/gcc/base-gfortran.add |
---|
79 | GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-objc.add |
---|
80 | |
---|
81 | $(TARGET)-gcc.spec.in: $(GCC_SUBPACKAGES) Makefile.am $(srcdir)/gcc-sources.add $(srcdir)/../gcc-prep.add |
---|
82 | cat $(GCC_SUBPACKAGES) | sed \ |
---|
83 | -e "/[@]SOURCES[@]/r $(srcdir)/gcc-sources.add" \ |
---|
84 | -e "/[@]SOURCES[@]/d" \ |
---|
85 | -e "/[@]PREP[@]/r $(srcdir)/../gcc-prep.add" \ |
---|
86 | -e "/[@]PREP[@]/d" \ |
---|
87 | -e "s/[@]GCC_VERS[@]/$(GCC_VERS)/g" \ |
---|
88 | -e "s/[@]GCC_RPMREL[@]/$(GCC_RPMREL)/g" \ |
---|
89 | -e "/[@]tool_target[@]-newlib/d" \ |
---|
90 | -e "/[@]tool_target[@]-w32api-sys-root/d" \ |
---|
91 | -e "/--with-newlib/d" \ |
---|
92 | > $(TARGET)-gcc.spec.in |
---|
93 | CLEANFILES += $(TARGET)-gcc.spec.in |
---|
94 | |
---|
95 | @rpmprefix@$(TARGET)-gcc.spec: $(TARGET)-gcc.spec.in |
---|
96 | $(MKSPEC) $(TARGET)-gcc.spec.in | $(SPECSTRIP) $(GCC_OPTS) > $@ |
---|
97 | CLEANFILES += @rpmprefix@$(TARGET)-gcc.spec |
---|
98 | noinst_DATA += @rpmprefix@$(TARGET)-gcc.spec |
---|