1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# -*-Makefile-*-
HOST = i486-linux
CPU = i386
GCC = gcc
GCCFLAGS = -O2 -fomit-frame-pointer -DHAVE_LONG_LONG_INT
LN = ln -s
RM = rm -f
SED = sed
ROFF_MAN = groff -Tascii -mandoc
all : vacall-i386-macro.S vacall-i386-msvc.c vacall-i386-mingw32.c vacall-m68k.mit.S vacall-m68k.mot.s vacall-mips.S vacall-mipsn32.S vacall-mips64.S vacall-sparc.S vacall-sparc64.S vacall-alpha.s vacall-hppa.s vacall-arm.S vacall-armel.s vacall-powerpc-aix.old.s vacall-powerpc-aix.new.s vacall-powerpc-sysv4.s vacall-powerpc-macos.s vacall-powerpc64.s vacall-m88k.s vacall-convex.s vacall-ia64.s vacall-x86_64.s vacall.man \
vacall.h.msvc config.h.msvc vacall.h.mingw32 config.h.mingw32
vacall-i386-macro.S : vacall-i386.c vacall.h.in asmi386.sh
$(GCC) -V 2.7.2 -b i486-linuxaout $(GCCFLAGS) -D__i386__ -S vacall-i386.c -o vacall-i386.s
(echo '#include "asmi386.h"' ; sed -e '/\.align.*,0x90$$/d' < vacall-i386.s | ./asmi386.sh) > vacall-i386-macro.S
$(RM) vacall-i386.s
|
|
|
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# -*-Makefile-*-
HOST = i486-linux
CPU = i386
GCC = gcc
GCCFLAGS = -O2 -fomit-frame-pointer -DHAVE_LONGLONG
LN = ln -s
RM = rm -f
SED = sed
ROFF_MAN = groff -Tascii -mandoc
all : vacall-i386-macro.S vacall-i386-msvc.c vacall-i386-mingw32.c vacall-m68k.mit.S vacall-m68k.mot.s vacall-mips.S vacall-mipsn32.S vacall-mips64.S vacall-sparc.S vacall-sparc64.S vacall-alpha.s vacall-hppa.s vacall-arm.S vacall-rs6000-aix.old.s vacall-rs6000-aix.new.s vacall-rs6000-sysv4.s vacall-rs6000-macos.s vacall-m88k.s vacall-convex.s vacall-ia64.s vacall-x86_64.s vacall.man \
vacall.h.msvc config.h.msvc vacall.h.mingw32 config.h.mingw32
vacall-i386-macro.S : vacall-i386.c vacall.h.in asmi386.sh
$(GCC) -V 2.7.2 -b i486-linuxaout $(GCCFLAGS) -D__i386__ -S vacall-i386.c -o vacall-i386.s
(echo '#include "asmi386.h"' ; sed -e '/\.align.*,0x90$$/d' < vacall-i386.s | ./asmi386.sh) > vacall-i386-macro.S
$(RM) vacall-i386.s
|
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
$(GCC) -V 2.6.3 -b hppa1.0-hpux $(GCCFLAGS) -D__hppa__ -S vacall-hppa.c -o vacall-hppa.s
vacall-arm.S : vacall-arm.c vacall.h.in asmarm.sh
$(GCC) -V 2.6.3 -b arm-acorn-riscix $(GCCFLAGS) -D__arm__ -S vacall-arm.c -o vacall-arm.s
(echo '#include "asmarm.h"' ; ./asmarm.sh < vacall-arm.s) > vacall-arm.S
$(RM) vacall-arm.s
vacall-armel.s : vacall-armel.c vacall.h.in
$(GCC) $(GCCFLAGS) -D__arm__ -D__ARMEL__ -DHAVE_LONG_LONG -fomit-frame-pointer -S vacall-armel.c -o vacall-armel.s
vacall-powerpc-aix.old.s : vacall-powerpc.c vacall.h.in
$(GCC) -V 2.95.2 -b rs6000 -mno-power -mno-power2 -mno-powerpc -mold-mnemonics $(GCCFLAGS) -D__powerpc__ -S vacall-powerpc.c -o vacall-powerpc-aix.old.s
vacall-powerpc-aix.new.s : vacall-powerpc.c vacall.h.in
$(GCC) -V 2.95.2 -b rs6000 -mno-power -mno-power2 -mno-powerpc -mnew-mnemonics $(GCCFLAGS) -D__powerpc__ -S vacall-powerpc.c -o vacall-powerpc-aix.new.s
vacall-powerpc-sysv4.s : vacall-powerpc.c vacall.h.in
$(GCC) -V 2.95.2 -b ppc-linux -mno-power -mno-power2 -mno-powerpc $(GCCFLAGS) -D__powerpc__ -S vacall-powerpc.c -o vacall-powerpc-sysv4.s
vacall-powerpc-macos.s : vacall-powerpc.c vacall.h.in
$(GCC) -V 3.3.2 -b powerpc-darwin $(GCCFLAGS) -D__powerpc__ -S vacall-powerpc.c -o vacall-powerpc-macos.s
vacall-powerpc64.s : vacall-powerpc64.c vacall.h.in
/cross/powerpc64-linux-tools/bin/powerpc64-linux-gcc $(GCCFLAGS) -D__powerpc64__ -S vacall-powerpc64.c -o vacall-powerpc64.s
vacall-m88k.s : vacall-m88k.c vacall.h.in
$(GCC) -V 2.95.2 -b m88k-dgux $(GCCFLAGS) -D__m88k__ -S vacall-m88k.c -o vacall-m88k.s
vacall-convex.s : vacall-convex.c vacall.h.in
$(GCC) -V 2.6.3 -b convex-c2 $(GCCFLAGS) -D__convex__ -S vacall-convex.c -o vacall-convex.s
vacall-ia64.s : vacall-ia64.c vacall.h.in
$(GCC) -V 2.9-ia64-000216 -b ia64-hp-linux $(GCCFLAGS) -D__ia64__ -S vacall-ia64.c -o vacall-ia64.s
vacall-x86_64.s : vacall-x86_64.c vacall.h.in
$(GCC) -V 3.2.2 -b x86_64-suse-linux $(GCCFLAGS) -D__x86_64__ -S vacall-x86_64.c -o vacall-x86_64.s
vacall.man : vacall.3
$(ROFF_MAN) vacall.3 > vacall.man
VERSION = $(shell cat ../VERSION)
vacall.h.msvc : vacall.h.in ../VERSION
sed -e 's,^#undef __i386__$$,#define __i386__ 1,' \
-e 's,@LIBFFCALL_VERSION@,$(VERSION),' \
-e 's,^#undef __SMALL_STRUCT_RETURN__$$,#define __SMALL_STRUCT_RETURN__ 1,' < vacall.h.in > vacall.h.msvc
vacall.h.mingw32 : vacall.h.in ../VERSION
sed -e 's,^#undef __i386__$$,#define __i386__ 1,' \
-e 's,@LIBFFCALL_VERSION@,$(VERSION),' \
-e 's,^#undef __SMALL_STRUCT_RETURN__$$,#define __SMALL_STRUCT_RETURN__ 1,' < vacall.h.in > vacall.h.mingw32
config.h.msvc : config.h.in
cp config.h.in config.h.msvc
config.h.mingw32 : config.h.in
cp config.h.in config.h.mingw32
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-powerpc64.s tests-m88k.s tests-convex.s tests-ia64.s tests-x86_64.s
true
tests-i386.s : tests.c vacall.h.in
$(LN) vacall.h.in vacall.h
$(GCC) -V 2.7.2 -b i486-linuxaout $(GCCFLAGS) -I/usr/include -D__i386__ -S tests.c -o tests-i386.s
$(RM) vacall.h
|
<
<
|
<
|
|
|
|
|
|
|
<
<
<
<
<
|
<
<
|
|
<
<
|
|
|
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
$(GCC) -V 2.6.3 -b hppa1.0-hpux $(GCCFLAGS) -D__hppa__ -S vacall-hppa.c -o vacall-hppa.s
vacall-arm.S : vacall-arm.c vacall.h.in asmarm.sh
$(GCC) -V 2.6.3 -b arm-acorn-riscix $(GCCFLAGS) -D__arm__ -S vacall-arm.c -o vacall-arm.s
(echo '#include "asmarm.h"' ; ./asmarm.sh < vacall-arm.s) > vacall-arm.S
$(RM) vacall-arm.s
vacall-rs6000-aix.old.s : vacall-rs6000.c vacall.h.in
$(GCC) -V 2.95.2 -b rs6000 -mno-power -mno-power2 -mno-powerpc -mold-mnemonics $(GCCFLAGS) -D__rs6000__ -S vacall-rs6000.c -o vacall-rs6000-aix.old.s
vacall-rs6000-aix.new.s : vacall-rs6000.c vacall.h.in
$(GCC) -V 2.95.2 -b rs6000 -mno-power -mno-power2 -mno-powerpc -mnew-mnemonics $(GCCFLAGS) -D__rs6000__ -S vacall-rs6000.c -o vacall-rs6000-aix.new.s
vacall-rs6000-sysv4.s : vacall-rs6000.c vacall.h.in
$(GCC) -V 2.95.2 -b ppc-linux -mno-power -mno-power2 -mno-powerpc $(GCCFLAGS) -D__rs6000__ -S vacall-rs6000.c -o vacall-rs6000-sysv4.s
vacall-rs6000-macos.s : vacall-rs6000.c vacall.h.in
$(GCC) -V 3.3.2 -b powerpc-darwin $(GCCFLAGS) -D__rs6000__ -S vacall-rs6000.c -o vacall-rs6000-macos.s
vacall-m88k.s : vacall-m88k.c vacall.h.in
$(GCC) -V 2.95.2 -b m88k-dgux $(GCCFLAGS) -D__m88k__ -S vacall-m88k.c -o vacall-m88k.s
vacall-convex.s : vacall-convex.c vacall.h.in
$(GCC) -V 2.6.3 -b convex-c2 $(GCCFLAGS) -D__convex__ -S vacall-convex.c -o vacall-convex.s
vacall-ia64.s : vacall-ia64.c vacall.h.in
$(GCC) -V 2.9-ia64-000216 -b ia64-hp-linux $(GCCFLAGS) -D__ia64__ -S vacall-ia64.c -o vacall-ia64.s
vacall-x86_64.s : vacall-x86_64.c vacall.h.in
$(GCC) -V 3.2.2 -b x86_64-suse-linux $(GCCFLAGS) -D__x86_64__ -S vacall-x86_64.c -o vacall-x86_64.s
vacall.man : vacall.3
$(ROFF_MAN) vacall.3 > vacall.man
vacall.h.msvc : vacall.h.in
sed -e 's,^#undef __i386__$$,#define __i386__ 1,' -e 's,^#undef __SMALL_STRUCT_RETURN__$$,#define __SMALL_STRUCT_RETURN__ 1,' < vacall.h.in > vacall.h.msvc
vacall.h.mingw32 : vacall.h.in
sed -e 's,^#undef __i386__$$,#define __i386__ 1,' -e 's,^#undef __SMALL_STRUCT_RETURN__$$,#define __SMALL_STRUCT_RETURN__ 1,' < vacall.h.in > vacall.h.mingw32
config.h.msvc : config.h.in
cp config.h.in config.h.msvc
config.h.mingw32 : config.h.in
cp config.h.in config.h.mingw32
tests : tests-i386.s tests-m68k.s tests-mips.s tests-sparc.s tests-alpha.s tests-hppa.s tests-arm.s tests-rs6000.s tests-m88k.s tests-convex.s tests-ia64.s tests-x86_64.s
true
tests-i386.s : tests.c vacall.h.in
$(LN) vacall.h.in vacall.h
$(GCC) -V 2.7.2 -b i486-linuxaout $(GCCFLAGS) -I/usr/include -D__i386__ -S tests.c -o tests-i386.s
$(RM) vacall.h
|
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
|
$(RM) vacall.h
tests-arm.s : tests.c vacall.h.in
$(LN) vacall.h.in vacall.h
$(GCC) -V 2.6.3 -b arm-acorn-riscix $(GCCFLAGS) -I/usr/include -D__arm__ -S tests.c -o tests-arm.s
$(RM) vacall.h
tests-powerpc.s : tests.c vacall.h.in
$(LN) vacall.h.in vacall.h
$(GCC) -V 2.95.2 -b rs6000 $(GCCFLAGS) -I/usr/include -D__powerpc__ -S tests.c -o tests-powerpc.s
$(RM) vacall.h
tests-powerpc64.s : tests.c vacall.h.in
$(LN) vacall.h.in vacall.h
/cross/powerpc64-linux-tools/bin/powerpc64-linux-gcc $(GCCFLAGS) -I/usr/include -D__powerpc64__ -S tests.c -o tests-powerpc64.s
$(RM) vacall.h
tests-m88k.s : tests.c vacall.h.in
$(LN) vacall.h.in vacall.h
$(GCC) -V 2.95.2 -b m88k-dgux $(GCCFLAGS) -I/usr/include -D__m88k__ -S tests.c -o tests-m88k.s
$(RM) vacall.h
|
|
|
<
<
<
<
<
|
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
|
$(RM) vacall.h
tests-arm.s : tests.c vacall.h.in
$(LN) vacall.h.in vacall.h
$(GCC) -V 2.6.3 -b arm-acorn-riscix $(GCCFLAGS) -I/usr/include -D__arm__ -S tests.c -o tests-arm.s
$(RM) vacall.h
tests-rs6000.s : tests.c vacall.h.in
$(LN) vacall.h.in vacall.h
$(GCC) -V 2.95.2 -b rs6000 $(GCCFLAGS) -I/usr/include -D__rs6000__ -S tests.c -o tests-rs6000.s
$(RM) vacall.h
tests-m88k.s : tests.c vacall.h.in
$(LN) vacall.h.in vacall.h
$(GCC) -V 2.95.2 -b m88k-dgux $(GCCFLAGS) -I/usr/include -D__m88k__ -S tests.c -o tests-m88k.s
$(RM) vacall.h
|