Mercurial > repos > blastem
annotate Makefile @ 1383:18cf08cd67e0
Updated changelog for 0.5.0 release
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 30 May 2017 23:39:09 -0700 |
parents | 5ceb316c479a |
children | d94855080529 |
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 |
805 | 4 FIXUP:=true |
559
6b248602ab84
blastem builds and almost works on OS X now
Mike Pavone <pavone@retrodev.com>
parents:
557
diff
changeset
|
5 |
744
fc68992cf18d
Merge windows branch with latest changes
Michael Pavone <pavone@retrodev.com>
diff
changeset
|
6 ifeq ($(OS),Windows) |
795
bce97fc0bb8a
Fix mingw-w64 build and cross-compilation
=?UTF-8?q?Higor=20Eur=C3=ADpedes?= <heuripedes@gmail.com>
parents:
783
diff
changeset
|
7 ifndef SDL2_PREFIX |
1244
0a34e31c4fd0
Update Windows build to use mingw-w64 cross compiler rather than Wine
Michael Pavone <pavone@retrodev.com>
parents:
1228
diff
changeset
|
8 SDL2_PREFIX:="sdl/i686-w64-mingw32" |
0a34e31c4fd0
Update Windows build to use mingw-w64 cross compiler rather than Wine
Michael Pavone <pavone@retrodev.com>
parents:
1228
diff
changeset
|
9 endif |
0a34e31c4fd0
Update Windows build to use mingw-w64 cross compiler rather than Wine
Michael Pavone <pavone@retrodev.com>
parents:
1228
diff
changeset
|
10 ifndef GLEW_PREFIX |
0a34e31c4fd0
Update Windows build to use mingw-w64 cross compiler rather than Wine
Michael Pavone <pavone@retrodev.com>
parents:
1228
diff
changeset
|
11 GLEW_PREFIX:=glew |
795
bce97fc0bb8a
Fix mingw-w64 build and cross-compilation
=?UTF-8?q?Higor=20Eur=C3=ADpedes?= <heuripedes@gmail.com>
parents:
783
diff
changeset
|
12 endif |
bce97fc0bb8a
Fix mingw-w64 build and cross-compilation
=?UTF-8?q?Higor=20Eur=C3=ADpedes?= <heuripedes@gmail.com>
parents:
783
diff
changeset
|
13 ifndef GLEW32S_LIB |
1244
0a34e31c4fd0
Update Windows build to use mingw-w64 cross compiler rather than Wine
Michael Pavone <pavone@retrodev.com>
parents:
1228
diff
changeset
|
14 GLEW32S_LIB:=$(GLEW_PREFIX)/lib/Release/Win32/glew32s.lib |
795
bce97fc0bb8a
Fix mingw-w64 build and cross-compilation
=?UTF-8?q?Higor=20Eur=C3=ADpedes?= <heuripedes@gmail.com>
parents:
783
diff
changeset
|
15 endif |
741
80a67be1770b
Initial work on Windows port
Michael Pavone <pavone@retrodev.com>
parents:
573
diff
changeset
|
16 |
80a67be1770b
Initial work on Windows port
Michael Pavone <pavone@retrodev.com>
parents:
573
diff
changeset
|
17 MEM:=mem_win.o |
794
792be135d3af
Spawn a terminal for the debugger when needed if we are not already attached to one
Michael Pavone <pavone@retrodev.com>
parents:
783
diff
changeset
|
18 TERMINAL:=terminal_win.o |
805 | 19 EXE:=.exe |
1244
0a34e31c4fd0
Update Windows build to use mingw-w64 cross compiler rather than Wine
Michael Pavone <pavone@retrodev.com>
parents:
1228
diff
changeset
|
20 CC:=i686-w64-mingw32-gcc-win32 |
0a34e31c4fd0
Update Windows build to use mingw-w64 cross compiler rather than Wine
Michael Pavone <pavone@retrodev.com>
parents:
1228
diff
changeset
|
21 CFLAGS:=-std=gnu99 -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration -I"$(SDL2_PREFIX)/include/SDL2" -I"$(GLEW_PREFIX)/include" -DGLEW_STATIC |
803 | 22 LDFLAGS:= $(GLEW32S_LIB) -L"$(SDL2_PREFIX)/lib" -lm -lmingw32 -lSDL2main -lSDL2 -lws2_32 -lopengl32 -lglu32 -mwindows |
741
80a67be1770b
Initial work on Windows port
Michael Pavone <pavone@retrodev.com>
parents:
573
diff
changeset
|
23 CPU:=i686 |
80a67be1770b
Initial work on Windows port
Michael Pavone <pavone@retrodev.com>
parents:
573
diff
changeset
|
24 |
80a67be1770b
Initial work on Windows port
Michael Pavone <pavone@retrodev.com>
parents:
573
diff
changeset
|
25 else |
80a67be1770b
Initial work on Windows port
Michael Pavone <pavone@retrodev.com>
parents:
573
diff
changeset
|
26 |
80a67be1770b
Initial work on Windows port
Michael Pavone <pavone@retrodev.com>
parents:
573
diff
changeset
|
27 MEM:=mem.o |
794
792be135d3af
Spawn a terminal for the debugger when needed if we are not already attached to one
Michael Pavone <pavone@retrodev.com>
parents:
783
diff
changeset
|
28 TERMINAL:=terminal.o |
805 | 29 EXE:= |
741
80a67be1770b
Initial work on Windows port
Michael Pavone <pavone@retrodev.com>
parents:
573
diff
changeset
|
30 |
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
|
31 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
|
32 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
|
33 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
|
34 LIBS=sdl2 glew gl |
744
fc68992cf18d
Merge windows branch with latest changes
Michael Pavone <pavone@retrodev.com>
diff
changeset
|
35 endif #Darwin |
559
6b248602ab84
blastem builds and almost works on OS X now
Mike Pavone <pavone@retrodev.com>
parents:
557
diff
changeset
|
36 |
783
e64975fc5f98
Fix stateview build and fix Makefile to use /bin/echo since builtin echo does not always support -e
Michael Pavone <pavone@retrodev.com>
parents:
764
diff
changeset
|
37 HAS_PROC:=$(shell if [ -d /proc ]; then /bin/echo -e -DHAS_PROC; fi) |
1073
0eb4264c2287
Make the Makefile more OpenBSD friendly. LTO is not supported on the super old version of GCC it uses. uname -m reports different names than Linux. compiler will return error on rather than just warning for unknown options
Michael Pavone <pavone@retrodev.com>
parents:
1025
diff
changeset
|
38 CFLAGS:=-std=gnu99 -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration -Wno-unused-value $(HAS_PROC) |
0eb4264c2287
Make the Makefile more OpenBSD friendly. LTO is not supported on the super old version of GCC it uses. uname -m reports different names than Linux. compiler will return error on rather than just warning for unknown options
Michael Pavone <pavone@retrodev.com>
parents:
1025
diff
changeset
|
39 ifeq ($(OS),Darwin) |
0eb4264c2287
Make the Makefile more OpenBSD friendly. LTO is not supported on the super old version of GCC it uses. uname -m reports different names than Linux. compiler will return error on rather than just warning for unknown options
Michael Pavone <pavone@retrodev.com>
parents:
1025
diff
changeset
|
40 #This should really be based on whether or not the C compiler is clang rather than based on the OS |
0eb4264c2287
Make the Makefile more OpenBSD friendly. LTO is not supported on the super old version of GCC it uses. uname -m reports different names than Linux. compiler will return error on rather than just warning for unknown options
Michael Pavone <pavone@retrodev.com>
parents:
1025
diff
changeset
|
41 CFLAGS+= -Wno-logical-op-parentheses |
0eb4264c2287
Make the Makefile more OpenBSD friendly. LTO is not supported on the super old version of GCC it uses. uname -m reports different names than Linux. compiler will return error on rather than just warning for unknown options
Michael Pavone <pavone@retrodev.com>
parents:
1025
diff
changeset
|
42 endif |
761
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
43 ifdef PORTABLE |
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
44 CFLAGS+= -DGLEW_STATIC -Iglew/include |
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
45 LDFLAGS:=-lm glew/lib/libGLEW.a |
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
46 |
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
47 ifeq ($(OS),Darwin) |
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
48 CFLAGS+= -IFrameworks/SDL2.framework/Headers |
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
49 LDFLAGS+= -FFrameworks -framework SDL2 -framework OpenGL |
805 | 50 FIXUP:=install_name_tool -change @rpath/SDL2.framework/Versions/A/SDL2 @executable_path/Frameworks/SDL2.framework/Versions/A/SDL2 |
762
206c449eaa81
Get "portable" builds working on Linux and add a build time check for whether /proc exists
Michael Pavone <pavone@retrodev.com>
parents:
761
diff
changeset
|
51 else |
206c449eaa81
Get "portable" builds working on Linux and add a build time check for whether /proc exists
Michael Pavone <pavone@retrodev.com>
parents:
761
diff
changeset
|
52 CFLAGS+= -Isdl/include |
206c449eaa81
Get "portable" builds working on Linux and add a build time check for whether /proc exists
Michael Pavone <pavone@retrodev.com>
parents:
761
diff
changeset
|
53 LDFLAGS+= -Wl,-rpath='$$ORIGIN/lib' -Llib -lSDL2 $(shell pkg-config --libs gl) |
761
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
54 endif #Darwin |
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
55 |
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
56 else |
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
57 CFLAGS:=$(shell pkg-config --cflags-only-I $(LIBS)) $(CFLAGS) |
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
58 LDFLAGS:=-lm $(shell pkg-config --libs $(LIBS)) |
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
59 |
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
60 ifeq ($(OS),Darwin) |
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
61 LDFLAGS+= -framework OpenGL |
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
62 endif |
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
63 |
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
64 endif #PORTABLE |
824
3b8267fd1687
Allow for LTO on Windows
Michael Pavone <pavone@retrodev.com>
parents:
820
diff
changeset
|
65 endif #Windows |
761
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
66 |
749
6f439a197f61
Fix check for DEBUG in Makefile
Michael Pavone <pavone@retrodev.com>
parents:
746
diff
changeset
|
67 ifdef DEBUG |
761
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
68 CFLAGS:=-ggdb $(CFLAGS) |
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
69 LDFLAGS:=-ggdb $(LDFLAGS) |
229
d60837a7d18a
Improve color rendering accuracy and optimize SDL renderer a bit
Mike Pavone <pavone@retrodev.com>
parents:
208
diff
changeset
|
70 else |
1073
0eb4264c2287
Make the Makefile more OpenBSD friendly. LTO is not supported on the super old version of GCC it uses. uname -m reports different names than Linux. compiler will return error on rather than just warning for unknown options
Michael Pavone <pavone@retrodev.com>
parents:
1025
diff
changeset
|
71 ifdef NOLTO |
0eb4264c2287
Make the Makefile more OpenBSD friendly. LTO is not supported on the super old version of GCC it uses. uname -m reports different names than Linux. compiler will return error on rather than just warning for unknown options
Michael Pavone <pavone@retrodev.com>
parents:
1025
diff
changeset
|
72 CFLAGS:=-O2 $(CFLAGS) |
0eb4264c2287
Make the Makefile more OpenBSD friendly. LTO is not supported on the super old version of GCC it uses. uname -m reports different names than Linux. compiler will return error on rather than just warning for unknown options
Michael Pavone <pavone@retrodev.com>
parents:
1025
diff
changeset
|
73 LDFLAGS:=-O2 $(LDFLAGS) |
0eb4264c2287
Make the Makefile more OpenBSD friendly. LTO is not supported on the super old version of GCC it uses. uname -m reports different names than Linux. compiler will return error on rather than just warning for unknown options
Michael Pavone <pavone@retrodev.com>
parents:
1025
diff
changeset
|
74 else |
761
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
75 CFLAGS:=-O2 -flto $(CFLAGS) |
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
76 LDFLAGS:=-O2 -flto $(LDFLAGS) |
1073
0eb4264c2287
Make the Makefile more OpenBSD friendly. LTO is not supported on the super old version of GCC it uses. uname -m reports different names than Linux. compiler will return error on rather than just warning for unknown options
Michael Pavone <pavone@retrodev.com>
parents:
1025
diff
changeset
|
77 endif #NOLTO |
744
fc68992cf18d
Merge windows branch with latest changes
Michael Pavone <pavone@retrodev.com>
diff
changeset
|
78 endif #DEBUG |
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
|
79 |
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
|
80 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
|
81 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
|
82 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
|
83 |
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
|
84 ifdef PROFILE |
1299
da1ffc4026c4
Fix latching of V32 mode bit
Michael Pavone <pavone@retrodev.com>
parents:
1264
diff
changeset
|
85 LDFLAGS+= -Wl,--no-as-needed -lprofiler -Wl,--as-needed |
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
|
86 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
|
87 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
|
88 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
|
89 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
|
90 |
630
47123183c336
Improve support for disassembling 68010+ binaries
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
91 ifdef M68030 |
47123183c336
Improve support for disassembling 68010+ binaries
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
92 CFLAGS+= -DM68030 |
47123183c336
Improve support for disassembling 68010+ binaries
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
93 endif |
47123183c336
Improve support for disassembling 68010+ binaries
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
94 ifdef M68020 |
47123183c336
Improve support for disassembling 68010+ binaries
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
95 CFLAGS+= -DM68020 |
47123183c336
Improve support for disassembling 68010+ binaries
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
96 endif |
47123183c336
Improve support for disassembling 68010+ binaries
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
97 ifdef M68010 |
47123183c336
Improve support for disassembling 68010+ binaries
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
98 CFLAGS+= -DM68010 |
47123183c336
Improve support for disassembling 68010+ binaries
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
99 endif |
47123183c336
Improve support for disassembling 68010+ binaries
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
100 |
548
a3afee2271ce
Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
101 ifndef CPU |
a3afee2271ce
Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
102 CPU:=$(shell uname -m) |
a3afee2271ce
Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
103 endif |
a3afee2271ce
Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
104 |
1073
0eb4264c2287
Make the Makefile more OpenBSD friendly. LTO is not supported on the super old version of GCC it uses. uname -m reports different names than Linux. compiler will return error on rather than just warning for unknown options
Michael Pavone <pavone@retrodev.com>
parents:
1025
diff
changeset
|
105 #OpenBSD uses different names for these architectures |
0eb4264c2287
Make the Makefile more OpenBSD friendly. LTO is not supported on the super old version of GCC it uses. uname -m reports different names than Linux. compiler will return error on rather than just warning for unknown options
Michael Pavone <pavone@retrodev.com>
parents:
1025
diff
changeset
|
106 ifeq ($(CPU),amd64) |
0eb4264c2287
Make the Makefile more OpenBSD friendly. LTO is not supported on the super old version of GCC it uses. uname -m reports different names than Linux. compiler will return error on rather than just warning for unknown options
Michael Pavone <pavone@retrodev.com>
parents:
1025
diff
changeset
|
107 CPU:=x86_64 |
0eb4264c2287
Make the Makefile more OpenBSD friendly. LTO is not supported on the super old version of GCC it uses. uname -m reports different names than Linux. compiler will return error on rather than just warning for unknown options
Michael Pavone <pavone@retrodev.com>
parents:
1025
diff
changeset
|
108 else |
0eb4264c2287
Make the Makefile more OpenBSD friendly. LTO is not supported on the super old version of GCC it uses. uname -m reports different names than Linux. compiler will return error on rather than just warning for unknown options
Michael Pavone <pavone@retrodev.com>
parents:
1025
diff
changeset
|
109 ifeq ($(CPU),i386) |
0eb4264c2287
Make the Makefile more OpenBSD friendly. LTO is not supported on the super old version of GCC it uses. uname -m reports different names than Linux. compiler will return error on rather than just warning for unknown options
Michael Pavone <pavone@retrodev.com>
parents:
1025
diff
changeset
|
110 CPU:=i686 |
0eb4264c2287
Make the Makefile more OpenBSD friendly. LTO is not supported on the super old version of GCC it uses. uname -m reports different names than Linux. compiler will return error on rather than just warning for unknown options
Michael Pavone <pavone@retrodev.com>
parents:
1025
diff
changeset
|
111 endif |
0eb4264c2287
Make the Makefile more OpenBSD friendly. LTO is not supported on the super old version of GCC it uses. uname -m reports different names than Linux. compiler will return error on rather than just warning for unknown options
Michael Pavone <pavone@retrodev.com>
parents:
1025
diff
changeset
|
112 endif |
0eb4264c2287
Make the Makefile more OpenBSD friendly. LTO is not supported on the super old version of GCC it uses. uname -m reports different names than Linux. compiler will return error on rather than just warning for unknown options
Michael Pavone <pavone@retrodev.com>
parents:
1025
diff
changeset
|
113 |
1303
208803173ebc
Implemented M68K trace mode. Some edge cases/SR update paths still need work
Michael Pavone <pavone@retrodev.com>
parents:
1299
diff
changeset
|
114 TRANSOBJS=gen.o backend.o $(MEM) arena.o tern.o |
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
|
115 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
|
116 ifeq ($(CPU),x86_64) |
727
59a98179d3ba
Eliminate runtime.S/runtime_32.S.
Michael Pavone <pavone@retrodev.com>
parents:
720
diff
changeset
|
117 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
|
118 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
|
119 else |
96489fb27dbf
Apart from the Z80 core, BlastEm now supports 32-bit x86
Michael Pavone <pavone@retrodev.com>
parents:
548
diff
changeset
|
120 ifeq ($(CPU),i686) |
727
59a98179d3ba
Eliminate runtime.S/runtime_32.S.
Michael Pavone <pavone@retrodev.com>
parents:
720
diff
changeset
|
121 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
|
122 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
|
123 endif |
96489fb27dbf
Apart from the Z80 core, BlastEm now supports 32-bit x86
Michael Pavone <pavone@retrodev.com>
parents:
548
diff
changeset
|
124 endif |
96489fb27dbf
Apart from the Z80 core, BlastEm now supports 32-bit x86
Michael Pavone <pavone@retrodev.com>
parents:
548
diff
changeset
|
125 |
593
5ef3fe516da9
Z80 core is sort of working again
Michael Pavone <pavone@retrodev.com>
parents:
573
diff
changeset
|
126 Z80OBJS=z80inst.o z80_to_x86.o |
419
d1bf9734ce94
Cleanup makefile and link math library
Mike Pavone <pavone@retrodev.com>
parents:
408
diff
changeset
|
127 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
|
128 CONFIGOBJS=config.o tern.o util.o |
419
d1bf9734ce94
Cleanup makefile and link math library
Mike Pavone <pavone@retrodev.com>
parents:
408
diff
changeset
|
129 |
1305
5ceb316c479a
Allow games to be specified in ROM DB via sha1 instead of product ID. Added a new ROM DB memory map device type fixed for emulating simple fixed value copy protection registers. Used those two features to support Ya Se Chuan Shuo via a ROM DB entry.
Michael Pavone <pavone@retrodev.com>
parents:
1303
diff
changeset
|
130 MAINOBJS=blastem.o system.o genesis.o debug.o gdb_remote.o vdp.o render_sdl.o ppm.o io.o romdb.o hash.o menu.o xband.o realtec.o $(TERMINAL) $(CONFIGOBJS) gst.o $(M68KOBJS) $(TRANSOBJS) $(AUDIOOBJS) |
548
a3afee2271ce
Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
131 |
a3afee2271ce
Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
132 ifeq ($(CPU),x86_64) |
727
59a98179d3ba
Eliminate runtime.S/runtime_32.S.
Michael Pavone <pavone@retrodev.com>
parents:
720
diff
changeset
|
133 CFLAGS+=-DX86_64 -m64 |
59a98179d3ba
Eliminate runtime.S/runtime_32.S.
Michael Pavone <pavone@retrodev.com>
parents:
720
diff
changeset
|
134 LDFLAGS+=-m64 |
548
a3afee2271ce
Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
135 else |
a3afee2271ce
Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
136 ifeq ($(CPU),i686) |
727
59a98179d3ba
Eliminate runtime.S/runtime_32.S.
Michael Pavone <pavone@retrodev.com>
parents:
720
diff
changeset
|
137 CFLAGS+=-DX86_32 -m32 |
59a98179d3ba
Eliminate runtime.S/runtime_32.S.
Michael Pavone <pavone@retrodev.com>
parents:
720
diff
changeset
|
138 LDFLAGS+=-m32 |
1073
0eb4264c2287
Make the Makefile more OpenBSD friendly. LTO is not supported on the super old version of GCC it uses. uname -m reports different names than Linux. compiler will return error on rather than just warning for unknown options
Michael Pavone <pavone@retrodev.com>
parents:
1025
diff
changeset
|
139 else |
0eb4264c2287
Make the Makefile more OpenBSD friendly. LTO is not supported on the super old version of GCC it uses. uname -m reports different names than Linux. compiler will return error on rather than just warning for unknown options
Michael Pavone <pavone@retrodev.com>
parents:
1025
diff
changeset
|
140 $(error $(CPU) is not a supported architecture) |
548
a3afee2271ce
Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
141 endif |
a3afee2271ce
Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
142 endif |
a3afee2271ce
Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
143 |
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
|
144 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
|
145 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
|
146 else |
1117
928a65750345
Initial support for Genesis/Megadrive PBC mode. VDP still needs Mode 4 to be useful.
Michael Pavone <pavone@retrodev.com>
parents:
1111
diff
changeset
|
147 MAINOBJS+= sms.o $(Z80OBJS) |
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
|
148 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
|
149 |
977
4cbc349a82a9
Inclue menu.bin in release directories. Added a Windows RC file and icon
Michael Pavone <pavone@retrodev.com>
parents:
941
diff
changeset
|
150 ifeq ($(OS),Windows) |
4cbc349a82a9
Inclue menu.bin in release directories. Added a Windows RC file and icon
Michael Pavone <pavone@retrodev.com>
parents:
941
diff
changeset
|
151 MAINOBJS+= res.o |
4cbc349a82a9
Inclue menu.bin in release directories. Added a Windows RC file and icon
Michael Pavone <pavone@retrodev.com>
parents:
941
diff
changeset
|
152 endif |
4cbc349a82a9
Inclue menu.bin in release directories. Added a Windows RC file and icon
Michael Pavone <pavone@retrodev.com>
parents:
941
diff
changeset
|
153 |
805 | 154 ALL=dis$(EXE) zdis$(EXE) stateview$(EXE) vgmplay$(EXE) blastem$(EXE) |
155 ifneq ($(OS),Windows) | |
156 ALL+= termhelper | |
742
2e1b3b258523
Make Windows port a little less half-assed
Michael Pavone <pavone@retrodev.com>
parents:
741
diff
changeset
|
157 endif |
548
a3afee2271ce
Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
158 |
794
792be135d3af
Spawn a terminal for the debugger when needed if we are not already attached to one
Michael Pavone <pavone@retrodev.com>
parents:
783
diff
changeset
|
159 all : $(ALL) |
54
3b79cbcf6846
Get Flavio's color bar demo kind of sort of working
Mike Pavone <pavone@retrodev.com>
parents:
20
diff
changeset
|
160 |
805 | 161 blastem$(EXE) : $(MAINOBJS) |
162 $(CC) -o $@ $^ $(LDFLAGS) | |
163 $(FIXUP) ./$@ | |
1080
382614130914
Some initial work on Atari Jaguar emulation
Michael Pavone <pavone@retrodev.com>
parents:
1073
diff
changeset
|
164 |
1087
6433d4d05934
Added placeholder code for video output hardware/object processor
Michael Pavone <pavone@retrodev.com>
parents:
1080
diff
changeset
|
165 blastjag$(EXE) : jaguar.o jag_video.o render_sdl.o $(M68KOBJS) $(TRANSOBJS) $(CONFIGOBJS) |
1080
382614130914
Some initial work on Atari Jaguar emulation
Michael Pavone <pavone@retrodev.com>
parents:
1073
diff
changeset
|
166 $(CC) -o $@ $^ $(LDFLAGS) |
16 | 167 |
805 | 168 dis$(EXE) : dis.o 68kinst.o tern.o vos_program_module.o |
836
124a58fdcf3a
Get trans program compiling again
Michael Pavone <pavone@retrodev.com>
parents:
824
diff
changeset
|
169 $(CC) -o $@ $^ |
1093
4987fddd42a0
Initial stab at jaguar disassemler
Michael Pavone <pavone@retrodev.com>
parents:
1087
diff
changeset
|
170 |
4987fddd42a0
Initial stab at jaguar disassemler
Michael Pavone <pavone@retrodev.com>
parents:
1087
diff
changeset
|
171 jagdis : jagdis.o jagcpu.o tern.o |
4987fddd42a0
Initial stab at jaguar disassemler
Michael Pavone <pavone@retrodev.com>
parents:
1087
diff
changeset
|
172 $(CC) -o $@ $^ |
199
69585e7d474f
Add initial stab at Z80 decoder and disassembler
Mike Pavone <pavone@retrodev.com>
parents:
118
diff
changeset
|
173 |
805 | 174 zdis$(EXE) : zdis.o z80inst.o |
836
124a58fdcf3a
Get trans program compiling again
Michael Pavone <pavone@retrodev.com>
parents:
824
diff
changeset
|
175 $(CC) -o $@ $^ |
451
b7c3b2d22858
Added support for saving savestates. Added gst savestate format test harness
Mike Pavone <pavone@retrodev.com>
parents:
430
diff
changeset
|
176 |
419
d1bf9734ce94
Cleanup makefile and link math library
Mike Pavone <pavone@retrodev.com>
parents:
408
diff
changeset
|
177 libemu68k.a : $(M68KOBJS) $(TRANSOBJS) |
d1bf9734ce94
Cleanup makefile and link math library
Mike Pavone <pavone@retrodev.com>
parents:
408
diff
changeset
|
178 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
|
179 |
836
124a58fdcf3a
Get trans program compiling again
Michael Pavone <pavone@retrodev.com>
parents:
824
diff
changeset
|
180 trans : trans.o $(M68KOBJS) $(TRANSOBJS) util.o |
124a58fdcf3a
Get trans program compiling again
Michael Pavone <pavone@retrodev.com>
parents:
824
diff
changeset
|
181 $(CC) -o trans trans.o $(M68KOBJS) $(TRANSOBJS) util.o |
235
d9bf8e61c33c
Get Z80 core working for simple programs
Mike Pavone <pavone@retrodev.com>
parents:
229
diff
changeset
|
182 |
419
d1bf9734ce94
Cleanup makefile and link math library
Mike Pavone <pavone@retrodev.com>
parents:
408
diff
changeset
|
183 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
|
184 $(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
|
185 |
419
d1bf9734ce94
Cleanup makefile and link math library
Mike Pavone <pavone@retrodev.com>
parents:
408
diff
changeset
|
186 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
|
187 $(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
|
188 |
b970ea214ecb
Added z80 test generator and z80 test runner.
Mike Pavone <pavone@retrodev.com>
parents:
288
diff
changeset
|
189 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
|
190 $(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
|
191 |
1264
555f2ac537e7
Fix secondary targets
Michael Pavone <pavone@retrodev.com>
parents:
1263
diff
changeset
|
192 stateview$(EXE) : stateview.o vdp.o render_sdl.o ppm.o $(CONFIGOBJS) gst.o |
805 | 193 $(CC) -o $@ $^ $(LDFLAGS) |
194 $(FIXUP) ./$@ | |
20
f664eeb55cb4
Mostly broken VDP core and savestate viewer
Mike Pavone <pavone@retrodev.com>
parents:
18
diff
changeset
|
195 |
1264
555f2ac537e7
Fix secondary targets
Michael Pavone <pavone@retrodev.com>
parents:
1263
diff
changeset
|
196 vgmplay$(EXE) : vgmplay.o render_sdl.o ppm.o $(CONFIGOBJS) $(AUDIOOBJS) |
805 | 197 $(CC) -o $@ $^ $(LDFLAGS) |
198 $(FIXUP) ./$@ | |
836
124a58fdcf3a
Get trans program compiling again
Michael Pavone <pavone@retrodev.com>
parents:
824
diff
changeset
|
199 |
820
cf6149b7c6e5
Implement a tiny bit of CPM BDOS and add a corresponding Z80 core driver so that simple CPM programs like ZEXDOC/ZEXALL can be run against my Z80 core
Michael Pavone <pavone@retrodev.com>
parents:
805
diff
changeset
|
200 blastcpm : blastcpm.o util.o $(Z80OBJS) $(TRANSOBJS) |
cf6149b7c6e5
Implement a tiny bit of CPM BDOS and add a corresponding Z80 core driver so that simple CPM programs like ZEXDOC/ZEXALL can be run against my Z80 core
Michael Pavone <pavone@retrodev.com>
parents:
805
diff
changeset
|
201 $(CC) -o $@ $^ |
408
a13a83934ba3
Add primitive vgm player for testing
Mike Pavone <pavone@retrodev.com>
parents:
407
diff
changeset
|
202 |
720
15d9359fd771
Add some tests for hint timing and fix it properly this time.
Michael Pavone <pavone@retrodev.com>
parents:
719
diff
changeset
|
203 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
|
204 $(CC) -o test test.o vdp.o |
408
a13a83934ba3
Add primitive vgm player for testing
Mike Pavone <pavone@retrodev.com>
parents:
407
diff
changeset
|
205 |
451
b7c3b2d22858
Added support for saving savestates. Added gst savestate format test harness
Mike Pavone <pavone@retrodev.com>
parents:
430
diff
changeset
|
206 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
|
207 $(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
|
208 |
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
|
209 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
|
210 $(CC) -o test_x86 test_x86.o gen_x86.o gen.o |
16 | 211 |
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
|
212 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
|
213 $(CC) -o test_arm test_arm.o gen_arm.o mem.o gen.o |
1172
14eb8ff4fb03
Added synthetic test for tracking down interrupt timing issues
Michael Pavone <pavone@retrodev.com>
parents:
1117
diff
changeset
|
214 |
14eb8ff4fb03
Added synthetic test for tracking down interrupt timing issues
Michael Pavone <pavone@retrodev.com>
parents:
1117
diff
changeset
|
215 test_int_timing : test_int_timing.o vdp.o |
14eb8ff4fb03
Added synthetic test for tracking down interrupt timing issues
Michael Pavone <pavone@retrodev.com>
parents:
1117
diff
changeset
|
216 $(CC) -o $@ $^ |
553
1af6c1052993
Added untested code for generating ARM machine code
Mike Pavone <pavone@retrodev.com>
parents:
552
diff
changeset
|
217 |
16 | 218 gen_fib : gen_fib.o gen_x86.o mem.o |
219 $(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
|
220 |
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
|
221 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
|
222 $(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
|
223 |
631
de6f00204fa2
Add support for disassembling VOS program modules
Michael Pavone <pavone@retrodev.com>
parents:
630
diff
changeset
|
224 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
|
225 $(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
|
226 |
16 | 227 %.o : %.S |
228 $(CC) -c -o $@ $< | |
229 | |
230 %.o : %.c | |
229
d60837a7d18a
Improve color rendering accuracy and optimize SDL renderer a bit
Mike Pavone <pavone@retrodev.com>
parents:
208
diff
changeset
|
231 $(CC) $(CFLAGS) -c -o $@ $< |
864
40703069bb68
Get everything needed to build menu.bin either committed or buildable via the Makefile
Michael Pavone <pavone@retrodev.com>
parents:
836
diff
changeset
|
232 %.png : %.xcf |
40703069bb68
Get everything needed to build menu.bin either committed or buildable via the Makefile
Michael Pavone <pavone@retrodev.com>
parents:
836
diff
changeset
|
233 xcf2png $< > $@ |
40703069bb68
Get everything needed to build menu.bin either committed or buildable via the Makefile
Michael Pavone <pavone@retrodev.com>
parents:
836
diff
changeset
|
234 |
40703069bb68
Get everything needed to build menu.bin either committed or buildable via the Makefile
Michael Pavone <pavone@retrodev.com>
parents:
836
diff
changeset
|
235 %.tiles : %.spec |
40703069bb68
Get everything needed to build menu.bin either committed or buildable via the Makefile
Michael Pavone <pavone@retrodev.com>
parents:
836
diff
changeset
|
236 ./img2tiles.py -s $< $@ |
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
|
237 |
3e7bfde7606e
M68K to x86 translation works for a limited subset of instructions and addressing modes
Mike Pavone <pavone@retrodev.com>
parents:
16
diff
changeset
|
238 %.bin : %.s68 |
646
fa345ce3e5bd
Produce a listing file when assembling 68K test ROMs
Michael Pavone <pavone@retrodev.com>
parents:
631
diff
changeset
|
239 vasmm68k_mot -Fbin -m68000 -no-opt -spaces -o $@ -L $@.list $< |
16 | 240 |
199
69585e7d474f
Add initial stab at Z80 decoder and disassembler
Mike Pavone <pavone@retrodev.com>
parents:
118
diff
changeset
|
241 %.bin : %.sz8 |
69585e7d474f
Add initial stab at Z80 decoder and disassembler
Mike Pavone <pavone@retrodev.com>
parents:
118
diff
changeset
|
242 vasmz80_mot -Fbin -spaces -o $@ $< |
977
4cbc349a82a9
Inclue menu.bin in release directories. Added a Windows RC file and icon
Michael Pavone <pavone@retrodev.com>
parents:
941
diff
changeset
|
243 res.o : blastem.rc |
1247
4ec5972adffa
Missed a usage of Wine in Makefile
Michael Pavone <pavone@retrodev.com>
parents:
1244
diff
changeset
|
244 i686-w64-mingw32-windres blastem.rc res.o |
199
69585e7d474f
Add initial stab at Z80 decoder and disassembler
Mike Pavone <pavone@retrodev.com>
parents:
118
diff
changeset
|
245 |
864
40703069bb68
Get everything needed to build menu.bin either committed or buildable via the Makefile
Michael Pavone <pavone@retrodev.com>
parents:
836
diff
changeset
|
246 arrow.tiles : arrow.png |
909
e60eb88d7b09
Added mouse support to menu ROM
Michael Pavone <pavone@retrodev.com>
parents:
883
diff
changeset
|
247 cursor.tiles : cursor.png |
864
40703069bb68
Get everything needed to build menu.bin either committed or buildable via the Makefile
Michael Pavone <pavone@retrodev.com>
parents:
836
diff
changeset
|
248 font_interlace_variable.tiles : font_interlace_variable.png |
917
f057975212e9
Added button graphic for menu
Michael Pavone <pavone@retrodev.com>
parents:
909
diff
changeset
|
249 button.tiles : button.png |
1025
01a91df5b87c
Add missing dependency for font.tiles in Makefile
Michael Pavone <pavone@retrodev.com>
parents:
977
diff
changeset
|
250 font.tiles : font.png |
941
c96647630320
WIP buttons in menu ROM
Michael Pavone <pavone@retrodev.com>
parents:
917
diff
changeset
|
251 |
c96647630320
WIP buttons in menu ROM
Michael Pavone <pavone@retrodev.com>
parents:
917
diff
changeset
|
252 menu.bin : font_interlace_variable.tiles arrow.tiles cursor.tiles button.tiles font.tiles |
864
40703069bb68
Get everything needed to build menu.bin either committed or buildable via the Makefile
Michael Pavone <pavone@retrodev.com>
parents:
836
diff
changeset
|
253 |
16 | 254 clean : |
794
792be135d3af
Spawn a terminal for the debugger when needed if we are not already attached to one
Michael Pavone <pavone@retrodev.com>
parents:
783
diff
changeset
|
255 rm -rf $(ALL) trans ztestrun ztestgen *.o |