Mercurial > repos > blastem
annotate Makefile @ 18:3e7bfde7606e
M68K to x86 translation works for a limited subset of instructions and addressing modes
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 04 Dec 2012 19:13:12 -0800 |
parents | 54fba9ef781b |
children | f664eeb55cb4 |
rev | line source |
---|---|
18
3e7bfde7606e
M68K to x86 translation works for a limited subset of instructions and addressing modes
Mike Pavone <pavone@retrodev.com>
parents:
16
diff
changeset
|
1 |
3e7bfde7606e
M68K to x86 translation works for a limited subset of instructions and addressing modes
Mike Pavone <pavone@retrodev.com>
parents:
16
diff
changeset
|
2 all : dis trans |
16 | 3 |
4 dis : dis.o 68kinst.o | |
5 $(CC) -o dis dis.o 68kinst.o | |
6 | |
18
3e7bfde7606e
M68K to x86 translation works for a limited subset of instructions and addressing modes
Mike Pavone <pavone@retrodev.com>
parents:
16
diff
changeset
|
7 trans : trans.o 68kinst.o gen_x86.o m68k_to_x86.o runtime.o mem.o |
3e7bfde7606e
M68K to x86 translation works for a limited subset of instructions and addressing modes
Mike Pavone <pavone@retrodev.com>
parents:
16
diff
changeset
|
8 $(CC) -o trans trans.o 68kinst.o gen_x86.o m68k_to_x86.o runtime.o mem.o |
3e7bfde7606e
M68K to x86 translation works for a limited subset of instructions and addressing modes
Mike Pavone <pavone@retrodev.com>
parents:
16
diff
changeset
|
9 |
16 | 10 test_x86 : test_x86.o gen_x86.o |
11 $(CC) -o test_x86 test_x86.o gen_x86.o | |
12 | |
13 gen_fib : gen_fib.o gen_x86.o mem.o | |
14 $(CC) -o gen_fib gen_fib.o gen_x86.o mem.o | |
15 | |
16 %.o : %.S | |
17 $(CC) -c -o $@ $< | |
18 | |
19 %.o : %.c | |
18
3e7bfde7606e
M68K to x86 translation works for a limited subset of instructions and addressing modes
Mike Pavone <pavone@retrodev.com>
parents:
16
diff
changeset
|
20 $(CC) -ggdb -std=gnu99 -c -o $@ $< |
3e7bfde7606e
M68K to x86 translation works for a limited subset of instructions and addressing modes
Mike Pavone <pavone@retrodev.com>
parents:
16
diff
changeset
|
21 |
3e7bfde7606e
M68K to x86 translation works for a limited subset of instructions and addressing modes
Mike Pavone <pavone@retrodev.com>
parents:
16
diff
changeset
|
22 %.bin : %.s68 |
3e7bfde7606e
M68K to x86 translation works for a limited subset of instructions and addressing modes
Mike Pavone <pavone@retrodev.com>
parents:
16
diff
changeset
|
23 vasmm68k_mot -Fbin -m68000 -spaces -o $@ $< |
16 | 24 |
25 clean : | |
18
3e7bfde7606e
M68K to x86 translation works for a limited subset of instructions and addressing modes
Mike Pavone <pavone@retrodev.com>
parents:
16
diff
changeset
|
26 rm -rf dis trans test_x86 gen_fib *.o |