Mercurial > repos > blastem
annotate Makefile @ 2283:6f6f21d0c396
Fix missing address masks on some VRAM reads
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 09 Jan 2023 00:15:26 -0800 |
parents | fd68fe5f723e |
children | 92449b47cce8 |
rev | line source |
---|---|
1818
243f3a7247f9
Include ROM DB in library binary for libretro target
Mike Pavone <pavone@retrodev.com>
parents:
1795
diff
changeset
|
1 #disable built-in rules |
243f3a7247f9
Include ROM DB in library binary for libretro target
Mike Pavone <pavone@retrodev.com>
parents:
1795
diff
changeset
|
2 .SUFFIXES : |
243f3a7247f9
Include ROM DB in library binary for libretro target
Mike Pavone <pavone@retrodev.com>
parents:
1795
diff
changeset
|
3 |
559
6b248602ab84
blastem builds and almost works on OS X now
Mike Pavone <pavone@retrodev.com>
parents:
557
diff
changeset
|
4 ifndef OS |
6b248602ab84
blastem builds and almost works on OS X now
Mike Pavone <pavone@retrodev.com>
parents:
557
diff
changeset
|
5 OS:=$(shell uname -s) |
6b248602ab84
blastem builds and almost works on OS X now
Mike Pavone <pavone@retrodev.com>
parents:
557
diff
changeset
|
6 endif |
805 | 7 FIXUP:=true |
559
6b248602ab84
blastem builds and almost works on OS X now
Mike Pavone <pavone@retrodev.com>
parents:
557
diff
changeset
|
8 |
1795 | 9 BUNDLED_LIBZ:=zlib/adler32.o zlib/compress.o zlib/crc32.o zlib/deflate.o zlib/gzclose.o zlib/gzlib.o zlib/gzread.o\ |
10 zlib/gzwrite.o zlib/infback.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o zlib/uncompr.o zlib/zutil.o | |
11 | |
744
fc68992cf18d
Merge windows branch with latest changes
Michael Pavone <pavone@retrodev.com>
diff
changeset
|
12 ifeq ($(OS),Windows) |
1828
37afb9cf58be
Get 64-bit builds working for Windows target
Michael Pavone <pavone@retrodev.com>
parents:
1826
diff
changeset
|
13 |
1244
0a34e31c4fd0
Update Windows build to use mingw-w64 cross compiler rather than Wine
Michael Pavone <pavone@retrodev.com>
parents:
1228
diff
changeset
|
14 GLEW_PREFIX:=glew |
741
80a67be1770b
Initial work on Windows port
Michael Pavone <pavone@retrodev.com>
parents:
573
diff
changeset
|
15 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
|
16 TERMINAL:=terminal_win.o |
1524
b96f9fae757f
Fix Windows build, added Windows default_font_path implementation
Michael Pavone <pavone@retrodev.com>
parents:
1522
diff
changeset
|
17 FONT:=nuklear_ui/font_win.o |
1546
1a09422b87a5
Get Windows build working again. MegaWiFi code probably needs more work before it will actually work on Windows, but at least it doesn't break the build now
Michael Pavone <pavone@retrodev.com>
parents:
1543
diff
changeset
|
18 NET:=net_win.o |
805 | 19 EXE:=.exe |
1822
8500bd987dda
Make libretro target successfully build for Windows and possibly Mac
Mike Pavone <pavone@retrodev.com>
parents:
1818
diff
changeset
|
20 SO:=dll |
8500bd987dda
Make libretro target successfully build for Windows and possibly Mac
Mike Pavone <pavone@retrodev.com>
parents:
1818
diff
changeset
|
21 CPU:=i686 |
8500bd987dda
Make libretro target successfully build for Windows and possibly Mac
Mike Pavone <pavone@retrodev.com>
parents:
1818
diff
changeset
|
22 ifeq ($(CPU),i686) |
1244
0a34e31c4fd0
Update Windows build to use mingw-w64 cross compiler rather than Wine
Michael Pavone <pavone@retrodev.com>
parents:
1228
diff
changeset
|
23 CC:=i686-w64-mingw32-gcc-win32 |
1828
37afb9cf58be
Get 64-bit builds working for Windows target
Michael Pavone <pavone@retrodev.com>
parents:
1826
diff
changeset
|
24 WINDRES:=i686-w64-mingw32-windres |
37afb9cf58be
Get 64-bit builds working for Windows target
Michael Pavone <pavone@retrodev.com>
parents:
1826
diff
changeset
|
25 GLUDIR:=Win32 |
37afb9cf58be
Get 64-bit builds working for Windows target
Michael Pavone <pavone@retrodev.com>
parents:
1826
diff
changeset
|
26 SDL2_PREFIX:="sdl/i686-w64-mingw32" |
1822
8500bd987dda
Make libretro target successfully build for Windows and possibly Mac
Mike Pavone <pavone@retrodev.com>
parents:
1818
diff
changeset
|
27 else |
8500bd987dda
Make libretro target successfully build for Windows and possibly Mac
Mike Pavone <pavone@retrodev.com>
parents:
1818
diff
changeset
|
28 CC:=x86_64-w64-mingw32-gcc-win32 |
1828
37afb9cf58be
Get 64-bit builds working for Windows target
Michael Pavone <pavone@retrodev.com>
parents:
1826
diff
changeset
|
29 WINDRES:=x86_64-w64-mingw32-windres |
37afb9cf58be
Get 64-bit builds working for Windows target
Michael Pavone <pavone@retrodev.com>
parents:
1826
diff
changeset
|
30 SDL2_PREFIX:="sdl/x86_64-w64-mingw32" |
37afb9cf58be
Get 64-bit builds working for Windows target
Michael Pavone <pavone@retrodev.com>
parents:
1826
diff
changeset
|
31 GLUDIR:=x64 |
1822
8500bd987dda
Make libretro target successfully build for Windows and possibly Mac
Mike Pavone <pavone@retrodev.com>
parents:
1818
diff
changeset
|
32 endif |
1828
37afb9cf58be
Get 64-bit builds working for Windows target
Michael Pavone <pavone@retrodev.com>
parents:
1826
diff
changeset
|
33 GLEW32S_LIB:=$(GLEW_PREFIX)/lib/Release/$(GLUDIR)/glew32s.lib |
1952
42c12d141f6e
Remove usage of GCC pointer arithmetic on void * extension
Michael Pavone <pavone@retrodev.com>
parents:
1946
diff
changeset
|
34 CFLAGS:=-std=gnu99 -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration -Wpointer-arith -Werror=pointer-arith |
1822
8500bd987dda
Make libretro target successfully build for Windows and possibly Mac
Mike Pavone <pavone@retrodev.com>
parents:
1818
diff
changeset
|
35 LDFLAGS:=-lm -lmingw32 -lws2_32 -mwindows |
8500bd987dda
Make libretro target successfully build for Windows and possibly Mac
Mike Pavone <pavone@retrodev.com>
parents:
1818
diff
changeset
|
36 ifneq ($(MAKECMDGOALS),libblastem.dll) |
8500bd987dda
Make libretro target successfully build for Windows and possibly Mac
Mike Pavone <pavone@retrodev.com>
parents:
1818
diff
changeset
|
37 CFLAGS+= -I"$(SDL2_PREFIX)/include/SDL2" -I"$(GLEW_PREFIX)/include" -DGLEW_STATIC |
8500bd987dda
Make libretro target successfully build for Windows and possibly Mac
Mike Pavone <pavone@retrodev.com>
parents:
1818
diff
changeset
|
38 LDFLAGS+= $(GLEW32S_LIB) -L"$(SDL2_PREFIX)/lib" -lSDL2main -lSDL2 -lopengl32 -lglu32 |
8500bd987dda
Make libretro target successfully build for Windows and possibly Mac
Mike Pavone <pavone@retrodev.com>
parents:
1818
diff
changeset
|
39 endif |
1795 | 40 LIBZOBJS=$(BUNDLED_LIBZ) |
741
80a67be1770b
Initial work on Windows port
Michael Pavone <pavone@retrodev.com>
parents:
573
diff
changeset
|
41 |
80a67be1770b
Initial work on Windows port
Michael Pavone <pavone@retrodev.com>
parents:
573
diff
changeset
|
42 else |
80a67be1770b
Initial work on Windows port
Michael Pavone <pavone@retrodev.com>
parents:
573
diff
changeset
|
43 |
80a67be1770b
Initial work on Windows port
Michael Pavone <pavone@retrodev.com>
parents:
573
diff
changeset
|
44 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
|
45 TERMINAL:=terminal.o |
1546
1a09422b87a5
Get Windows build working again. MegaWiFi code probably needs more work before it will actually work on Windows, but at least it doesn't break the build now
Michael Pavone <pavone@retrodev.com>
parents:
1543
diff
changeset
|
46 NET:=net.o |
805 | 47 EXE:= |
741
80a67be1770b
Initial work on Windows port
Michael Pavone <pavone@retrodev.com>
parents:
573
diff
changeset
|
48 |
1658
fa9ae059e4d3
Added support for GLES in addition to desktop GL
Mike Pavone <pavone@retrodev.com>
parents:
1657
diff
changeset
|
49 HAS_PROC:=$(shell if [ -d /proc ]; then /bin/echo -e -DHAS_PROC; fi) |
1952
42c12d141f6e
Remove usage of GCC pointer arithmetic on void * extension
Michael Pavone <pavone@retrodev.com>
parents:
1946
diff
changeset
|
50 CFLAGS:=-std=gnu99 -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration -Wno-unused-value -Wpointer-arith -Werror=pointer-arith $(HAS_PROC) -DHAVE_UNISTD_H |
1658
fa9ae059e4d3
Added support for GLES in addition to desktop GL
Mike Pavone <pavone@retrodev.com>
parents:
1657
diff
changeset
|
51 |
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
|
52 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
|
53 LIBS=sdl2 glew |
1537
b4914d92308b
Added OSX implementation of default_font
Michael Pavone <pavone@retrodev.com>
parents:
1534
diff
changeset
|
54 FONT:=nuklear_ui/font_mac.o |
1822
8500bd987dda
Make libretro target successfully build for Windows and possibly Mac
Mike Pavone <pavone@retrodev.com>
parents:
1818
diff
changeset
|
55 SO:=dylib |
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
|
56 else |
1822
8500bd987dda
Make libretro target successfully build for Windows and possibly Mac
Mike Pavone <pavone@retrodev.com>
parents:
1818
diff
changeset
|
57 SO:=so |
1779
3a8c4ee68568
Added raw fbdev/evdev/ALSA render backend
Michael Pavone <pavone@retrodev.com>
parents:
1762
diff
changeset
|
58 |
3a8c4ee68568
Added raw fbdev/evdev/ALSA render backend
Michael Pavone <pavone@retrodev.com>
parents:
1762
diff
changeset
|
59 ifdef USE_FBDEV |
3a8c4ee68568
Added raw fbdev/evdev/ALSA render backend
Michael Pavone <pavone@retrodev.com>
parents:
1762
diff
changeset
|
60 LIBS=alsa |
3a8c4ee68568
Added raw fbdev/evdev/ALSA render backend
Michael Pavone <pavone@retrodev.com>
parents:
1762
diff
changeset
|
61 ifndef NOGL |
3a8c4ee68568
Added raw fbdev/evdev/ALSA render backend
Michael Pavone <pavone@retrodev.com>
parents:
1762
diff
changeset
|
62 LIBS+=glesv2 egl |
3a8c4ee68568
Added raw fbdev/evdev/ALSA render backend
Michael Pavone <pavone@retrodev.com>
parents:
1762
diff
changeset
|
63 endif |
3a8c4ee68568
Added raw fbdev/evdev/ALSA render backend
Michael Pavone <pavone@retrodev.com>
parents:
1762
diff
changeset
|
64 CFLAGS+= -DUSE_GLES -DUSE_FBDEV -pthread |
3a8c4ee68568
Added raw fbdev/evdev/ALSA render backend
Michael Pavone <pavone@retrodev.com>
parents:
1762
diff
changeset
|
65 else |
1658
fa9ae059e4d3
Added support for GLES in addition to desktop GL
Mike Pavone <pavone@retrodev.com>
parents:
1657
diff
changeset
|
66 ifdef USE_GLES |
fa9ae059e4d3
Added support for GLES in addition to desktop GL
Mike Pavone <pavone@retrodev.com>
parents:
1657
diff
changeset
|
67 LIBS=sdl2 glesv2 |
fa9ae059e4d3
Added support for GLES in addition to desktop GL
Mike Pavone <pavone@retrodev.com>
parents:
1657
diff
changeset
|
68 CFLAGS+= -DUSE_GLES |
fa9ae059e4d3
Added support for GLES in addition to desktop GL
Mike Pavone <pavone@retrodev.com>
parents:
1657
diff
changeset
|
69 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
|
70 LIBS=sdl2 glew gl |
1658
fa9ae059e4d3
Added support for GLES in addition to desktop GL
Mike Pavone <pavone@retrodev.com>
parents:
1657
diff
changeset
|
71 endif #USE_GLES |
1779
3a8c4ee68568
Added raw fbdev/evdev/ALSA render backend
Michael Pavone <pavone@retrodev.com>
parents:
1762
diff
changeset
|
72 endif #USE_FBDEV |
1537
b4914d92308b
Added OSX implementation of default_font
Michael Pavone <pavone@retrodev.com>
parents:
1534
diff
changeset
|
73 FONT:=nuklear_ui/font.o |
744
fc68992cf18d
Merge windows branch with latest changes
Michael Pavone <pavone@retrodev.com>
diff
changeset
|
74 endif #Darwin |
559
6b248602ab84
blastem builds and almost works on OS X now
Mike Pavone <pavone@retrodev.com>
parents:
557
diff
changeset
|
75 |
1693
ba3fb7a3be6b
Added some Makefile options to build a packaging friendly executable
Michael Pavone <pavone@retrodev.com>
parents:
1688
diff
changeset
|
76 ifdef HOST_ZLIB |
ba3fb7a3be6b
Added some Makefile options to build a packaging friendly executable
Michael Pavone <pavone@retrodev.com>
parents:
1688
diff
changeset
|
77 LIBS+= zlib |
ba3fb7a3be6b
Added some Makefile options to build a packaging friendly executable
Michael Pavone <pavone@retrodev.com>
parents:
1688
diff
changeset
|
78 LIBZOBJS= |
ba3fb7a3be6b
Added some Makefile options to build a packaging friendly executable
Michael Pavone <pavone@retrodev.com>
parents:
1688
diff
changeset
|
79 else |
1795 | 80 LIBZOBJS=$(BUNDLED_LIBZ) |
1693
ba3fb7a3be6b
Added some Makefile options to build a packaging friendly executable
Michael Pavone <pavone@retrodev.com>
parents:
1688
diff
changeset
|
81 endif |
ba3fb7a3be6b
Added some Makefile options to build a packaging friendly executable
Michael Pavone <pavone@retrodev.com>
parents:
1688
diff
changeset
|
82 |
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
|
83 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
|
84 #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
|
85 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
|
86 endif |
761
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
87 ifdef PORTABLE |
1658
fa9ae059e4d3
Added support for GLES in addition to desktop GL
Mike Pavone <pavone@retrodev.com>
parents:
1657
diff
changeset
|
88 ifdef USE_GLES |
fa9ae059e4d3
Added support for GLES in addition to desktop GL
Mike Pavone <pavone@retrodev.com>
parents:
1657
diff
changeset
|
89 ifndef GLES_LIB |
fa9ae059e4d3
Added support for GLES in addition to desktop GL
Mike Pavone <pavone@retrodev.com>
parents:
1657
diff
changeset
|
90 GLES_LIB:=$(shell pkg-config --libs glesv2) |
fa9ae059e4d3
Added support for GLES in addition to desktop GL
Mike Pavone <pavone@retrodev.com>
parents:
1657
diff
changeset
|
91 endif |
fa9ae059e4d3
Added support for GLES in addition to desktop GL
Mike Pavone <pavone@retrodev.com>
parents:
1657
diff
changeset
|
92 LDFLAGS:=-lm $(GLES_LIB) |
fa9ae059e4d3
Added support for GLES in addition to desktop GL
Mike Pavone <pavone@retrodev.com>
parents:
1657
diff
changeset
|
93 else |
761
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
94 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
|
95 LDFLAGS:=-lm glew/lib/libGLEW.a |
1658
fa9ae059e4d3
Added support for GLES in addition to desktop GL
Mike Pavone <pavone@retrodev.com>
parents:
1657
diff
changeset
|
96 endif |
761
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
97 |
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
98 ifeq ($(OS),Darwin) |
1935
f23e70fb6607
Allow override of SDL2 include path for "portable" builds
Michael Pavone <pavone@retrodev.com>
parents:
1934
diff
changeset
|
99 SDL_INCLUDE_PATH:=Frameworks/SDL2.framework/Headers |
2007
f612c1bd2c8b
Specify min OS X version when making a "portable" build for that platform
Michael Pavone <pavone@retrodev.com>
parents:
1999
diff
changeset
|
100 CFLAGS+= -mmacosx-version-min=10.10 |
f612c1bd2c8b
Specify min OS X version when making a "portable" build for that platform
Michael Pavone <pavone@retrodev.com>
parents:
1999
diff
changeset
|
101 LDFLAGS+= -FFrameworks -framework SDL2 -framework OpenGL -framework AppKit -mmacosx-version-min=10.10 |
805 | 102 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
|
103 else |
1935
f23e70fb6607
Allow override of SDL2 include path for "portable" builds
Michael Pavone <pavone@retrodev.com>
parents:
1934
diff
changeset
|
104 SDL_INCLUDE_PATH:=sdl/include |
1658
fa9ae059e4d3
Added support for GLES in addition to desktop GL
Mike Pavone <pavone@retrodev.com>
parents:
1657
diff
changeset
|
105 LDFLAGS+= -Wl,-rpath='$$ORIGIN/lib' -Llib -lSDL2 |
fa9ae059e4d3
Added support for GLES in addition to desktop GL
Mike Pavone <pavone@retrodev.com>
parents:
1657
diff
changeset
|
106 ifndef USE_GLES |
fa9ae059e4d3
Added support for GLES in addition to desktop GL
Mike Pavone <pavone@retrodev.com>
parents:
1657
diff
changeset
|
107 LDFLAGS+= $(shell pkg-config --libs gl) |
fa9ae059e4d3
Added support for GLES in addition to desktop GL
Mike Pavone <pavone@retrodev.com>
parents:
1657
diff
changeset
|
108 endif |
761
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
109 endif #Darwin |
1935
f23e70fb6607
Allow override of SDL2 include path for "portable" builds
Michael Pavone <pavone@retrodev.com>
parents:
1934
diff
changeset
|
110 CFLAGS+= -I$(SDL_INCLUDE_PATH) |
761
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
111 |
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
112 else |
1822
8500bd987dda
Make libretro target successfully build for Windows and possibly Mac
Mike Pavone <pavone@retrodev.com>
parents:
1818
diff
changeset
|
113 ifeq ($(MAKECMDGOALS),libblastem.$(SO)) |
1687
6c54bb5fe3b3
Hacky WIP libertro implementation
Michael Pavone <pavone@retrodev.com>
parents:
1658
diff
changeset
|
114 LDFLAGS:=-lm |
6c54bb5fe3b3
Hacky WIP libertro implementation
Michael Pavone <pavone@retrodev.com>
parents:
1658
diff
changeset
|
115 else |
1688
395f684c5379
Fixed the most glaring issues in libretro build
Mike Pavone <pavone@retrodev.com>
parents:
1687
diff
changeset
|
116 CFLAGS:=$(shell pkg-config --cflags-only-I $(LIBS)) $(CFLAGS) |
761
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
117 LDFLAGS:=-lm $(shell pkg-config --libs $(LIBS)) |
1779
3a8c4ee68568
Added raw fbdev/evdev/ALSA render backend
Michael Pavone <pavone@retrodev.com>
parents:
1762
diff
changeset
|
118 ifdef USE_FBDEV |
3a8c4ee68568
Added raw fbdev/evdev/ALSA render backend
Michael Pavone <pavone@retrodev.com>
parents:
1762
diff
changeset
|
119 LDFLAGS+= -pthread |
3a8c4ee68568
Added raw fbdev/evdev/ALSA render backend
Michael Pavone <pavone@retrodev.com>
parents:
1762
diff
changeset
|
120 endif |
1687
6c54bb5fe3b3
Hacky WIP libertro implementation
Michael Pavone <pavone@retrodev.com>
parents:
1658
diff
changeset
|
121 endif #libblastem.so |
761
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
122 |
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
123 ifeq ($(OS),Darwin) |
1537
b4914d92308b
Added OSX implementation of default_font
Michael Pavone <pavone@retrodev.com>
parents:
1534
diff
changeset
|
124 LDFLAGS+= -framework OpenGL -framework AppKit |
761
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
125 endif |
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
126 |
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
127 endif #PORTABLE |
824
3b8267fd1687
Allow for LTO on Windows
Michael Pavone <pavone@retrodev.com>
parents:
820
diff
changeset
|
128 endif #Windows |
761
ffb8cc5845fa
Add support for making a "portable" build on OSX to Makefile
Michael Pavone <pavone@retrodev.com>
parents:
755
diff
changeset
|
129 |
1657
774096402918
Allow optimization flag overrides in Makefile
Mike Pavone <pavone@retrodev.com>
parents:
1610
diff
changeset
|
130 ifndef OPT |
749
6f439a197f61
Fix check for DEBUG in Makefile
Michael Pavone <pavone@retrodev.com>
parents:
746
diff
changeset
|
131 ifdef DEBUG |
1537
b4914d92308b
Added OSX implementation of default_font
Michael Pavone <pavone@retrodev.com>
parents:
1534
diff
changeset
|
132 OPT:=-g3 -O0 |
b4914d92308b
Added OSX implementation of default_font
Michael Pavone <pavone@retrodev.com>
parents:
1534
diff
changeset
|
133 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
|
134 ifdef NOLTO |
1505
f5d693bd694a
Enable LTO on certain targets that don't need the full LDFLAGS by splitting out the optimization flags into a separate var
Michael Pavone <pavone@retrodev.com>
parents:
1427
diff
changeset
|
135 OPT:=-O2 |
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
|
136 else |
1505
f5d693bd694a
Enable LTO on certain targets that don't need the full LDFLAGS by splitting out the optimization flags into a separate var
Michael Pavone <pavone@retrodev.com>
parents:
1427
diff
changeset
|
137 OPT:=-O2 -flto |
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
|
138 endif #NOLTO |
744
fc68992cf18d
Merge windows branch with latest changes
Michael Pavone <pavone@retrodev.com>
diff
changeset
|
139 endif #DEBUG |
1657
774096402918
Allow optimization flag overrides in Makefile
Mike Pavone <pavone@retrodev.com>
parents:
1610
diff
changeset
|
140 endif #OPT |
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
|
141 |
1505
f5d693bd694a
Enable LTO on certain targets that don't need the full LDFLAGS by splitting out the optimization flags into a separate var
Michael Pavone <pavone@retrodev.com>
parents:
1427
diff
changeset
|
142 CFLAGS:=$(OPT) $(CFLAGS) |
f5d693bd694a
Enable LTO on certain targets that don't need the full LDFLAGS by splitting out the optimization flags into a separate var
Michael Pavone <pavone@retrodev.com>
parents:
1427
diff
changeset
|
143 LDFLAGS:=$(OPT) $(LDFLAGS) |
f5d693bd694a
Enable LTO on certain targets that don't need the full LDFLAGS by splitting out the optimization flags into a separate var
Michael Pavone <pavone@retrodev.com>
parents:
1427
diff
changeset
|
144 |
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
|
145 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
|
146 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
|
147 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
|
148 |
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
|
149 ifdef PROFILE |
1751
c5d4e1d14dac
Allow profiling blastcpm with perftools
Michael Pavone <pavone@retrodev.com>
parents:
1749
diff
changeset
|
150 PROFFLAGS:= -Wl,--no-as-needed -lprofiler -Wl,--as-needed |
c5d4e1d14dac
Allow profiling blastcpm with perftools
Michael Pavone <pavone@retrodev.com>
parents:
1749
diff
changeset
|
151 CFLAGS+= -g3 |
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
|
152 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
|
153 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
|
154 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
|
155 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
|
156 |
630
47123183c336
Improve support for disassembling 68010+ binaries
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
157 ifdef M68030 |
47123183c336
Improve support for disassembling 68010+ binaries
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
158 CFLAGS+= -DM68030 |
47123183c336
Improve support for disassembling 68010+ binaries
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
159 endif |
47123183c336
Improve support for disassembling 68010+ binaries
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
160 ifdef M68020 |
47123183c336
Improve support for disassembling 68010+ binaries
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
161 CFLAGS+= -DM68020 |
47123183c336
Improve support for disassembling 68010+ binaries
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
162 endif |
47123183c336
Improve support for disassembling 68010+ binaries
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
163 ifdef M68010 |
47123183c336
Improve support for disassembling 68010+ binaries
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
164 CFLAGS+= -DM68010 |
47123183c336
Improve support for disassembling 68010+ binaries
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
165 endif |
47123183c336
Improve support for disassembling 68010+ binaries
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
166 |
548
a3afee2271ce
Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
167 ifndef CPU |
a3afee2271ce
Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
168 CPU:=$(shell uname -m) |
a3afee2271ce
Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
169 endif |
a3afee2271ce
Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
170 |
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
|
171 #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
|
172 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
|
173 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
|
174 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
|
175 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
|
176 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
|
177 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
|
178 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
|
179 |
1303
208803173ebc
Implemented M68K trace mode. Some edge cases/SR update paths still need work
Michael Pavone <pavone@retrodev.com>
parents:
1299
diff
changeset
|
180 TRANSOBJS=gen.o backend.o $(MEM) arena.o tern.o |
2213
53411df7fc71
More 68K disassembler refactoring and fix Windows build failure
Michael Pavone <pavone@retrodev.com>
parents:
2206
diff
changeset
|
181 M68KOBJS=68kinst.o disasm.o |
1838
0c1491818f4b
WIP new 68K core using CPU DSL
Michael Pavone <pavone@retrodev.com>
parents:
1823
diff
changeset
|
182 |
0c1491818f4b
WIP new 68K core using CPU DSL
Michael Pavone <pavone@retrodev.com>
parents:
1823
diff
changeset
|
183 ifdef NEW_CORE |
2058
70260f6051dd
Initial work on CDC emulation
Michael Pavone <pavone@retrodev.com>
parents:
2053
diff
changeset
|
184 Z80OBJS=z80.o z80inst.o |
1838
0c1491818f4b
WIP new 68K core using CPU DSL
Michael Pavone <pavone@retrodev.com>
parents:
1823
diff
changeset
|
185 M68KOBJS+= m68k.o |
0c1491818f4b
WIP new 68K core using CPU DSL
Michael Pavone <pavone@retrodev.com>
parents:
1823
diff
changeset
|
186 CFLAGS+= -DNEW_CORE |
0c1491818f4b
WIP new 68K core using CPU DSL
Michael Pavone <pavone@retrodev.com>
parents:
1823
diff
changeset
|
187 else |
0c1491818f4b
WIP new 68K core using CPU DSL
Michael Pavone <pavone@retrodev.com>
parents:
1823
diff
changeset
|
188 Z80OBJS=z80inst.o z80_to_x86.o |
550
96489fb27dbf
Apart from the Z80 core, BlastEm now supports 32-bit x86
Michael Pavone <pavone@retrodev.com>
parents:
548
diff
changeset
|
189 ifeq ($(CPU),x86_64) |
1838
0c1491818f4b
WIP new 68K core using CPU DSL
Michael Pavone <pavone@retrodev.com>
parents:
1823
diff
changeset
|
190 M68KOBJS+= m68k_core.o 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
|
191 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
|
192 else |
96489fb27dbf
Apart from the Z80 core, BlastEm now supports 32-bit x86
Michael Pavone <pavone@retrodev.com>
parents:
548
diff
changeset
|
193 ifeq ($(CPU),i686) |
1838
0c1491818f4b
WIP new 68K core using CPU DSL
Michael Pavone <pavone@retrodev.com>
parents:
1823
diff
changeset
|
194 M68KOBJS+= m68k_core.o 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
|
195 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
|
196 endif |
96489fb27dbf
Apart from the Z80 core, BlastEm now supports 32-bit x86
Michael Pavone <pavone@retrodev.com>
parents:
548
diff
changeset
|
197 endif |
1703
49a52c737bf0
Fix zero flag calculation in CPU DSL
Michael Pavone <pavone@retrodev.com>
parents:
1693
diff
changeset
|
198 endif |
2243
0d1d5dccdd28
Initial implementation of oscilloscope debug view
Michael Pavone <pavone@retrodev.com>
parents:
2213
diff
changeset
|
199 AUDIOOBJS=ym2612.o psg.o wave.o vgm.o event_log.o render_audio.o rf5c164.o oscilloscope.o |
2058
70260f6051dd
Initial work on CDC emulation
Michael Pavone <pavone@retrodev.com>
parents:
2053
diff
changeset
|
200 CONFIGOBJS=config.o tern.o util.o paths.o |
1779
3a8c4ee68568
Added raw fbdev/evdev/ALSA render backend
Michael Pavone <pavone@retrodev.com>
parents:
1762
diff
changeset
|
201 NUKLEAROBJS=$(FONT) nuklear_ui/blastem_nuklear.o nuklear_ui/sfnt.o |
1927
9fd4bedc1a31
Update libretro target to use render_audio shared audio code
Mike Pavone <pavone@retrodev.com>
parents:
1909
diff
changeset
|
202 RENDEROBJS=ppm.o controller_info.o |
1779
3a8c4ee68568
Added raw fbdev/evdev/ALSA render backend
Michael Pavone <pavone@retrodev.com>
parents:
1762
diff
changeset
|
203 ifdef USE_FBDEV |
3a8c4ee68568
Added raw fbdev/evdev/ALSA render backend
Michael Pavone <pavone@retrodev.com>
parents:
1762
diff
changeset
|
204 RENDEROBJS+= render_fbdev.o |
3a8c4ee68568
Added raw fbdev/evdev/ALSA render backend
Michael Pavone <pavone@retrodev.com>
parents:
1762
diff
changeset
|
205 else |
3a8c4ee68568
Added raw fbdev/evdev/ALSA render backend
Michael Pavone <pavone@retrodev.com>
parents:
1762
diff
changeset
|
206 RENDEROBJS+= render_sdl.o |
3a8c4ee68568
Added raw fbdev/evdev/ALSA render backend
Michael Pavone <pavone@retrodev.com>
parents:
1762
diff
changeset
|
207 endif |
2058
70260f6051dd
Initial work on CDC emulation
Michael Pavone <pavone@retrodev.com>
parents:
2053
diff
changeset
|
208 |
1543
bed941c9bc86
Fix no-default targets
Michael Pavone <pavone@retrodev.com>
parents:
1537
diff
changeset
|
209 ifdef NOZLIB |
bed941c9bc86
Fix no-default targets
Michael Pavone <pavone@retrodev.com>
parents:
1537
diff
changeset
|
210 CFLAGS+= -DDISABLE_ZLIB |
bed941c9bc86
Fix no-default targets
Michael Pavone <pavone@retrodev.com>
parents:
1537
diff
changeset
|
211 else |
bed941c9bc86
Fix no-default targets
Michael Pavone <pavone@retrodev.com>
parents:
1537
diff
changeset
|
212 RENDEROBJS+= $(LIBZOBJS) png.o |
bed941c9bc86
Fix no-default targets
Michael Pavone <pavone@retrodev.com>
parents:
1537
diff
changeset
|
213 endif |
419
d1bf9734ce94
Cleanup makefile and link math library
Mike Pavone <pavone@retrodev.com>
parents:
408
diff
changeset
|
214 |
1543
bed941c9bc86
Fix no-default targets
Michael Pavone <pavone@retrodev.com>
parents:
1537
diff
changeset
|
215 MAINOBJS=blastem.o system.o genesis.o debug.o gdb_remote.o vdp.o $(RENDEROBJS) io.o romdb.o hash.o menu.o xband.o \ |
1546
1a09422b87a5
Get Windows build working again. MegaWiFi code probably needs more work before it will actually work on Windows, but at least it doesn't break the build now
Michael Pavone <pavone@retrodev.com>
parents:
1543
diff
changeset
|
216 realtec.o i2c.o nor.o sega_mapper.o multi_game.o megawifi.o $(NET) serialize.o $(TERMINAL) $(CONFIGOBJS) gst.o \ |
2069
8e51c0c3f2e3
Initial attempt at implementing the Sega CD graphics hardware
Michael Pavone <pavone@retrodev.com>
parents:
2061
diff
changeset
|
217 $(M68KOBJS) $(TRANSOBJS) $(AUDIOOBJS) saves.o zip.o bindings.o jcart.o gen_player.o \ |
2253
fd68fe5f723e
Add support for mapper used in Super Fighter Team release of Legend of Wukong
Michael Pavone <pavone@retrodev.com>
parents:
2243
diff
changeset
|
218 segacd.o lc8951.o cdimage.o cdd_mcu.o cd_graphics.o cdd_fader.o sft_mapper.o |
1687
6c54bb5fe3b3
Hacky WIP libertro implementation
Michael Pavone <pavone@retrodev.com>
parents:
1658
diff
changeset
|
219 |
1822
8500bd987dda
Make libretro target successfully build for Windows and possibly Mac
Mike Pavone <pavone@retrodev.com>
parents:
1818
diff
changeset
|
220 LIBOBJS=libblastem.o system.o genesis.o debug.o gdb_remote.o vdp.o io.o romdb.o hash.o xband.o realtec.o \ |
1687
6c54bb5fe3b3
Hacky WIP libertro implementation
Michael Pavone <pavone@retrodev.com>
parents:
1658
diff
changeset
|
221 i2c.o nor.o sega_mapper.o multi_game.o megawifi.o $(NET) serialize.o $(TERMINAL) $(CONFIGOBJS) gst.o \ |
2069
8e51c0c3f2e3
Initial attempt at implementing the Sega CD graphics hardware
Michael Pavone <pavone@retrodev.com>
parents:
2061
diff
changeset
|
222 $(M68KOBJS) $(TRANSOBJS) $(AUDIOOBJS) saves.o jcart.o rom.db.o gen_player.o $(LIBZOBJS) \ |
2253
fd68fe5f723e
Add support for mapper used in Super Fighter Team release of Legend of Wukong
Michael Pavone <pavone@retrodev.com>
parents:
2243
diff
changeset
|
223 segacd.o lc8951.o cdimage.o cdd_mcu.o cd_graphics.o cdd_fader.o sft_mapper.o |
2058
70260f6051dd
Initial work on CDC emulation
Michael Pavone <pavone@retrodev.com>
parents:
2053
diff
changeset
|
224 |
1483
001120e91fed
Skip loading menu ROM if Nuklear UI is enabled. Allow disabling Nuklear UI in favor of old menu ROM both at compile time and in config. Fall back to ROM UI if GL is unavailable
Michael Pavone <pavone@retrodev.com>
parents:
1478
diff
changeset
|
225 ifdef NONUKLEAR |
001120e91fed
Skip loading menu ROM if Nuklear UI is enabled. Allow disabling Nuklear UI in favor of old menu ROM both at compile time and in config. Fall back to ROM UI if GL is unavailable
Michael Pavone <pavone@retrodev.com>
parents:
1478
diff
changeset
|
226 CFLAGS+= -DDISABLE_NUKLEAR |
001120e91fed
Skip loading menu ROM if Nuklear UI is enabled. Allow disabling Nuklear UI in favor of old menu ROM both at compile time and in config. Fall back to ROM UI if GL is unavailable
Michael Pavone <pavone@retrodev.com>
parents:
1478
diff
changeset
|
227 else |
001120e91fed
Skip loading menu ROM if Nuklear UI is enabled. Allow disabling Nuklear UI in favor of old menu ROM both at compile time and in config. Fall back to ROM UI if GL is unavailable
Michael Pavone <pavone@retrodev.com>
parents:
1478
diff
changeset
|
228 MAINOBJS+= $(NUKLEAROBJS) |
001120e91fed
Skip loading menu ROM if Nuklear UI is enabled. Allow disabling Nuklear UI in favor of old menu ROM both at compile time and in config. Fall back to ROM UI if GL is unavailable
Michael Pavone <pavone@retrodev.com>
parents:
1478
diff
changeset
|
229 endif |
548
a3afee2271ce
Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
230 |
a3afee2271ce
Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
231 ifeq ($(CPU),x86_64) |
727
59a98179d3ba
Eliminate runtime.S/runtime_32.S.
Michael Pavone <pavone@retrodev.com>
parents:
720
diff
changeset
|
232 CFLAGS+=-DX86_64 -m64 |
59a98179d3ba
Eliminate runtime.S/runtime_32.S.
Michael Pavone <pavone@retrodev.com>
parents:
720
diff
changeset
|
233 LDFLAGS+=-m64 |
548
a3afee2271ce
Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
234 else |
a3afee2271ce
Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
235 ifeq ($(CPU),i686) |
727
59a98179d3ba
Eliminate runtime.S/runtime_32.S.
Michael Pavone <pavone@retrodev.com>
parents:
720
diff
changeset
|
236 CFLAGS+=-DX86_32 -m32 |
59a98179d3ba
Eliminate runtime.S/runtime_32.S.
Michael Pavone <pavone@retrodev.com>
parents:
720
diff
changeset
|
237 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
|
238 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
|
239 $(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
|
240 endif |
a3afee2271ce
Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
241 endif |
a3afee2271ce
Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
242 |
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
|
243 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
|
244 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
|
245 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
|
246 MAINOBJS+= sms.o $(Z80OBJS) |
1687
6c54bb5fe3b3
Hacky WIP libertro implementation
Michael Pavone <pavone@retrodev.com>
parents:
1658
diff
changeset
|
247 LIBOBJS+= 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
|
248 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
|
249 |
977
4cbc349a82a9
Inclue menu.bin in release directories. Added a Windows RC file and icon
Michael Pavone <pavone@retrodev.com>
parents:
941
diff
changeset
|
250 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
|
251 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
|
252 endif |
4cbc349a82a9
Inclue menu.bin in release directories. Added a Windows RC file and icon
Michael Pavone <pavone@retrodev.com>
parents:
941
diff
changeset
|
253 |
1693
ba3fb7a3be6b
Added some Makefile options to build a packaging friendly executable
Michael Pavone <pavone@retrodev.com>
parents:
1688
diff
changeset
|
254 ifdef CONFIG_PATH |
ba3fb7a3be6b
Added some Makefile options to build a packaging friendly executable
Michael Pavone <pavone@retrodev.com>
parents:
1688
diff
changeset
|
255 CFLAGS+= -DCONFIG_PATH='"'$(CONFIG_PATH)'"' |
ba3fb7a3be6b
Added some Makefile options to build a packaging friendly executable
Michael Pavone <pavone@retrodev.com>
parents:
1688
diff
changeset
|
256 endif |
ba3fb7a3be6b
Added some Makefile options to build a packaging friendly executable
Michael Pavone <pavone@retrodev.com>
parents:
1688
diff
changeset
|
257 |
ba3fb7a3be6b
Added some Makefile options to build a packaging friendly executable
Michael Pavone <pavone@retrodev.com>
parents:
1688
diff
changeset
|
258 ifdef DATA_PATH |
ba3fb7a3be6b
Added some Makefile options to build a packaging friendly executable
Michael Pavone <pavone@retrodev.com>
parents:
1688
diff
changeset
|
259 CFLAGS+= -DDATA_PATH='"'$(DATA_PATH)'"' |
ba3fb7a3be6b
Added some Makefile options to build a packaging friendly executable
Michael Pavone <pavone@retrodev.com>
parents:
1688
diff
changeset
|
260 endif |
ba3fb7a3be6b
Added some Makefile options to build a packaging friendly executable
Michael Pavone <pavone@retrodev.com>
parents:
1688
diff
changeset
|
261 |
1934
253c62b7144e
Allow specifying a default font path at build time
Michael Pavone <pavone@retrodev.com>
parents:
1930
diff
changeset
|
262 ifdef FONT_PATH |
253c62b7144e
Allow specifying a default font path at build time
Michael Pavone <pavone@retrodev.com>
parents:
1930
diff
changeset
|
263 CFLAGS+= -DFONT_PATH='"'$(FONT_PATH)'"' |
253c62b7144e
Allow specifying a default font path at build time
Michael Pavone <pavone@retrodev.com>
parents:
1930
diff
changeset
|
264 endif |
253c62b7144e
Allow specifying a default font path at build time
Michael Pavone <pavone@retrodev.com>
parents:
1930
diff
changeset
|
265 |
1943
794a5c9a2c73
Kill the stateview target as it is not very useful these days and breaks a lot
Michael Pavone <pavone@retrodev.com>
parents:
1935
diff
changeset
|
266 ALL=dis$(EXE) zdis$(EXE) vgmplay$(EXE) blastem$(EXE) |
805 | 267 ifneq ($(OS),Windows) |
268 ALL+= termhelper | |
742
2e1b3b258523
Make Windows port a little less half-assed
Michael Pavone <pavone@retrodev.com>
parents:
741
diff
changeset
|
269 endif |
548
a3afee2271ce
Initial work on the x86-32 target
Michael Pavone <pavone@retrodev.com>
parents:
524
diff
changeset
|
270 |
1822
8500bd987dda
Make libretro target successfully build for Windows and possibly Mac
Mike Pavone <pavone@retrodev.com>
parents:
1818
diff
changeset
|
271 ifeq ($(MAKECMDGOALS),libblastem.$(SO)) |
1688
395f684c5379
Fixed the most glaring issues in libretro build
Mike Pavone <pavone@retrodev.com>
parents:
1687
diff
changeset
|
272 CFLAGS+= -fpic -DIS_LIB |
1687
6c54bb5fe3b3
Hacky WIP libertro implementation
Michael Pavone <pavone@retrodev.com>
parents:
1658
diff
changeset
|
273 endif |
6c54bb5fe3b3
Hacky WIP libertro implementation
Michael Pavone <pavone@retrodev.com>
parents:
1658
diff
changeset
|
274 |
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
|
275 all : $(ALL) |
54
3b79cbcf6846
Get Flavio's color bar demo kind of sort of working
Mike Pavone <pavone@retrodev.com>
parents:
20
diff
changeset
|
276 |
1822
8500bd987dda
Make libretro target successfully build for Windows and possibly Mac
Mike Pavone <pavone@retrodev.com>
parents:
1818
diff
changeset
|
277 libblastem.$(SO) : $(LIBOBJS) |
1687
6c54bb5fe3b3
Hacky WIP libertro implementation
Michael Pavone <pavone@retrodev.com>
parents:
1658
diff
changeset
|
278 $(CC) -shared -o $@ $^ $(LDFLAGS) |
6c54bb5fe3b3
Hacky WIP libertro implementation
Michael Pavone <pavone@retrodev.com>
parents:
1658
diff
changeset
|
279 |
805 | 280 blastem$(EXE) : $(MAINOBJS) |
1751
c5d4e1d14dac
Allow profiling blastcpm with perftools
Michael Pavone <pavone@retrodev.com>
parents:
1749
diff
changeset
|
281 $(CC) -o $@ $^ $(LDFLAGS) $(PROFFLAGS) |
805 | 282 $(FIXUP) ./$@ |
2058
70260f6051dd
Initial work on CDC emulation
Michael Pavone <pavone@retrodev.com>
parents:
2053
diff
changeset
|
283 |
1543
bed941c9bc86
Fix no-default targets
Michael Pavone <pavone@retrodev.com>
parents:
1537
diff
changeset
|
284 blastjag$(EXE) : jaguar.o jag_video.o $(RENDEROBJS) serialize.o $(M68KOBJS) $(TRANSOBJS) $(CONFIGOBJS) |
1080
382614130914
Some initial work on Atari Jaguar emulation
Michael Pavone <pavone@retrodev.com>
parents:
1073
diff
changeset
|
285 $(CC) -o $@ $^ $(LDFLAGS) |
16 | 286 |
1823
16f19774820b
Add an explicit rule for termhelper as it was relying on a built-in rule before
Mike Pavone <pavone@retrodev.com>
parents:
1822
diff
changeset
|
287 termhelper : termhelper.o |
16f19774820b
Add an explicit rule for termhelper as it was relying on a built-in rule before
Mike Pavone <pavone@retrodev.com>
parents:
1822
diff
changeset
|
288 $(CC) -o $@ $^ $(LDFLAGS) |
16f19774820b
Add an explicit rule for termhelper as it was relying on a built-in rule before
Mike Pavone <pavone@retrodev.com>
parents:
1822
diff
changeset
|
289 |
2206
4c265d2f6c88
Minor refactor of 68K disassembler
Michael Pavone <pavone@retrodev.com>
parents:
2166
diff
changeset
|
290 dis$(EXE) : dis.o disasm.o backend.o 68kinst.o tern.o vos_program_module.o util.o |
1505
f5d693bd694a
Enable LTO on certain targets that don't need the full LDFLAGS by splitting out the optimization flags into a separate var
Michael Pavone <pavone@retrodev.com>
parents:
1427
diff
changeset
|
291 $(CC) -o $@ $^ $(OPT) |
2058
70260f6051dd
Initial work on CDC emulation
Michael Pavone <pavone@retrodev.com>
parents:
2053
diff
changeset
|
292 |
1093
4987fddd42a0
Initial stab at jaguar disassemler
Michael Pavone <pavone@retrodev.com>
parents:
1087
diff
changeset
|
293 jagdis : jagdis.o jagcpu.o tern.o |
4987fddd42a0
Initial stab at jaguar disassemler
Michael Pavone <pavone@retrodev.com>
parents:
1087
diff
changeset
|
294 $(CC) -o $@ $^ |
199
69585e7d474f
Add initial stab at Z80 decoder and disassembler
Mike Pavone <pavone@retrodev.com>
parents:
118
diff
changeset
|
295 |
805 | 296 zdis$(EXE) : zdis.o z80inst.o |
836
124a58fdcf3a
Get trans program compiling again
Michael Pavone <pavone@retrodev.com>
parents:
824
diff
changeset
|
297 $(CC) -o $@ $^ |
451
b7c3b2d22858
Added support for saving savestates. Added gst savestate format test harness
Mike Pavone <pavone@retrodev.com>
parents:
430
diff
changeset
|
298 |
419
d1bf9734ce94
Cleanup makefile and link math library
Mike Pavone <pavone@retrodev.com>
parents:
408
diff
changeset
|
299 libemu68k.a : $(M68KOBJS) $(TRANSOBJS) |
d1bf9734ce94
Cleanup makefile and link math library
Mike Pavone <pavone@retrodev.com>
parents:
408
diff
changeset
|
300 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
|
301 |
1427
4e5797b3935a
WIP - New savestate format
Michael Pavone <pavone@retrodev.com>
parents:
1416
diff
changeset
|
302 trans : trans.o serialize.o $(M68KOBJS) $(TRANSOBJS) util.o |
1990
57ae42c3ab45
Fix 68k test harness target, add cycle count to output and add a cycle limit
Michael Pavone <pavone@retrodev.com>
parents:
1986
diff
changeset
|
303 $(CC) -o $@ $^ $(OPT) |
235
d9bf8e61c33c
Get Z80 core working for simple programs
Mike Pavone <pavone@retrodev.com>
parents:
229
diff
changeset
|
304 |
419
d1bf9734ce94
Cleanup makefile and link math library
Mike Pavone <pavone@retrodev.com>
parents:
408
diff
changeset
|
305 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
|
306 $(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
|
307 |
1427
4e5797b3935a
WIP - New savestate format
Michael Pavone <pavone@retrodev.com>
parents:
1416
diff
changeset
|
308 ztestrun : ztestrun.o serialize.o $(Z80OBJS) $(TRANSOBJS) |
1762
057198058196
Small fix to ztestrun rule in makefile
Michael Pavone <pavone@retrodev.com>
parents:
1752
diff
changeset
|
309 $(CC) -o ztestrun $^ $(OPT) |
292
b970ea214ecb
Added z80 test generator and z80 test runner.
Mike Pavone <pavone@retrodev.com>
parents:
288
diff
changeset
|
310 |
b970ea214ecb
Added z80 test generator and z80 test runner.
Mike Pavone <pavone@retrodev.com>
parents:
288
diff
changeset
|
311 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
|
312 $(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
|
313 |
1543
bed941c9bc86
Fix no-default targets
Michael Pavone <pavone@retrodev.com>
parents:
1537
diff
changeset
|
314 vgmplay$(EXE) : vgmplay.o $(RENDEROBJS) serialize.o $(CONFIGOBJS) $(AUDIOOBJS) |
805 | 315 $(CC) -o $@ $^ $(LDFLAGS) |
316 $(FIXUP) ./$@ | |
836
124a58fdcf3a
Get trans program compiling again
Michael Pavone <pavone@retrodev.com>
parents:
824
diff
changeset
|
317 |
1427
4e5797b3935a
WIP - New savestate format
Michael Pavone <pavone@retrodev.com>
parents:
1416
diff
changeset
|
318 blastcpm : blastcpm.o util.o serialize.o $(Z80OBJS) $(TRANSOBJS) |
1751
c5d4e1d14dac
Allow profiling blastcpm with perftools
Michael Pavone <pavone@retrodev.com>
parents:
1749
diff
changeset
|
319 $(CC) -o $@ $^ $(OPT) $(PROFFLAGS) |
408
a13a83934ba3
Add primitive vgm player for testing
Mike Pavone <pavone@retrodev.com>
parents:
407
diff
changeset
|
320 |
720
15d9359fd771
Add some tests for hint timing and fix it properly this time.
Michael Pavone <pavone@retrodev.com>
parents:
719
diff
changeset
|
321 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
|
322 $(CC) -o test test.o vdp.o |
408
a13a83934ba3
Add primitive vgm player for testing
Mike Pavone <pavone@retrodev.com>
parents:
407
diff
changeset
|
323 |
451
b7c3b2d22858
Added support for saving savestates. Added gst savestate format test harness
Mike Pavone <pavone@retrodev.com>
parents:
430
diff
changeset
|
324 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
|
325 $(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
|
326 |
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
|
327 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
|
328 $(CC) -o test_x86 test_x86.o gen_x86.o gen.o |
16 | 329 |
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
|
330 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
|
331 $(CC) -o test_arm test_arm.o gen_arm.o mem.o gen.o |
2058
70260f6051dd
Initial work on CDC emulation
Michael Pavone <pavone@retrodev.com>
parents:
2053
diff
changeset
|
332 |
1172
14eb8ff4fb03
Added synthetic test for tracking down interrupt timing issues
Michael Pavone <pavone@retrodev.com>
parents:
1117
diff
changeset
|
333 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
|
334 $(CC) -o $@ $^ |
553
1af6c1052993
Added untested code for generating ARM machine code
Mike Pavone <pavone@retrodev.com>
parents:
552
diff
changeset
|
335 |
16 | 336 gen_fib : gen_fib.o gen_x86.o mem.o |
337 $(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
|
338 |
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
|
339 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
|
340 $(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
|
341 |
631
de6f00204fa2
Add support for disassembling VOS program modules
Michael Pavone <pavone@retrodev.com>
parents:
630
diff
changeset
|
342 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
|
343 $(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
|
344 |
1838
0c1491818f4b
WIP new 68K core using CPU DSL
Michael Pavone <pavone@retrodev.com>
parents:
1823
diff
changeset
|
345 m68k.c : m68k.cpu cpu_dsl.py |
0c1491818f4b
WIP new 68K core using CPU DSL
Michael Pavone <pavone@retrodev.com>
parents:
1823
diff
changeset
|
346 ./cpu_dsl.py -d call $< > $@ |
0c1491818f4b
WIP new 68K core using CPU DSL
Michael Pavone <pavone@retrodev.com>
parents:
1823
diff
changeset
|
347 |
1752
d6d4c006a7b3
Initial attempt at interrupts in new Z80 core and integrating it into main executable
Michael Pavone <pavone@retrodev.com>
parents:
1751
diff
changeset
|
348 %.c : %.cpu cpu_dsl.py |
1749
e4fe5a450d05
Added option to CPU DSL to produce a threaded interpreter using computed goto
Michael Pavone <pavone@retrodev.com>
parents:
1703
diff
changeset
|
349 ./cpu_dsl.py -d goto $< > $@ |
631
de6f00204fa2
Add support for disassembling VOS program modules
Michael Pavone <pavone@retrodev.com>
parents:
630
diff
changeset
|
350 |
1818
243f3a7247f9
Include ROM DB in library binary for libretro target
Mike Pavone <pavone@retrodev.com>
parents:
1795
diff
changeset
|
351 %.db.c : %.db |
243f3a7247f9
Include ROM DB in library binary for libretro target
Mike Pavone <pavone@retrodev.com>
parents:
1795
diff
changeset
|
352 sed $< -e 's/"/\\"/g' -e 's/^\(.*\)$$/"\1\\n"/' -e'1s/^\(.*\)$$/const char $(shell echo $< | tr '.' '_')_data[] = \1/' -e '$$s/^\(.*\)$$/\1;/' > $@ |
243f3a7247f9
Include ROM DB in library binary for libretro target
Mike Pavone <pavone@retrodev.com>
parents:
1795
diff
changeset
|
353 |
16 | 354 %.o : %.S |
355 $(CC) -c -o $@ $< | |
356 | |
357 %.o : %.c | |
229
d60837a7d18a
Improve color rendering accuracy and optimize SDL renderer a bit
Mike Pavone <pavone@retrodev.com>
parents:
208
diff
changeset
|
358 $(CC) $(CFLAGS) -c -o $@ $< |
2058
70260f6051dd
Initial work on CDC emulation
Michael Pavone <pavone@retrodev.com>
parents:
2053
diff
changeset
|
359 |
1537
b4914d92308b
Added OSX implementation of default_font
Michael Pavone <pavone@retrodev.com>
parents:
1534
diff
changeset
|
360 %.o : %.m |
b4914d92308b
Added OSX implementation of default_font
Michael Pavone <pavone@retrodev.com>
parents:
1534
diff
changeset
|
361 $(CC) $(CFLAGS) -c -o $@ $< |
b4914d92308b
Added OSX implementation of default_font
Michael Pavone <pavone@retrodev.com>
parents:
1534
diff
changeset
|
362 |
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
|
363 %.png : %.xcf |
2166
3a6680e9204a
xcftools is no longer packaged by Debian/Ubuntu so switched to imagemagick
Michael Pavone <pavone@retrodev.com>
parents:
2114
diff
changeset
|
364 convert -background none -flatten $< $@ |
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
|
365 |
40703069bb68
Get everything needed to build menu.bin either committed or buildable via the Makefile
Michael Pavone <pavone@retrodev.com>
parents:
836
diff
changeset
|
366 %.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
|
367 ./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
|
368 |
3e7bfde7606e
M68K to x86 translation works for a limited subset of instructions and addressing modes
Mike Pavone <pavone@retrodev.com>
parents:
16
diff
changeset
|
369 %.bin : %.s68 |
646
fa345ce3e5bd
Produce a listing file when assembling 68K test ROMs
Michael Pavone <pavone@retrodev.com>
parents:
631
diff
changeset
|
370 vasmm68k_mot -Fbin -m68000 -no-opt -spaces -o $@ -L $@.list $< |
16 | 371 |
2035
33f454232aee
Added open source TMSS replacement
Michael Pavone <pavone@retrodev.com>
parents:
2007
diff
changeset
|
372 %.md : %.s68 |
33f454232aee
Added open source TMSS replacement
Michael Pavone <pavone@retrodev.com>
parents:
2007
diff
changeset
|
373 vasmm68k_mot -Fbin -m68000 -no-opt -spaces -o $@ -L $@.list $< |
33f454232aee
Added open source TMSS replacement
Michael Pavone <pavone@retrodev.com>
parents:
2007
diff
changeset
|
374 |
199
69585e7d474f
Add initial stab at Z80 decoder and disassembler
Mike Pavone <pavone@retrodev.com>
parents:
118
diff
changeset
|
375 %.bin : %.sz8 |
69585e7d474f
Add initial stab at Z80 decoder and disassembler
Mike Pavone <pavone@retrodev.com>
parents:
118
diff
changeset
|
376 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
|
377 res.o : blastem.rc |
1828
37afb9cf58be
Get 64-bit builds working for Windows target
Michael Pavone <pavone@retrodev.com>
parents:
1826
diff
changeset
|
378 $(WINDRES) blastem.rc res.o |
199
69585e7d474f
Add initial stab at Z80 decoder and disassembler
Mike Pavone <pavone@retrodev.com>
parents:
118
diff
changeset
|
379 |
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
|
380 arrow.tiles : arrow.png |
909
e60eb88d7b09
Added mouse support to menu ROM
Michael Pavone <pavone@retrodev.com>
parents:
883
diff
changeset
|
381 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
|
382 font_interlace_variable.tiles : font_interlace_variable.png |
917
f057975212e9
Added button graphic for menu
Michael Pavone <pavone@retrodev.com>
parents:
909
diff
changeset
|
383 button.tiles : button.png |
1025
01a91df5b87c
Add missing dependency for font.tiles in Makefile
Michael Pavone <pavone@retrodev.com>
parents:
977
diff
changeset
|
384 font.tiles : font.png |
941
c96647630320
WIP buttons in menu ROM
Michael Pavone <pavone@retrodev.com>
parents:
917
diff
changeset
|
385 |
c96647630320
WIP buttons in menu ROM
Michael Pavone <pavone@retrodev.com>
parents:
917
diff
changeset
|
386 menu.bin : font_interlace_variable.tiles arrow.tiles cursor.tiles button.tiles font.tiles |
2035
33f454232aee
Added open source TMSS replacement
Michael Pavone <pavone@retrodev.com>
parents:
2007
diff
changeset
|
387 tmss.md : 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
|
388 |
16 | 389 clean : |
1534 | 390 rm -rf $(ALL) trans ztestrun ztestgen *.o nuklear_ui/*.o zlib/*.o |