annotate udis86-1.4/tests/Makefile @ 1:4a9dcbd9e54f

-files of 0.13 beta -fixes so that it now compiles with the current dmd version
author marton@basel.hu
date Tue, 05 Apr 2011 20:44:01 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
1 # Makefile
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
2
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
3 CC = cc
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
4 RM = rm
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
5
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
6
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
7 .SUFFIXES: .c .o
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
8 .c.o:
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
9 $(CC) -c $(CFLAGS) -o $@ $<
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
10
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
11 OBJS = gen.o
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
12
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
13 gen: $(OBJS)
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
14 $(CC) $(OBJS) -ludis86 -o gen
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
15 test16: gen
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
16 yasm -f bin -o test16.bin test16.asm
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
17 echo "[bits 16]" > test16.out
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
18 ./gen -16 < test16.bin >> test16.out
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
19 diff test16.asm test16.out | more
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
20 test32: gen
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
21 yasm -f bin -o test32.bin test32.asm
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
22 echo "[bits 32]" > test32.out
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
23 ./gen -32 < test32.bin >> test32.out
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
24 diff test32.asm test32.out | more
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
25 test64: gen
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
26 yasm -f bin -o test64.bin test64.asm
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
27 echo "[bits 64]" > test64.out
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
28 ./gen -64 < test64.bin >> test64.out
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
29 diff test64.asm test64.out | more
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
30 testjmp: gen
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
31 yasm -f bin -o testjmp.bin testjmp.asm
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
32 udcli -64 < testjmp.bin > testjmp.out
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
33 cat testjmp.out | more
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
34 clean:
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
35 $(RM) -f core ./*.o ./gen *~ *.bin *.out