5 SIM
=..
/..
/alpha-linux-user
/qemu-alpha
8 LINK
=$(CC
) -o
$@ crt.o
$< -nostdlib
10 TESTS
=test-cond test-cmov
12 all: hello-alpha
$(TESTS
)
14 hello-alpha
: hello-alpha.o crt.o
17 test-cond
: test-cond.o crt.o
20 test-cmov.o
: test-cond.c
21 $(CC
) -c
$(CFLAGS
) -DTEST_CMOV
-o
$@
$<
23 test-cmov
: test-cmov.o crt.o
26 test-ovf
: test-ovf.o crt.o
30 for f in
$(TESTS
); do
$(SIM
) $$f || exit
1; done
33 $(RM
) *.o
*~ hello-alpha
$(TESTS
)
35 .PHONY
: clean all check