~ubuntu-branches/debian/squeeze/ffcall/squeeze

« back to all changes in this revision

Viewing changes to ffcall/avcall/Makefile.devel

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Egger
  • Date: 2010-06-26 15:29:30 UTC
  • mfrom: (5.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100626152930-c09y01gk3szcnykn
Tags: 1.10+cvs20100619-2
Ship to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# developer -*-Makefile-*-
2
 
 
3
 
HOST = i486-linux
4
 
CPU = i386
5
 
GCC = gcc
6
 
GCCFLAGS = -O2 -fomit-frame-pointer
7
 
LN = ln -s
8
 
RM = rm -f
9
 
SED = sed
10
 
ROFF_MAN = groff -Tascii -mandoc
11
 
 
12
 
all : avcall-i386-macro.S avcall-i386-msvc.c avcall-i386-mingw32.c avcall.h.msvc avcall.h.mingw32 avcall-m68k.mit.S avcall-m68k.mot.s avcall-m68k-amiga.s avcall-mips.S avcall-mipsn32.S avcall-mips64.S avcall-sparc.S avcall-sparc64.S avcall-alpha.s avcall-hppa.s avcall-arm.S avcall-powerpc-aix.old.s avcall-powerpc-aix.new.s avcall-powerpc-sysv4.s avcall-powerpc-macos.s avcall-powerpc64.s avcall-m88k.s avcall-convex.s avcall-ia64.s avcall-x86_64.s avcall.man
13
 
 
14
 
avcall-i386-macro.S : avcall-i386.c avcall.h.in asmi386.sh
15
 
        $(GCC) -V 2.7.2 -b i486-linuxaout $(GCCFLAGS) -D__i386__ -fno-omit-frame-pointer -S avcall-i386.c -o avcall-i386.s
16
 
        (echo '#include "asmi386.h"' ; sed -e '/\.align.*,0x90$$/d' < avcall-i386.s | ./asmi386.sh) > avcall-i386-macro.S
17
 
        $(RM) avcall-i386.s
18
 
 
19
 
avcall-i386-msvc.c : avcall-i386-macro.S
20
 
        cp -p avcall-i386-macro.S avcall-i386-msvc.c
21
 
 
22
 
avcall-i386-mingw32.c : avcall-i386-macro.S
23
 
        cp -p avcall-i386-macro.S avcall-i386-mingw32.c
24
 
 
25
 
avcall.h.msvc : avcall.h.in
26
 
        sed -e 's,^#undef __i386__$$,#define __i386__ 1,' -e 's,^#undef __SMALL_STRUCT_RETURN__$$,#define __SMALL_STRUCT_RETURN__ 1,' < avcall.h.in > avcall.h.msvc
27
 
 
28
 
avcall.h.mingw32 : avcall.h.in
29
 
        sed -e 's,^#undef __i386__$$,#define __i386__ 1,' -e 's,^#undef __SMALL_STRUCT_RETURN__$$,#define __SMALL_STRUCT_RETURN__ 1,' < avcall.h.in > avcall.h.mingw32
30
 
 
31
 
avcall-m68k.mit.S : avcall-m68k.c avcall.h.in asmm68k.sh
32
 
        $(GCC) -V 2.95.2 -b m68k-sun $(GCCFLAGS) -D__m68k__ -S avcall-m68k.c -o avcall-m68k.mit.s
33
 
        (echo '#include "asmm68k.h"' ; ./asmm68k.sh < avcall-m68k.mit.s) > avcall-m68k.mit.S
34
 
        $(RM) avcall-m68k.mit.s
35
 
 
36
 
avcall-m68k.mot.s : avcall-m68k.c avcall.h.in
37
 
        $(GCC) -V 2.95.2 -b m68k-linux $(GCCFLAGS) -D__m68k__ -S avcall-m68k.c -o avcall-m68k.mot.s
38
 
 
39
 
avcall-m68k-amiga.s : avcall-m68k-amiga.c avcall.h.in
40
 
        $(GCC) -V 2.95.2 -b m68k-sun -m68000 $(GCCFLAGS) -D__m68k__ -DAMIGA -S avcall-m68k-amiga.c -o avcall-m68k-amiga.s
41
 
 
42
 
avcall-mips.S : avcall-mips.c avcall.h.in asmmips.sh
43
 
        $(GCC) -V 2.95.2 -b mips-sgi $(GCCFLAGS) -D__mips__ -fno-omit-frame-pointer -S avcall-mips.c -o avcall-mips.s
44
 
        (echo '#include "asmmips.h"' ; ./asmmips.sh < avcall-mips.s) > avcall-mips.S
45
 
        $(RM) avcall-mips.s
46
 
 
47
 
avcall-mipsn32.S : avcall-mipsn32.c avcall.h.in asmmips.sh
48
 
        $(GCC) -V 2.95.2 -b mips-sgi-irix6 $(GCCFLAGS) -D__mipsn32__ -fno-omit-frame-pointer -S avcall-mipsn32.c -o avcall-mipsn32.s
49
 
        (echo '#include "asmmips.h"' ; ./asmmips.sh < avcall-mipsn32.s) > avcall-mipsn32.S
50
 
        $(RM) avcall-mipsn32.s
51
 
 
52
 
avcall-mips64.S : avcall-mips64.c avcall.h.in asmmips.sh
53
 
        $(GCC) -V 2.95.2 -b mips-sgi -mips3 -mlong64 $(GCCFLAGS) -U__mips__ -D__mips64__ -fno-omit-frame-pointer -S avcall-mips64.c -o avcall-mips64.s
54
 
        (echo '#include "asmmips.h"' ; ./asmmips.sh < avcall-mips64.s) > avcall-mips64.S
55
 
        $(RM) avcall-mips64.s
56
 
 
57
 
avcall-sparc.S : avcall-sparc.c avcall.h.in asmsparc.sh
58
 
        $(GCC) -V 2.95.2 -b sparc-sun $(GCCFLAGS) -D__sparc__ -S avcall-sparc.c -o avcall-sparc.s
59
 
        (echo '#include "asmsparc.h"' ; ./asmsparc.sh < avcall-sparc.s) > avcall-sparc.S
60
 
        $(RM) avcall-sparc.s
61
 
 
62
 
avcall-sparc64.S : avcall-sparc64.c avcall.h.in asmsparc.sh
63
 
        sparc64-linux-gcc -V 2.95.2 -b sparc64-linux $(GCCFLAGS) -D__sparc64__ -S avcall-sparc64.c -o avcall-sparc64.s
64
 
        (echo '#include "asmsparc.h"' ; ./asmsparc64.sh < avcall-sparc64.s) > avcall-sparc64.S
65
 
        $(RM) avcall-sparc64.s
66
 
 
67
 
# Patrick Bridges says that on Linux/Alpha, avcall-alpha.s compiled with "-O"
68
 
# works but compiled with "-O2" doesn't work.
69
 
avcall-alpha.s : avcall-alpha.c avcall.h.in
70
 
        $(GCC) -V 2.7.2 -b alpha-dec-osf $(GCCFLAGS) -O1 -D__alpha__ -S avcall-alpha.c -o avcall-alpha-temp.s
71
 
        $(SED) -e '/ldgp/d' < avcall-alpha-temp.s > avcall-alpha.s
72
 
        $(RM) avcall-alpha-temp.s
73
 
 
74
 
avcall-hppa.s : avcall-hppa.c avcall.h.in
75
 
        $(GCC) -V 2.6.3 -b hppa1.0-hpux $(GCCFLAGS) -D__hppa__ -S avcall-hppa.c -o avcall-hppa-temp.s
76
 
        $(SED) -e 's/120/1060/g' < avcall-hppa-temp.s > avcall-hppa.s
77
 
        $(RM) avcall-hppa-temp.s
78
 
 
79
 
avcall-arm.S : avcall-arm.c avcall.h.in asmarm.sh
80
 
        $(GCC) -V 2.6.3 -b arm-acorn-riscix $(GCCFLAGS) -D__arm__ -S avcall-arm.c -o avcall-arm.s
81
 
        (echo '#include "asmarm.h"' ; ./asmarm.sh < avcall-arm.s) > avcall-arm.S
82
 
        $(RM) avcall-arm.s
83
 
 
84
 
avcall-powerpc-aix.old.s : avcall-powerpc.c avcall.h.in
85
 
        $(GCC) -V 2.95.2 -b rs6000 -mno-power -mno-power2 -mno-powerpc -mold-mnemonics $(GCCFLAGS) -D__powerpc__ -S avcall-powerpc.c -o avcall-powerpc-aix.old.s
86
 
 
87
 
avcall-powerpc-aix.new.s : avcall-powerpc.c avcall.h.in
88
 
        $(GCC) -V 2.95.2 -b rs6000 -mno-power -mno-power2 -mno-powerpc -mnew-mnemonics $(GCCFLAGS) -D__powerpc__ -S avcall-powerpc.c -o avcall-powerpc-aix.new.s
89
 
 
90
 
avcall-powerpc-sysv4.s : avcall-powerpc.c avcall.h.in
91
 
        $(GCC) -V 2.95.2 -b ppc-linux -mno-power -mno-power2 -mno-powerpc $(GCCFLAGS) -D__powerpc__ -S avcall-powerpc.c -o avcall-powerpc-sysv4.s
92
 
 
93
 
avcall-powerpc-macos.s : avcall-powerpc.c avcall.h.in
94
 
        $(GCC) -V 3.3.2 -b powerpc-darwin $(GCCFLAGS) -D__powerpc__ -S avcall-powerpc.c -o avcall-powerpc-macos.s
95
 
 
96
 
avcall-powerpc64.s : avcall-powerpc64.c avcall.h.in
97
 
        /cross/powerpc64-linux-tools/bin/powerpc64-linux-gcc $(GCCFLAGS) -D__powerpc64__ -S avcall-powerpc64.c -o avcall-powerpc64.s
98
 
 
99
 
avcall-m88k.s : avcall-m88k.c avcall.h.in
100
 
        $(GCC) -V 2.95.2 -b m88k-dgux $(GCCFLAGS) -D__m88k__ -S avcall-m88k.c -o avcall-m88k.s
101
 
 
102
 
avcall-convex.s : avcall-convex.c avcall.h.in
103
 
        $(GCC) -V 2.6.3 -b convex-c2 $(GCCFLAGS) -D__convex__ -S avcall-convex.c -o avcall-convex.s
104
 
 
105
 
avcall-ia64.s : avcall-ia64.c avcall.h.in
106
 
        $(GCC) -V 2.9-ia64-000216 -b ia64-hp-linux $(GCCFLAGS) -D__ia64__ -S avcall-ia64.c -o avcall-ia64.s
107
 
 
108
 
avcall-x86_64.s : avcall-x86_64.c avcall.h.in
109
 
        $(GCC) -V 3.2.2 -b x86_64-suse-linux $(GCCFLAGS) -D__x86_64__ -S avcall-x86_64.c -o avcall-x86_64.s
110
 
 
111
 
avcall.man : avcall.3
112
 
        $(ROFF_MAN) avcall.3 > avcall.man
113
 
 
114
 
 
115
 
tests : tests-i386.s tests-m68k.s tests-mips.s tests-sparc.s tests-alpha.s tests-hppa.s tests-arm.s tests-powerpc.s tests-m88k.s tests-convex.s tests-ia64.s tests-x86_64.s
116
 
        true
117
 
 
118
 
tests-i386.s : tests.c avcall.h.in
119
 
        $(LN) avcall.h.in avcall.h
120
 
        $(GCC) -V 2.7.2 -b i486-linuxaout $(GCCFLAGS) -I/usr/include -D__i386__ -S tests.c -o tests-i386.s
121
 
        $(RM) avcall.h
122
 
 
123
 
tests-m68k.s : tests.c avcall.h.in
124
 
        $(LN) avcall.h.in avcall.h
125
 
        $(GCC) -V 2.95.2 -b m68k-sun $(GCCFLAGS) -I/usr/include -D__m68k__ -S tests.c -o tests-m68k.s
126
 
        $(RM) avcall.h
127
 
 
128
 
tests-mips.s : tests.c avcall.h.in
129
 
        $(LN) avcall.h.in avcall.h
130
 
        $(GCC) -V 2.95.2 -b mips-sgi $(GCCFLAGS) -I/usr/include -D__mips__ -S tests.c -o tests-mips.s
131
 
        $(RM) avcall.h
132
 
 
133
 
tests-sparc.s : tests.c avcall.h.in
134
 
        $(LN) avcall.h.in avcall.h
135
 
        $(GCC) -V 2.95.2 -b sparc-sun $(GCCFLAGS) -I/usr/include -D__sparc__ -S tests.c -o tests-sparc.s
136
 
        $(RM) avcall.h
137
 
 
138
 
tests-alpha.s : tests.c avcall.h.in
139
 
        $(LN) avcall.h.in avcall.h
140
 
        $(GCC) -V 2.7.2 -b alpha-dec-osf $(GCCFLAGS) -I/usr/include -D__alpha__ -S tests.c -o tests-alpha.s
141
 
        $(RM) avcall.h
142
 
 
143
 
tests-hppa.s : tests.c avcall.h.in
144
 
        $(LN) avcall.h.in avcall.h
145
 
        $(GCC) -V 2.6.3 -b hppa1.0-hpux $(GCCFLAGS) -I/usr/include -D__hppa__ -S tests.c -o tests-hppa.s
146
 
        $(RM) avcall.h
147
 
 
148
 
tests-arm.s : tests.c avcall.h.in
149
 
        $(LN) avcall.h.in avcall.h
150
 
        $(GCC) -V 2.6.3 -b arm-acorn-riscix $(GCCFLAGS) -I/usr/include -D__arm__ -S tests.c -o tests-arm.s
151
 
        $(RM) avcall.h
152
 
 
153
 
tests-powerpc.s : tests.c avcall.h.in
154
 
        $(LN) avcall.h.in avcall.h
155
 
        $(GCC) -V 2.95.2 -b rs6000 $(GCCFLAGS) -I/usr/include -D__powerpc__ -S tests.c -o tests-powerpc.s
156
 
        $(RM) avcall.h
157
 
 
158
 
tests-m88k.s : tests.c avcall.h.in
159
 
        $(LN) avcall.h.in avcall.h
160
 
        $(GCC) -V 2.95.2 -b m88k-dgux $(GCCFLAGS) -I/usr/include -D__m88k__ -S tests.c -o tests-m88k.s
161
 
        $(RM) avcall.h
162
 
 
163
 
tests-convex.s : tests.c avcall.h.in
164
 
        $(LN) avcall.h.in avcall.h
165
 
        $(GCC) -V 2.6.3 -b convex-c2 $(GCCFLAGS) -I/usr/include -D__convex__ -S tests.c -o tests-convex.s
166
 
        $(RM) avcall.h
167
 
 
168
 
tests-ia64.s : tests.c avcall.h.in
169
 
        $(LN) avcall.h.in avcall.h
170
 
        $(GCC) -V 2.9-ia64-000216 -b ia64-hp-linux $(GCCFLAGS) -I/usr/include -D__ia64__ -S tests.c -o tests-ia64.s
171
 
        $(RM) avcall.h
172
 
 
173
 
tests-x86_64.s : tests.c avcall.h.in
174
 
        $(LN) avcall.h.in avcall.h
175
 
        $(GCC) -V 3.2.2 -b x86_64-suse-linux $(GCCFLAGS) -I/usr/include -D__x86_64__ -S tests.c -o tests-x86_64.s
176
 
        $(RM) avcall.h
177