summaryrefslogtreecommitdiffstats
path: root/scripts/cpukit/Makefile.am
blob: 01d1e00bc5ba0f5805631486b23ad628507257dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
##
## $Id$
##

include $(top_srcdir)/common/common.am

MKSPEC = $(SHELL) ./mkspec

SUBPACKAGES = header.add
SUBPACKAGES += $(top_builddir)/common/common.add
SUBPACKAGES += rtems-cpukit.add
SUBPACKAGES += $(top_builddir)/common/clean.add
SUBPACKAGES += target-cpukit.add

MKSPEC_DEPS = mkspec rtems-cpukit.spec.in $(top_builddir)/setup.cache

rtems-cpukit.spec.in: $(SUBPACKAGES)
	cat $^ > $@
CLEANFILES = rtems-cpukit.spec.in

c4x-rtems@osversion@-cpukit.spec: $(MKSPEC_DEPS)
	$(MKSPEC) -cfg $(top_builddir)/setup.cache -o . c4x-rtems@osversion@ > $@
RPM_SPECS_DATA = c4x-rtems@osversion@-cpukit.spec

h8300-rtems@osversion@-cpukit.spec: $(MKSPEC_DEPS)
	$(MKSPEC) -cfg $(top_builddir)/setup.cache -o . h8300-rtems@osversion@ > $@
RPM_SPECS_DATA += h8300-rtems@osversion@-cpukit.spec

i386-rtems@osversion@-cpukit.spec: $(MKSPEC_DEPS)
	$(MKSPEC) -cfg $(top_builddir)/setup.cache -o . i386-rtems@osversion@ > $@
RPM_SPECS_DATA += i386-rtems@osversion@-cpukit.spec

i960-rtems@osversion@-cpukit.spec: $(MKSPEC_DEPS)
	$(MKSPEC) -cfg $(top_builddir)/setup.cache -o . i960-rtems@osversion@ > $@
RPM_SPECS_DATA += i960-rtems@osversion@-cpukit.spec

m68k-rtems@osversion@-cpukit.spec: $(MKSPEC_DEPS)
	$(MKSPEC) -cfg $(top_builddir)/setup.cache -o . m68k-rtems@osversion@ > $@
RPM_SPECS_DATA += m68k-rtems@osversion@-cpukit.spec

mips64orion-rtems@osversion@-cpukit.spec: $(MKSPEC_DEPS)
	$(MKSPEC) -cfg $(top_builddir)/setup.cache -o . mips64orion-rtems@osversion@ > $@
RPM_SPECS_DATA += mips64orion-rtems@osversion@-cpukit.spec

mips-rtems@osversion@-cpukit.spec: $(MKSPEC_DEPS)
	$(MKSPEC) -cfg $(top_builddir)/setup.cache -o . mips-rtems@osversion@ > $@
RPM_SPECS_DATA += mips-rtems@osversion@-cpukit.spec

powerpc-rtems@osversion@-cpukit.spec: $(MKSPEC_DEPS)
	$(MKSPEC) -cfg $(top_builddir)/setup.cache -o . powerpc-rtems@osversion@ > $@
RPM_SPECS_DATA += powerpc-rtems@osversion@-cpukit.spec

sh-rtems@osversion@-cpukit.spec: $(MKSPEC_DEPS)
	$(MKSPEC) -cfg $(top_builddir)/setup.cache -o . sh-rtems@osversion@ > $@
RPM_SPECS_DATA += sh-rtems@osversion@-cpukit.spec

sh-rtemself@osversion@-cpukit.spec: $(MKSPEC_DEPS)
	$(MKSPEC) -cfg $(top_builddir)/setup.cache -o . sh-rtemself@osversion@ > $@
RPM_SPECS_DATA += sh-rtemself@osversion@-cpukit.spec

sparc-rtems@osversion@-cpukit.spec: $(MKSPEC_DEPS)
	$(MKSPEC) -cfg $(top_builddir)/setup.cache -o . sparc-rtems@osversion@ > $@
RPM_SPECS_DATA += sparc-rtems@osversion@-cpukit.spec

EXTRA_DIST = $(SUBPACKAGES)

CLEANFILES += $(RPM_SPECS_DATA)

include $(top_srcdir)/../automake/local.am