1
- commit afd33eaffc60bf38c895f370af0a683a6fe67aa2
1
+ commit 9acf6e19a6633eeecb5feabd5fab0188468aa16e
2
2
Author: Joey Parrish <
[email protected] >
3
3
Date: Wed Mar 27 07:39:28 2024 -0700
4
4
@@ -21,7 +21,7 @@ index 0000000..8f39f7f
21
21
+ zdis
22
22
+ kinetoscope
23
23
diff --git a/Makefile b/Makefile
24
- index 0dddc9f..4655371 100644
24
+ index 0dddc9f..cfa4645 100644
25
25
--- a/Makefile
26
26
+++ b/Makefile
27
27
@@ -23,11 +23,11 @@ ifeq ($(CPU),i686)
@@ -38,21 +38,7 @@ index 0dddc9f..4655371 100644
38
38
GLUDIR:=x64
39
39
endif
40
40
GLEW32S_LIB:=$(GLEW_PREFIX)/lib/Release/$(GLUDIR)/glew32s.lib
41
- @@ -39,6 +39,13 @@ LDFLAGS+= $(GLEW32S_LIB) -L"$(SDL2_PREFIX)/lib" -lSDL2main -lSDL2 -lopengl32 -lg
42
- endif
43
- LIBZOBJS=$(BUNDLED_LIBZ)
44
-
45
- + # Static libcurl for kinetoscope emulation
46
- + CFLAGS+= -Icurl/include -DCURL_STATICLIB
47
- + LDFLAGS+= curl/lib/.libs/libcurl.a
48
- + # Pthread for kinetoscope emulation
49
- + CFLAGS+= -pthread
50
- + LDFLAGS+= -pthread
51
- +
52
- else
53
-
54
- MEM:=mem.o
55
- @@ -96,10 +103,11 @@ LDFLAGS:=-lm glew/lib/libGLEW.a
41
+ @@ -96,10 +96,11 @@ LDFLAGS:=-lm glew/lib/libGLEW.a
56
42
endif
57
43
58
44
ifeq ($(OS),Darwin)
@@ -68,54 +54,59 @@ index 0dddc9f..4655371 100644
68
54
else
69
55
SDL_INCLUDE_PATH:=sdl/include
70
56
LDFLAGS+= -Wl,-rpath='$$ORIGIN/lib' -Llib -lSDL2
71
- @@ -109 ,6 +117,16 @@ endif
72
- endif #Darwin
73
- CFLAGS+= -I$(SDL_INCLUDE_PATH)
57
+ @@ -129 ,6 +130,38 @@ endif
58
+ endif #PORTABLE
59
+ endif #Windows
74
60
75
- + # Static libcurl for kinetoscope emulation
76
- + CFLAGS+= -Icurl/include
61
+ +
62
+ + # Kinetoscope code itself
63
+ + CFLAGS+= -I. -Ikinetoscope/software/player/inc/
64
+ +
65
+ + ifeq ($(PLATFORM),emscripten)
66
+ + CFLAGS+= -sMEMORY64=1
67
+ + LDFLAGS+= -sMEMORY64=1
68
+ + endif
69
+ +
70
+ + ifneq ($(PLATFORM),emscripten)
71
+ + # Curl, but only if it's not an emscripten environment
72
+ + ifdef PORTABLE
73
+ + # Static libcurl
74
+ + CFLAGS+= -Icurl/include -DCURL_STATICLIB
77
75
+ LDFLAGS+= curl/lib/.libs/libcurl.a
76
+ + else
77
+ + # System libcurl
78
+ + LDFLAGS+= $(shell curl-config --libs)
79
+ + endif
80
+ + endif
81
+ +
82
+ + # Pthread is required
83
+ + CFLAGS+= -pthread
84
+ + LDFLAGS+= -pthread
85
+ +
78
86
+ ifeq ($(OS),Darwin)
87
+ + # Needed for curl on macOS?
79
88
+ LDFLAGS+= -framework SystemConfiguration
80
89
+ endif #Darwin
81
- + # Pthread for kinetoscope emulation
82
- + CFLAGS+= -pthread
83
- + LDFLAGS+= -pthread
84
90
+
85
- else
86
- ifeq ($(MAKECMDGOALS),libblastem.$(SO))
87
- LDFLAGS:=-lm
88
- @@ -126,6 +144,12 @@ LDFLAGS+= -framework OpenGL -framework AppKit
89
- endif
90
- endif
91
-
92
- + # System libcurl for Kinetoscope emulation
93
- + LDFLAGS+= $(shell curl-config --libs)
94
- + # Pthread for kinetoscope emulation
95
- + CFLAGS+= -pthread
96
- + LDFLAGS+= -pthread
97
91
+
98
- endif #PORTABLE
99
- endif #Windows
100
-
101
- @@ -221,6 +245,7 @@ endif
92
+ +
93
+ ifndef OPT
94
+ ifdef DEBUG
95
+ OPT:=-g3 -O0
96
+ @@ -221,10 +254,12 @@ endif
102
97
103
98
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 \
104
99
realtec.o i2c.o nor.o sega_mapper.o multi_game.o megawifi.o $(NET) serialize.o $(TERMINAL) $(CONFIGOBJS) gst.o \
105
100
+ kinetoscope/emulator-patches/kinetoscope.o \
106
101
$(M68KOBJS) $(TRANSOBJS) $(AUDIOOBJS) saves.o zip.o bindings.o jcart.o gen_player.o
107
102
108
103
LIBOBJS=libblastem.o system.o genesis.o debug.o gdb_remote.o vdp.o io.o romdb.o hash.o xband.o realtec.o \
109
- @@ -277,6 +302,8 @@ ifeq ($(MAKECMDGOALS),libblastem.$(SO))
110
- CFLAGS+= -fpic -DIS_LIB
111
- endif
112
-
113
- + CFLAGS+= -I. -Ikinetoscope/software/player/inc/
114
- +
115
- all : $(ALL)
116
-
117
- libblastem.$(SO) : $(LIBOBJS)
118
- @@ -366,7 +393,7 @@ m68k.c : m68k.cpu cpu_dsl.py
104
+ i2c.o nor.o sega_mapper.o multi_game.o megawifi.o $(NET) serialize.o $(TERMINAL) $(CONFIGOBJS) gst.o \
105
+ + kinetoscope/emulator-patches/kinetoscope.o \
106
+ $(M68KOBJS) $(TRANSOBJS) $(AUDIOOBJS) saves.o jcart.o rom.db.o gen_player.o $(LIBZOBJS)
107
+
108
+ ifdef NONUKLEAR
109
+ @@ -366,7 +401,7 @@ m68k.c : m68k.cpu cpu_dsl.py
119
110
$(CC) $(CFLAGS) -c -o $@ $<
120
111
121
112
%.png : %.xcf
@@ -124,11 +115,24 @@ index 0dddc9f..4655371 100644
124
115
125
116
%.tiles : %.spec
126
117
./img2tiles.py -s $< $@
127
- @@ -393,3 +420 ,4 @@ tmss.md : font.tiles
118
+ @@ -393,3 +428 ,4 @@ tmss.md : font.tiles
128
119
129
120
clean :
130
121
rm -rf $(ALL) trans ztestrun ztestgen *.o nuklear_ui/*.o zlib/*.o
131
122
+ rm -f kinetoscope/emulator-patches/kinetoscope.o
123
+ diff --git a/Makefile.libretro b/Makefile.libretro
124
+ index a8af9bc..f890d01 100644
125
+ --- a/Makefile.libretro
126
+ +++ b/Makefile.libretro
127
+ @@ -58,7 +58,7 @@ endif
128
+
129
+
130
+ core: $(OBJ)
131
+ - $(MAKE) $(target) OS=$(OS) CC=$(CC) CPU=$(ABI) LIBRETRO=$(LIBRETRO)
132
+ + $(MAKE) $(target) OS=$(OS) CC=$(CC) CPU=$(ABI) LIBRETRO=$(LIBRETRO) PLATFORM=$(platform)
133
+ cp -v $(target) $(libname)
134
+
135
+ install: $(libname)
132
136
diff --git a/build_release b/build_release
133
137
index f5faa10..aa30c75 100755
134
138
--- a/build_release
0 commit comments