Mercurial > repos > blastem
annotate Makefile @ 286:872a8911e0f4
Implemente RLD
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 04 May 2013 18:51:53 -0700 |
parents | 625f8e4d5fd2 |
children | a8ee7934a1f8 |
rev | line source |
---|---|
20
f664eeb55cb4
Mostly broken VDP core and savestate viewer
Mike Pavone <pavone@retrodev.com>
parents:
18
diff
changeset
|
1 LIBS=sdl |
229
d60837a7d18a
Improve color rendering accuracy and optimize SDL renderer a bit
Mike Pavone <pavone@retrodev.com>
parents:
208
diff
changeset
|
2 ifdef DEBUG |
d60837a7d18a
Improve color rendering accuracy and optimize SDL renderer a bit
Mike Pavone <pavone@retrodev.com>
parents:
208
diff
changeset
|
3 CFLAGS=-ggdb -std=gnu99 `pkg-config --cflags-only-I $(LIBS)` -Wreturn-type -Werror=return-type |
d60837a7d18a
Improve color rendering accuracy and optimize SDL renderer a bit
Mike Pavone <pavone@retrodev.com>
parents:
208
diff
changeset
|
4 else |
d60837a7d18a
Improve color rendering accuracy and optimize SDL renderer a bit
Mike Pavone <pavone@retrodev.com>
parents:
208
diff
changeset
|
5 CFLAGS=-O2 -std=gnu99 `pkg-config --cflags-only-I $(LIBS)` -Wreturn-type -Werror=return-type |
d60837a7d18a
Improve color rendering accuracy and optimize SDL renderer a bit
Mike Pavone <pavone@retrodev.com>
parents:
208
diff
changeset
|
6 endif |
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 |
54
3b79cbcf6846
Get Flavio's color bar demo kind of sort of working
Mike Pavone <pavone@retrodev.com>
parents:
20
diff
changeset
|
8 all : dis trans stateview blastem |
3b79cbcf6846
Get Flavio's color bar demo kind of sort of working
Mike Pavone <pavone@retrodev.com>
parents:
20
diff
changeset
|
9 |
260
625f8e4d5fd2
Initial stab at integartiong Z80 core
Mike Pavone <pavone@retrodev.com>
parents:
240
diff
changeset
|
10 blastem : blastem.o 68kinst.o gen_x86.o m68k_to_x86.o z80inst.o z80_to_x86.o x86_backend.o runtime.o zruntime.o mem.o vdp.o render_sdl.o |
625f8e4d5fd2
Initial stab at integartiong Z80 core
Mike Pavone <pavone@retrodev.com>
parents:
240
diff
changeset
|
11 $(CC) -o blastem blastem.o 68kinst.o gen_x86.o m68k_to_x86.o z80inst.o z80_to_x86.o x86_backend.o runtime.o zruntime.o mem.o vdp.o render_sdl.o `pkg-config --libs $(LIBS)` |
16 | 12 |
13 dis : dis.o 68kinst.o | |
14 $(CC) -o dis dis.o 68kinst.o | |
199
69585e7d474f
Add initial stab at Z80 decoder and disassembler
Mike Pavone <pavone@retrodev.com>
parents:
118
diff
changeset
|
15 |
69585e7d474f
Add initial stab at Z80 decoder and disassembler
Mike Pavone <pavone@retrodev.com>
parents:
118
diff
changeset
|
16 zdis : zdis.o z80inst.o |
69585e7d474f
Add initial stab at Z80 decoder and disassembler
Mike Pavone <pavone@retrodev.com>
parents:
118
diff
changeset
|
17 $(CC) -o zdis zdis.o z80inst.o |
16 | 18 |
235
d9bf8e61c33c
Get Z80 core working for simple programs
Mike Pavone <pavone@retrodev.com>
parents:
229
diff
changeset
|
19 libemu68k.a : 68kinst.o gen_x86.o m68k_to_x86.o x86_backend.o runtime.o mem.o |
d9bf8e61c33c
Get Z80 core working for simple programs
Mike Pavone <pavone@retrodev.com>
parents:
229
diff
changeset
|
20 ar rcs libemu68k.a 68kinst.o gen_x86.o m68k_to_x86.o x86_backend.o runtime.o mem.o |
208
3457dc6fd558
Tweaks to make blastem compatible with m68k-tester
Mike Pavone <pavone@retrodev.com>
parents:
199
diff
changeset
|
21 |
235
d9bf8e61c33c
Get Z80 core working for simple programs
Mike Pavone <pavone@retrodev.com>
parents:
229
diff
changeset
|
22 trans : trans.o 68kinst.o gen_x86.o m68k_to_x86.o x86_backend.o runtime.o mem.o |
d9bf8e61c33c
Get Z80 core working for simple programs
Mike Pavone <pavone@retrodev.com>
parents:
229
diff
changeset
|
23 $(CC) -o trans trans.o 68kinst.o gen_x86.o m68k_to_x86.o x86_backend.o runtime.o mem.o |
d9bf8e61c33c
Get Z80 core working for simple programs
Mike Pavone <pavone@retrodev.com>
parents:
229
diff
changeset
|
24 |
d9bf8e61c33c
Get Z80 core working for simple programs
Mike Pavone <pavone@retrodev.com>
parents:
229
diff
changeset
|
25 transz80 : transz80.o z80inst.o gen_x86.o z80_to_x86.o x86_backend.o zruntime.o mem.o |
d9bf8e61c33c
Get Z80 core working for simple programs
Mike Pavone <pavone@retrodev.com>
parents:
229
diff
changeset
|
26 $(CC) -o transz80 transz80.o z80inst.o gen_x86.o z80_to_x86.o x86_backend.o zruntime.o mem.o |
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
|
27 |
20
f664eeb55cb4
Mostly broken VDP core and savestate viewer
Mike Pavone <pavone@retrodev.com>
parents:
18
diff
changeset
|
28 stateview : stateview.o vdp.o render_sdl.o |
f664eeb55cb4
Mostly broken VDP core and savestate viewer
Mike Pavone <pavone@retrodev.com>
parents:
18
diff
changeset
|
29 $(CC) -o stateview stateview.o vdp.o render_sdl.o `pkg-config --libs $(LIBS)` |
f664eeb55cb4
Mostly broken VDP core and savestate viewer
Mike Pavone <pavone@retrodev.com>
parents:
18
diff
changeset
|
30 |
16 | 31 test_x86 : test_x86.o gen_x86.o |
32 $(CC) -o test_x86 test_x86.o gen_x86.o | |
33 | |
34 gen_fib : gen_fib.o gen_x86.o mem.o | |
35 $(CC) -o gen_fib gen_fib.o gen_x86.o mem.o | |
240
ed540dd4cf2b
Add header dependencies to offsets
Mike Pavone <pavone@retrodev.com>
parents:
235
diff
changeset
|
36 |
ed540dd4cf2b
Add header dependencies to offsets
Mike Pavone <pavone@retrodev.com>
parents:
235
diff
changeset
|
37 offsets : offsets.c z80_to_x86.h m68k_to_x86.h |
ed540dd4cf2b
Add header dependencies to offsets
Mike Pavone <pavone@retrodev.com>
parents:
235
diff
changeset
|
38 $(CC) -o offsets offsets.c |
16 | 39 |
40 %.o : %.S | |
41 $(CC) -c -o $@ $< | |
42 | |
43 %.o : %.c | |
229
d60837a7d18a
Improve color rendering accuracy and optimize SDL renderer a bit
Mike Pavone <pavone@retrodev.com>
parents:
208
diff
changeset
|
44 $(CC) $(CFLAGS) -c -o $@ $< |
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
|
45 |
3e7bfde7606e
M68K to x86 translation works for a limited subset of instructions and addressing modes
Mike Pavone <pavone@retrodev.com>
parents:
16
diff
changeset
|
46 %.bin : %.s68 |
92
c3d034e076ee
Fix some bugs in emulation of CLR
Mike Pavone <pavone@retrodev.com>
parents:
54
diff
changeset
|
47 vasmm68k_mot -Fbin -m68000 -no-opt -spaces -o $@ $< |
16 | 48 |
199
69585e7d474f
Add initial stab at Z80 decoder and disassembler
Mike Pavone <pavone@retrodev.com>
parents:
118
diff
changeset
|
49 %.bin : %.sz8 |
69585e7d474f
Add initial stab at Z80 decoder and disassembler
Mike Pavone <pavone@retrodev.com>
parents:
118
diff
changeset
|
50 vasmz80_mot -Fbin -spaces -o $@ $< |
69585e7d474f
Add initial stab at Z80 decoder and disassembler
Mike Pavone <pavone@retrodev.com>
parents:
118
diff
changeset
|
51 |
16 | 52 clean : |
20
f664eeb55cb4
Mostly broken VDP core and savestate viewer
Mike Pavone <pavone@retrodev.com>
parents:
18
diff
changeset
|
53 rm -rf dis trans stateview test_x86 gen_fib *.o |