1# Makefile.am automatically generated by testcase-maker.
2# If you make changes here they will go away.
3
4VMIPSTOOL = ../../vmipstool -n -F ../../vmipsrc --ld-script=@top_srcdir@/sample_code/ld.script
5AM_CFLAGS = -g -I@top_srcdir@ -I@top_srcdir@/sample_code
6SETUP = ../../sample_code/setup.o
7
8# simple_asm clocker
9# multifile_asm -setup 0 clocker clocker.S
10clocker_SOURCES = clocker.S
11clocker.rom: clocker.exe
12	$(VMIPSTOOL) --make-rom clocker.exe clocker.rom
13
14# simple_c echo
15# multifile_c echo echo.c
16echo_LDFLAGS = $(SETUP)
17echo_SOURCES = echo.c
18echo.rom: echo.exe
19	$(VMIPSTOOL) --make-rom echo.exe echo.rom
20
21# simple_asm endian-test
22# multifile_asm -setup 0 endian-test endian-test.S
23endian_test_SOURCES = endian-test.S
24endian-test.rom: endian-test.exe
25	$(VMIPSTOOL) --make-rom endian-test.exe endian-test.rom
26
27# multifile_c sort {sort.c random.c}
28sort_LDFLAGS = $(SETUP)
29sort_SOURCES = sort.c random.c
30sort.rom: sort.exe
31	$(VMIPSTOOL) --make-rom sort.exe sort.rom
32
33noinst_PROGRAMS =  clocker echo endian-test sort
34
35CCLD = $(VMIPSTOOL) --link
36COMPILE = $(VMIPSTOOL) --compile $(AM_CFLAGS)
37ASCOMPILE = $(VMIPSTOOL) --compile $(AM_CFLAGS)
38CPPASCOMPILE = $(VMIPSTOOL) --compile $(AM_CFLAGS)
39EXEEXT = .exe
40
41CLEANFILES =  clocker.rom echo.rom endian-test.rom sort.rom
42
43EXTRA_DIST =  clocker.exp echo.exp endian-test.exp sort.exp  clocker.par echo.par endian-test.par sort.par
44
45# 2 C testcases and 2 asm testcases.
46# 0 custom makefile fragment testcases.
47