annotate Makefile @ 755:7306b3967c51

Cleanup some warnings under clang through a combination of code fixes and supressing specific warnings
author Michael Pavone <pavone@retrodev.com>
date Sat, 27 Jun 2015 12:17:18 -0700
parents 6f439a197f61
children ffb8cc5845fa
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
559
6b248602ab84 blastem builds and almost works on OS X now
Mike Pavone <pavone@retrodev.com>
parents: 557
diff changeset
1 ifndef OS
6b248602ab84 blastem builds and almost works on OS X now
Mike Pavone <pavone@retrodev.com>
parents: 557
diff changeset
2 OS:=$(shell uname -s)
6b248602ab84 blastem builds and almost works on OS X now
Mike Pavone <pavone@retrodev.com>
parents: 557
diff changeset
3 endif
6b248602ab84 blastem builds and almost works on OS X now
Mike Pavone <pavone@retrodev.com>
parents: 557
diff changeset
4
744
fc68992cf18d Merge windows branch with latest changes
Michael Pavone <pavone@retrodev.com>
parents: 743 735
diff changeset
5 ifeq ($(OS),Windows)
fc68992cf18d Merge windows branch with latest changes
Michael Pavone <pavone@retrodev.com>
parents: 743 735
diff changeset
6 CC:=wine gcc.exe
741
80a67be1770b Initial work on Windows port
Michael Pavone <pavone@retrodev.com>
parents: 573
diff changeset
7
80a67be1770b Initial work on Windows port
Michael Pavone <pavone@retrodev.com>
parents: 573
diff changeset
8 MEM:=mem_win.o
80a67be1770b Initial work on Windows port
Michael Pavone <pavone@retrodev.com>
parents: 573
diff changeset
9 BLASTEM:=blastem.exe
80a67be1770b Initial work on Windows port
Michael Pavone <pavone@retrodev.com>
parents: 573
diff changeset
10
80a67be1770b Initial work on Windows port
Michael Pavone <pavone@retrodev.com>
parents: 573
diff changeset
11 CC:=wine gcc.exe
746
9d4d40f833d0 Fix crash bug in windows build
Michael Pavone <pavone@retrodev.com>
parents: 745
diff changeset
12 CFLAGS:=-O2 -std=gnu99 -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration -I"C:/MinGW/usr/include/SDL2" -DGLEW_STATIC
745
daa31ee7d8cd Get windows build compiling again post-merge
Michael Pavone <pavone@retrodev.com>
parents: 744
diff changeset
13 LDFLAGS:= -L"C:/MinGW/usr/lib" -lm -lmingw32 -lSDL2main -lSDL2 -lopengl32 -lglu32 -mwindows
741
80a67be1770b Initial work on Windows port
Michael Pavone <pavone@retrodev.com>
parents: 573
diff changeset
14 CPU:=i686
80a67be1770b Initial work on Windows port
Michael Pavone <pavone@retrodev.com>
parents: 573
diff changeset
15
80a67be1770b Initial work on Windows port
Michael Pavone <pavone@retrodev.com>
parents: 573
diff changeset
16 else
80a67be1770b Initial work on Windows port
Michael Pavone <pavone@retrodev.com>
parents: 573
diff changeset
17
80a67be1770b Initial work on Windows port
Michael Pavone <pavone@retrodev.com>
parents: 573
diff changeset
18 MEM:=mem.o
80a67be1770b Initial work on Windows port
Michael Pavone <pavone@retrodev.com>
parents: 573
diff changeset
19 BLASTEM:=blastem
80a67be1770b Initial work on Windows port
Michael Pavone <pavone@retrodev.com>
parents: 573
diff changeset
20
719
019d27995e32 Upgrade to SDL 2.0 and drop support for the non-OpenGL render path
Michael Pavone <pavone@retrodev.com>
parents: 682
diff changeset
21 ifeq ($(OS),Darwin)
019d27995e32 Upgrade to SDL 2.0 and drop support for the non-OpenGL render path
Michael Pavone <pavone@retrodev.com>
parents: 682
diff changeset
22 LIBS=sdl2 glew
495
39cad98d2789 Allow OpenGL support to be disabled at compile time. Move generic utility functions out of config.c
Mike Pavone <pavone@retrodev.com>
parents: 488
diff changeset
23 else
719
019d27995e32 Upgrade to SDL 2.0 and drop support for the non-OpenGL render path
Michael Pavone <pavone@retrodev.com>
parents: 682
diff changeset
24 LIBS=sdl2 glew gl
744
fc68992cf18d Merge windows branch with latest changes
Michael Pavone <pavone@retrodev.com>
parents: 743 735
diff changeset
25 endif #Darwin
559
6b248602ab84 blastem builds and almost works on OS X now
Mike Pavone <pavone@retrodev.com>
parents: 557
diff changeset
26
749
6f439a197f61 Fix check for DEBUG in Makefile
Michael Pavone <pavone@retrodev.com>
parents: 746
diff changeset
27 ifdef DEBUG
755
7306b3967c51 Cleanup some warnings under clang through a combination of code fixes and supressing specific warnings
Michael Pavone <pavone@retrodev.com>
parents: 749
diff changeset
28 CFLAGS:=-ggdb -std=gnu99 $(shell pkg-config --cflags-only-I $(LIBS)) -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration -Wno-unused-value -Wno-logical-op-parentheses
573
29d99db6f55d Enable link time optimization
Michael Pavone <pavone@retrodev.com>
parents: 570
diff changeset
29 LDFLAGS:=-ggdb -lm $(shell pkg-config --libs $(LIBS))
229
d60837a7d18a Improve color rendering accuracy and optimize SDL renderer a bit
Mike Pavone <pavone@retrodev.com>
parents: 208
diff changeset
30 else
755
7306b3967c51 Cleanup some warnings under clang through a combination of code fixes and supressing specific warnings
Michael Pavone <pavone@retrodev.com>
parents: 749
diff changeset
31 CFLAGS:=-O2 -flto -std=gnu99 $(shell pkg-config --cflags-only-I $(LIBS)) -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration -Wno-unused-value -Wno-logical-op-parentheses
573
29d99db6f55d Enable link time optimization
Michael Pavone <pavone@retrodev.com>
parents: 570
diff changeset
32 LDFLAGS:=-O2 -flto -lm $(shell pkg-config --libs $(LIBS))
744
fc68992cf18d Merge windows branch with latest changes
Michael Pavone <pavone@retrodev.com>
parents: 743 735
diff changeset
33 endif #DEBUG
fc68992cf18d Merge windows branch with latest changes
Michael Pavone <pavone@retrodev.com>
parents: 743 735
diff changeset
34 endif #Windows
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
35
735
539d12fa6a4d Add a define in both the source and Makefile for enabling logging of z80 instruction address/cycle counts. Fix Z80 in/out instructions to eliminate assumptions about which registers are stored in native regs. Fix read_16 to not corrupt the low byte when the read has to call into a C function.
Michael Pavone <pavone@retrodev.com>
parents: 727
diff changeset
36 ifdef Z80_LOG_ADDRESS
539d12fa6a4d Add a define in both the source and Makefile for enabling logging of z80 instruction address/cycle counts. Fix Z80 in/out instructions to eliminate assumptions about which registers are stored in native regs. Fix read_16 to not corrupt the low byte when the read has to call into a C function.
Michael Pavone <pavone@retrodev.com>
parents: 727
diff changeset
37 CFLAGS+= -DZ80_LOG_ADDRESS
539d12fa6a4d Add a define in both the source and Makefile for enabling logging of z80 instruction address/cycle counts. Fix Z80 in/out instructions to eliminate assumptions about which registers are stored in native regs. Fix read_16 to not corrupt the low byte when the read has to call into a C function.
Michael Pavone <pavone@retrodev.com>
parents: 727
diff changeset
38 endif
539d12fa6a4d Add a define in both the source and Makefile for enabling logging of z80 instruction address/cycle counts. Fix Z80 in/out instructions to eliminate assumptions about which registers are stored in native regs. Fix read_16 to not corrupt the low byte when the read has to call into a C function.
Michael Pavone <pavone@retrodev.com>
parents: 727
diff changeset
39
426
add9e2f5c0e3 Make VDP render in native pixel format of the renderer for a modest performance gain and to make it easier to use OpenGL for rendering
Mike Pavone <pavone@retrodev.com>
parents: 419
diff changeset
40 ifdef PROFILE
add9e2f5c0e3 Make VDP render in native pixel format of the renderer for a modest performance gain and to make it easier to use OpenGL for rendering
Mike Pavone <pavone@retrodev.com>
parents: 419
diff changeset
41 CFLAGS+= -pg
add9e2f5c0e3 Make VDP render in native pixel format of the renderer for a modest performance gain and to make it easier to use OpenGL for rendering
Mike Pavone <pavone@retrodev.com>
parents: 419
diff changeset
42 LDFLAGS+= -pg
add9e2f5c0e3 Make VDP render in native pixel format of the renderer for a modest performance gain and to make it easier to use OpenGL for rendering
Mike Pavone <pavone@retrodev.com>
parents: 419
diff changeset
43 endif
495
39cad98d2789 Allow OpenGL support to be disabled at compile time. Move generic utility functions out of config.c
Mike Pavone <pavone@retrodev.com>
parents: 488
diff changeset
44 ifdef NOGL
39cad98d2789 Allow OpenGL support to be disabled at compile time. Move generic utility functions out of config.c
Mike Pavone <pavone@retrodev.com>
parents: 488
diff changeset
45 CFLAGS+= -DDISABLE_OPENGL
39cad98d2789 Allow OpenGL support to be disabled at compile time. Move generic utility functions out of config.c
Mike Pavone <pavone@retrodev.com>
parents: 488
diff changeset
46 endif
426
add9e2f5c0e3 Make VDP render in native pixel format of the renderer for a modest performance gain and to make it easier to use OpenGL for rendering
Mike Pavone <pavone@retrodev.com>
parents: 419
diff changeset
47
630
47123183c336 Improve support for disassembling 68010+ binaries
Michael Pavone <pavone@retrodev.com>
parents: 524
diff changeset
48 ifdef M68030
47123183c336 Improve support for disassembling 68010+ binaries
Michael Pavone <pavone@retrodev.com>
parents: 524
diff changeset
49 CFLAGS+= -DM68030
47123183c336 Improve support for disassembling 68010+ binaries
Michael Pavone <pavone@retrodev.com>
parents: 524
diff changeset
50 endif
47123183c336 Improve support for disassembling 68010+ binaries
Michael Pavone <pavone@retrodev.com>
parents: 524
diff changeset
51 ifdef M68020
47123183c336 Improve support for disassembling 68010+ binaries
Michael Pavone <pavone@retrodev.com>
parents: 524
diff changeset
52 CFLAGS+= -DM68020
47123183c336 Improve support for disassembling 68010+ binaries
Michael Pavone <pavone@retrodev.com>
parents: 524
diff changeset
53 endif
47123183c336 Improve support for disassembling 68010+ binaries
Michael Pavone <pavone@retrodev.com>
parents: 524
diff changeset
54 ifdef M68010
47123183c336 Improve support for disassembling 68010+ binaries
Michael Pavone <pavone@retrodev.com>
parents: 524
diff changeset
55 CFLAGS+= -DM68010
47123183c336 Improve support for disassembling 68010+ binaries
Michael Pavone <pavone@retrodev.com>
parents: 524
diff changeset
56 endif
47123183c336 Improve support for disassembling 68010+ binaries
Michael Pavone <pavone@retrodev.com>
parents: 524
diff changeset
57
548
a3afee2271ce Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents: 524
diff changeset
58 ifndef CPU
a3afee2271ce Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents: 524
diff changeset
59 CPU:=$(shell uname -m)
a3afee2271ce Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents: 524
diff changeset
60 endif
a3afee2271ce Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents: 524
diff changeset
61
559
6b248602ab84 blastem builds and almost works on OS X now
Mike Pavone <pavone@retrodev.com>
parents: 557
diff changeset
62 ifeq ($(OS),Darwin)
6b248602ab84 blastem builds and almost works on OS X now
Mike Pavone <pavone@retrodev.com>
parents: 557
diff changeset
63 LDFLAGS+= -framework OpenGL
6b248602ab84 blastem builds and almost works on OS X now
Mike Pavone <pavone@retrodev.com>
parents: 557
diff changeset
64 endif
550
96489fb27dbf Apart from the Z80 core, BlastEm now supports 32-bit x86
Michael Pavone <pavone@retrodev.com>
parents: 548
diff changeset
65
745
daa31ee7d8cd Get windows build compiling again post-merge
Michael Pavone <pavone@retrodev.com>
parents: 744
diff changeset
66 TRANSOBJS=gen.o backend.o $(MEM)
570
76bba9ffe351 Initial stab at separating the generic parts of the 68K core from the host-cpu specific parts.
Michael Pavone <pavone@retrodev.com>
parents: 568
diff changeset
67 M68KOBJS=68kinst.o m68k_core.o
550
96489fb27dbf Apart from the Z80 core, BlastEm now supports 32-bit x86
Michael Pavone <pavone@retrodev.com>
parents: 548
diff changeset
68 ifeq ($(CPU),x86_64)
727
59a98179d3ba Eliminate runtime.S/runtime_32.S.
Michael Pavone <pavone@retrodev.com>
parents: 720
diff changeset
69 M68KOBJS+= m68k_core_x86.o
568
19e517735215 Small Makefile change that was missed in the last commit
Michael Pavone <pavone@retrodev.com>
parents: 565
diff changeset
70 TRANSOBJS+= gen_x86.o backend_x86.o
550
96489fb27dbf Apart from the Z80 core, BlastEm now supports 32-bit x86
Michael Pavone <pavone@retrodev.com>
parents: 548
diff changeset
71 else
96489fb27dbf Apart from the Z80 core, BlastEm now supports 32-bit x86
Michael Pavone <pavone@retrodev.com>
parents: 548
diff changeset
72 ifeq ($(CPU),i686)
727
59a98179d3ba Eliminate runtime.S/runtime_32.S.
Michael Pavone <pavone@retrodev.com>
parents: 720
diff changeset
73 M68KOBJS+= m68k_core_x86.o
568
19e517735215 Small Makefile change that was missed in the last commit
Michael Pavone <pavone@retrodev.com>
parents: 565
diff changeset
74 TRANSOBJS+= gen_x86.o backend_x86.o
550
96489fb27dbf Apart from the Z80 core, BlastEm now supports 32-bit x86
Michael Pavone <pavone@retrodev.com>
parents: 548
diff changeset
75 endif
96489fb27dbf Apart from the Z80 core, BlastEm now supports 32-bit x86
Michael Pavone <pavone@retrodev.com>
parents: 548
diff changeset
76 endif
96489fb27dbf Apart from the Z80 core, BlastEm now supports 32-bit x86
Michael Pavone <pavone@retrodev.com>
parents: 548
diff changeset
77
593
5ef3fe516da9 Z80 core is sort of working again
Michael Pavone <pavone@retrodev.com>
parents: 573
diff changeset
78 Z80OBJS=z80inst.o z80_to_x86.o
419
d1bf9734ce94 Cleanup makefile and link math library
Mike Pavone <pavone@retrodev.com>
parents: 408
diff changeset
79 AUDIOOBJS=ym2612.o psg.o wave.o
495
39cad98d2789 Allow OpenGL support to be disabled at compile time. Move generic utility functions out of config.c
Mike Pavone <pavone@retrodev.com>
parents: 488
diff changeset
80 CONFIGOBJS=config.o tern.o util.o
419
d1bf9734ce94 Cleanup makefile and link math library
Mike Pavone <pavone@retrodev.com>
parents: 408
diff changeset
81
548
a3afee2271ce Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents: 524
diff changeset
82 MAINOBJS=blastem.o debug.o gdb_remote.o vdp.o render_sdl.o io.o $(CONFIGOBJS) gst.o $(M68KOBJS) $(TRANSOBJS) $(AUDIOOBJS)
a3afee2271ce Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents: 524
diff changeset
83
a3afee2271ce Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents: 524
diff changeset
84 ifeq ($(CPU),x86_64)
727
59a98179d3ba Eliminate runtime.S/runtime_32.S.
Michael Pavone <pavone@retrodev.com>
parents: 720
diff changeset
85 CFLAGS+=-DX86_64 -m64
59a98179d3ba Eliminate runtime.S/runtime_32.S.
Michael Pavone <pavone@retrodev.com>
parents: 720
diff changeset
86 LDFLAGS+=-m64
548
a3afee2271ce Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents: 524
diff changeset
87 else
a3afee2271ce Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents: 524
diff changeset
88 ifeq ($(CPU),i686)
727
59a98179d3ba Eliminate runtime.S/runtime_32.S.
Michael Pavone <pavone@retrodev.com>
parents: 720
diff changeset
89 CFLAGS+=-DX86_32 -m32
59a98179d3ba Eliminate runtime.S/runtime_32.S.
Michael Pavone <pavone@retrodev.com>
parents: 720
diff changeset
90 LDFLAGS+=-m32
548
a3afee2271ce Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents: 524
diff changeset
91 endif
a3afee2271ce Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents: 524
diff changeset
92 endif
a3afee2271ce Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents: 524
diff changeset
93
565
9324f721efa6 Add a separate flag/define for disabling the Z80 at compile time to ease refactoring
Michael Pavone <pavone@retrodev.com>
parents: 563
diff changeset
94 ifdef NOZ80
9324f721efa6 Add a separate flag/define for disabling the Z80 at compile time to ease refactoring
Michael Pavone <pavone@retrodev.com>
parents: 563
diff changeset
95 CFLAGS+=-DNO_Z80
9324f721efa6 Add a separate flag/define for disabling the Z80 at compile time to ease refactoring
Michael Pavone <pavone@retrodev.com>
parents: 563
diff changeset
96 else
9324f721efa6 Add a separate flag/define for disabling the Z80 at compile time to ease refactoring
Michael Pavone <pavone@retrodev.com>
parents: 563
diff changeset
97 MAINOBJS+= $(Z80OBJS)
9324f721efa6 Add a separate flag/define for disabling the Z80 at compile time to ease refactoring
Michael Pavone <pavone@retrodev.com>
parents: 563
diff changeset
98 endif
9324f721efa6 Add a separate flag/define for disabling the Z80 at compile time to ease refactoring
Michael Pavone <pavone@retrodev.com>
parents: 563
diff changeset
99
745
daa31ee7d8cd Get windows build compiling again post-merge
Michael Pavone <pavone@retrodev.com>
parents: 744
diff changeset
100 ifeq ($(OS),Windows)
743
cf78cb045fa4 Adjusted Makefile to support linking against the static glew library from the standard download
Michael Pavone <pavone@retrodev.com>
parents: 742
diff changeset
101 MAINOBJS+= glew32s.lib
742
2e1b3b258523 Make Windows port a little less half-assed
Michael Pavone <pavone@retrodev.com>
parents: 741
diff changeset
102 endif
548
a3afee2271ce Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents: 524
diff changeset
103
465
dc322bc77ea2 Fix stateview. Update "all" target in Makefile.
Mike Pavone <pavone@retrodev.com>
parents: 451
diff changeset
104 all : dis zdis stateview vgmplay blastem
54
3b79cbcf6846 Get Flavio's color bar demo kind of sort of working
Mike Pavone <pavone@retrodev.com>
parents: 20
diff changeset
105
741
80a67be1770b Initial work on Windows port
Michael Pavone <pavone@retrodev.com>
parents: 573
diff changeset
106 $(BLASTEM) : $(MAINOBJS)
80a67be1770b Initial work on Windows port
Michael Pavone <pavone@retrodev.com>
parents: 573
diff changeset
107 $(CC) -o $(BLASTEM) $(MAINOBJS) $(LDFLAGS)
16
54fba9ef781b Add Makefile
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
108
631
de6f00204fa2 Add support for disassembling VOS program modules
Michael Pavone <pavone@retrodev.com>
parents: 630
diff changeset
109 dis : dis.o 68kinst.o tern.o vos_program_module.o
de6f00204fa2 Add support for disassembling VOS program modules
Michael Pavone <pavone@retrodev.com>
parents: 630
diff changeset
110 $(CC) -o dis dis.o 68kinst.o tern.o vos_program_module.o
199
69585e7d474f Add initial stab at Z80 decoder and disassembler
Mike Pavone <pavone@retrodev.com>
parents: 118
diff changeset
111
69585e7d474f Add initial stab at Z80 decoder and disassembler
Mike Pavone <pavone@retrodev.com>
parents: 118
diff changeset
112 zdis : zdis.o z80inst.o
69585e7d474f Add initial stab at Z80 decoder and disassembler
Mike Pavone <pavone@retrodev.com>
parents: 118
diff changeset
113 $(CC) -o zdis zdis.o z80inst.o
451
b7c3b2d22858 Added support for saving savestates. Added gst savestate format test harness
Mike Pavone <pavone@retrodev.com>
parents: 430
diff changeset
114
419
d1bf9734ce94 Cleanup makefile and link math library
Mike Pavone <pavone@retrodev.com>
parents: 408
diff changeset
115 libemu68k.a : $(M68KOBJS) $(TRANSOBJS)
d1bf9734ce94 Cleanup makefile and link math library
Mike Pavone <pavone@retrodev.com>
parents: 408
diff changeset
116 ar rcs libemu68k.a $(M68KOBJS) $(TRANSOBJS)
451
b7c3b2d22858 Added support for saving savestates. Added gst savestate format test harness
Mike Pavone <pavone@retrodev.com>
parents: 430
diff changeset
117
419
d1bf9734ce94 Cleanup makefile and link math library
Mike Pavone <pavone@retrodev.com>
parents: 408
diff changeset
118 trans : trans.o $(M68KOBJS) $(TRANSOBJS)
d1bf9734ce94 Cleanup makefile and link math library
Mike Pavone <pavone@retrodev.com>
parents: 408
diff changeset
119 $(CC) -o trans trans.o $(M68KOBJS) $(TRANSOBJS)
235
d9bf8e61c33c Get Z80 core working for simple programs
Mike Pavone <pavone@retrodev.com>
parents: 229
diff changeset
120
419
d1bf9734ce94 Cleanup makefile and link math library
Mike Pavone <pavone@retrodev.com>
parents: 408
diff changeset
121 transz80 : transz80.o $(Z80OBJS) $(TRANSOBJS)
505
b7b7a1cab44a The local clone on my laptop got messed up and some changes had not been pushed. This commit represents the status of the working copy from that clone. It unfortunately contains some changes that I did not intend to commit yet, but this seems like the best option at the moment.
Michael Pavone <pavone@retrodev.com>
parents: 495
diff changeset
122 $(CC) -o transz80 transz80.o $(Z80OBJS) $(TRANSOBJS)
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
123
419
d1bf9734ce94 Cleanup makefile and link math library
Mike Pavone <pavone@retrodev.com>
parents: 408
diff changeset
124 ztestrun : ztestrun.o $(Z80OBJS) $(TRANSOBJS)
505
b7b7a1cab44a The local clone on my laptop got messed up and some changes had not been pushed. This commit represents the status of the working copy from that clone. It unfortunately contains some changes that I did not intend to commit yet, but this seems like the best option at the moment.
Michael Pavone <pavone@retrodev.com>
parents: 495
diff changeset
125 $(CC) -o ztestrun ztestrun.o $(Z80OBJS) $(TRANSOBJS)
292
b970ea214ecb Added z80 test generator and z80 test runner.
Mike Pavone <pavone@retrodev.com>
parents: 288
diff changeset
126
b970ea214ecb Added z80 test generator and z80 test runner.
Mike Pavone <pavone@retrodev.com>
parents: 288
diff changeset
127 ztestgen : ztestgen.o z80inst.o
505
b7b7a1cab44a The local clone on my laptop got messed up and some changes had not been pushed. This commit represents the status of the working copy from that clone. It unfortunately contains some changes that I did not intend to commit yet, but this seems like the best option at the moment.
Michael Pavone <pavone@retrodev.com>
parents: 495
diff changeset
128 $(CC) -ggdb -o ztestgen ztestgen.o z80inst.o
292
b970ea214ecb Added z80 test generator and z80 test runner.
Mike Pavone <pavone@retrodev.com>
parents: 288
diff changeset
129
495
39cad98d2789 Allow OpenGL support to be disabled at compile time. Move generic utility functions out of config.c
Mike Pavone <pavone@retrodev.com>
parents: 488
diff changeset
130 stateview : stateview.o vdp.o render_sdl.o $(CONFIGOBJS) gst.o
39cad98d2789 Allow OpenGL support to be disabled at compile time. Move generic utility functions out of config.c
Mike Pavone <pavone@retrodev.com>
parents: 488
diff changeset
131 $(CC) -o stateview stateview.o vdp.o render_sdl.o $(CONFIGOBJS) gst.o $(LDFLAGS)
20
f664eeb55cb4 Mostly broken VDP core and savestate viewer
Mike Pavone <pavone@retrodev.com>
parents: 18
diff changeset
132
495
39cad98d2789 Allow OpenGL support to be disabled at compile time. Move generic utility functions out of config.c
Mike Pavone <pavone@retrodev.com>
parents: 488
diff changeset
133 vgmplay : vgmplay.o render_sdl.o $(CONFIGOBJS) $(AUDIOOBJS)
39cad98d2789 Allow OpenGL support to be disabled at compile time. Move generic utility functions out of config.c
Mike Pavone <pavone@retrodev.com>
parents: 488
diff changeset
134 $(CC) -o vgmplay vgmplay.o render_sdl.o $(CONFIGOBJS) $(AUDIOOBJS) $(LDFLAGS)
720
15d9359fd771 Add some tests for hint timing and fix it properly this time.
Michael Pavone <pavone@retrodev.com>
parents: 719
diff changeset
135
15d9359fd771 Add some tests for hint timing and fix it properly this time.
Michael Pavone <pavone@retrodev.com>
parents: 719
diff changeset
136 test : test.o vdp.o
15d9359fd771 Add some tests for hint timing and fix it properly this time.
Michael Pavone <pavone@retrodev.com>
parents: 719
diff changeset
137 $(CC) -o test test.o vdp.o
408
a13a83934ba3 Add primitive vgm player for testing
Mike Pavone <pavone@retrodev.com>
parents: 407
diff changeset
138
451
b7c3b2d22858 Added support for saving savestates. Added gst savestate format test harness
Mike Pavone <pavone@retrodev.com>
parents: 430
diff changeset
139 testgst : testgst.o gst.o
b7c3b2d22858 Added support for saving savestates. Added gst savestate format test harness
Mike Pavone <pavone@retrodev.com>
parents: 430
diff changeset
140 $(CC) -o testgst testgst.o gst.o
b7c3b2d22858 Added support for saving savestates. Added gst savestate format test harness
Mike Pavone <pavone@retrodev.com>
parents: 430
diff changeset
141
563
c8fefa140c80 Moved some generic stuff from backend.h gen_arm.h and gen_arm.c into gen.h and gen.c. Added a couple fields to cpu_options so that gen_mem_fun can be made guest CPU generic
Michael Pavone <pavone@retrodev.com>
parents: 557
diff changeset
142 test_x86 : test_x86.o gen_x86.o gen.o
c8fefa140c80 Moved some generic stuff from backend.h gen_arm.h and gen_arm.c into gen.h and gen.c. Added a couple fields to cpu_options so that gen_mem_fun can be made guest CPU generic
Michael Pavone <pavone@retrodev.com>
parents: 557
diff changeset
143 $(CC) -o test_x86 test_x86.o gen_x86.o gen.o
16
54fba9ef781b Add Makefile
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
144
563
c8fefa140c80 Moved some generic stuff from backend.h gen_arm.h and gen_arm.c into gen.h and gen.c. Added a couple fields to cpu_options so that gen_mem_fun can be made guest CPU generic
Michael Pavone <pavone@retrodev.com>
parents: 557
diff changeset
145 test_arm : test_arm.o gen_arm.o mem.o gen.o
c8fefa140c80 Moved some generic stuff from backend.h gen_arm.h and gen_arm.c into gen.h and gen.c. Added a couple fields to cpu_options so that gen_mem_fun can be made guest CPU generic
Michael Pavone <pavone@retrodev.com>
parents: 557
diff changeset
146 $(CC) -o test_arm test_arm.o gen_arm.o mem.o gen.o
553
1af6c1052993 Added untested code for generating ARM machine code
Mike Pavone <pavone@retrodev.com>
parents: 552
diff changeset
147
16
54fba9ef781b Add Makefile
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
148 gen_fib : gen_fib.o gen_x86.o mem.o
54fba9ef781b Add Makefile
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
149 $(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
150
570
76bba9ffe351 Initial stab at separating the generic parts of the 68K core from the host-cpu specific parts.
Michael Pavone <pavone@retrodev.com>
parents: 568
diff changeset
151 offsets : offsets.c z80_to_x86.h m68k_core.h
240
ed540dd4cf2b Add header dependencies to offsets
Mike Pavone <pavone@retrodev.com>
parents: 235
diff changeset
152 $(CC) -o offsets offsets.c
451
b7c3b2d22858 Added support for saving savestates. Added gst savestate format test harness
Mike Pavone <pavone@retrodev.com>
parents: 430
diff changeset
153
631
de6f00204fa2 Add support for disassembling VOS program modules
Michael Pavone <pavone@retrodev.com>
parents: 630
diff changeset
154 vos_prog_info : vos_prog_info.o vos_program_module.o
de6f00204fa2 Add support for disassembling VOS program modules
Michael Pavone <pavone@retrodev.com>
parents: 630
diff changeset
155 $(CC) -o vos_prog_info vos_prog_info.o vos_program_module.o
de6f00204fa2 Add support for disassembling VOS program modules
Michael Pavone <pavone@retrodev.com>
parents: 630
diff changeset
156
16
54fba9ef781b Add Makefile
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
157 %.o : %.S
54fba9ef781b Add Makefile
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
158 $(CC) -c -o $@ $<
54fba9ef781b Add Makefile
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
159
54fba9ef781b Add Makefile
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
160 %.o : %.c
229
d60837a7d18a Improve color rendering accuracy and optimize SDL renderer a bit
Mike Pavone <pavone@retrodev.com>
parents: 208
diff changeset
161 $(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
162
3e7bfde7606e M68K to x86 translation works for a limited subset of instructions and addressing modes
Mike Pavone <pavone@retrodev.com>
parents: 16
diff changeset
163 %.bin : %.s68
646
fa345ce3e5bd Produce a listing file when assembling 68K test ROMs
Michael Pavone <pavone@retrodev.com>
parents: 631
diff changeset
164 vasmm68k_mot -Fbin -m68000 -no-opt -spaces -o $@ -L $@.list $<
16
54fba9ef781b Add Makefile
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
165
199
69585e7d474f Add initial stab at Z80 decoder and disassembler
Mike Pavone <pavone@retrodev.com>
parents: 118
diff changeset
166 %.bin : %.sz8
69585e7d474f Add initial stab at Z80 decoder and disassembler
Mike Pavone <pavone@retrodev.com>
parents: 118
diff changeset
167 vasmz80_mot -Fbin -spaces -o $@ $<
69585e7d474f Add initial stab at Z80 decoder and disassembler
Mike Pavone <pavone@retrodev.com>
parents: 118
diff changeset
168
16
54fba9ef781b Add Makefile
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
169 clean :
20
f664eeb55cb4 Mostly broken VDP core and savestate viewer
Mike Pavone <pavone@retrodev.com>
parents: 18
diff changeset
170 rm -rf dis trans stateview test_x86 gen_fib *.o