annotate udis86-1.4/tests/Makefile.win32 @ 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 = cl
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
4 RM = del
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 .obj
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
8 .c.obj:
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
9 $(CC) -I.. -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.obj
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.exe: $(OBJS)
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
14 $(CC) $(OBJS) ../libudis86/udis86.lib -o gen.exe
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
15 test16: gen.exe
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.exe
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.exe
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.exe
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\udcli -64 < testjmp.bin > testjmp.out
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
33 type 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) *.obj gen.exe *.bin *.out