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
27 for f in
$(TESTS
); do
$(SIM
) $$f || exit
1; done
30 $(RM
) *.o
*~ hello-alpha
$(TESTS
)
32 .PHONY
: clean all check