source: rtems/contrib/crossrpms/freebsd6.0/Makefile.am @ 102c876

4.104.114.84.95
Last change on this file since 102c876 was 102c876, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/24/06 at 15:24:03

Add gcc-prep.add

  • Property mode set to 100644
File size: 3.1 KB
Line 
1# $Id$
2
3TARGET = i586-pc-freebsd6.0
4
5include ../mkspec.am
6
7noinst_DATA =
8CLEANFILES =
9
10FREEBSD_VERS = 6.0
11FREEBSD_RPMREL = @VERSION@
12
13LIBS_SUBPACKAGES = $(top_builddir)/common/common.add
14LIBS_SUBPACKAGES += libs.add
15LIBS_SUBPACKAGES += ../gcc/rpm-install.add
16LIBS_SUBPACKAGES += $(top_builddir)/common/clean.add
17LIBS_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
24CLEANFILES += $(TARGET)-libs.spec.in
25                             
26@rpmprefix@$(TARGET)-libs.spec: $(TARGET)-libs.spec.in
27        $(MKSPEC) $(srcdir)/$(TARGET)-libs.spec.in > $@
28CLEANFILES += @rpmprefix@$(TARGET)-libs.spec
29noinst_DATA += @rpmprefix@$(TARGET)-libs.spec
30
31
32BINUTILS_VERS = 2.16.1
33BINUTILS_RPMREL = @VERSION@
34
35BINUTILS_SUBPACKAGES = $(top_builddir)/common/common.add
36BINUTILS_SUBPACKAGES += ../binutils/binutils.add
37BINUTILS_SUBPACKAGES += ../binutils/prep.add
38BINUTILS_SUBPACKAGES += ../binutils/build.add
39BINUTILS_SUBPACKAGES += ../binutils/install.add
40BINUTILS_SUBPACKAGES += ../binutils/rpm-install.add
41BINUTILS_SUBPACKAGES += $(top_builddir)/common/clean.add
42BINUTILS_SUBPACKAGES += ../binutils/target-binutils.add
43BINUTILS_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
52CLEANFILES += $(TARGET)-binutils.spec.in
53
54@rpmprefix@$(TARGET)-binutils.spec: $(TARGET)-binutils.spec.in
55        $(MKSPEC) $(srcdir)/$(TARGET)-binutils.spec.in > $@
56CLEANFILES += @rpmprefix@$(TARGET)-binutils.spec
57noinst_DATA += @rpmprefix@$(TARGET)-binutils.spec
58
59
60GCC_VERS = 4.0.2
61GCC_RPMREL = @VERSION@
62
63GCC_SUBPACKAGES = $(top_builddir)/common/common.add
64GCC_SUBPACKAGES += ../gcc/gccnewlib.add
65GCC_SUBPACKAGES += ../gcc/prep.add
66GCC_SUBPACKAGES += ../gcc/build.add
67GCC_SUBPACKAGES += ../gcc/install.add
68GCC_SUBPACKAGES += ../gcc/rpm-install.add
69GCC_SUBPACKAGES += $(top_builddir)/common/clean.add
70GCC_SUBPACKAGES += ../gcc/target-gcc.add
71GCC_SUBPACKAGES += ../gcc/base-gcc.add
72GCC_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
87CLEANFILES += $(TARGET)-gcc.spec.in
88
89@rpmprefix@$(TARGET)-gcc.spec: $(TARGET)-gcc.spec.in
90        $(MKSPEC) $(srcdir)/$(TARGET)-gcc.spec.in > $@
91CLEANFILES += @rpmprefix@$(TARGET)-gcc.spec
92noinst_DATA += @rpmprefix@$(TARGET)-gcc.spec
Note: See TracBrowser for help on using the repository browser.