initial
[fpgammix.git] / regression-tests / include / rules.mk
blob0b2977160408f1c3a8c1427b25c1e1cc57ab4c12
1 MMIX_TOOLS_BIN=/opt/mmix/bin
3 %.mmo: %.mms
4 mmixal -l $@.lst -o $@ $<
6 %.mmb: %.mmo
7 mmix -D$@ $<
9 %.run-mmix: %.mmo
10 @-echo `basename $< .mmo` '-->' `mmix $<`
12 %.run-mmix-verbose: %.mmo
13 mmix -t9999 $<
15 %.run-mmmix: %.mmb
16 @-echo `basename $< .mmb` '-->' \
17 `(echo 999999;echo q) | mmmix ../include/plain.mmconfig $< |tail +2|head -1`
19 %.run-fpgammix-sim: %.data
20 cp $< ../../rtl/Icarus/initmem.data
21 $(MAKE) -C $(FPGAMMIX_DIR)/rtl/Icarus;
23 %.run-fpgammix-hw: %.txt
24 @echo "Alas, fpgaMMIX isn't supported yet on real hardware."
25 @sz $<
27 %.run-clean:
28 -rm *.mmo *.lst *.mmb
30 %.data: %.elf
31 $(MMIX_TOOLS_BIN)/mmix-objdump -s $< | grep '^ '|cut -d' ' -f3-6|tr ' ' '\n' | grep -v '^$$' > $@
33 %.dis: %.elf
34 $(MMIX_TOOLS_BIN)/mmix-objdump -d $<
36 %.elf: %.mmo
37 $(MMIX_TOOLS_BIN)/mmix-objcopy -O elf64-mmix -I mmo $< $@