Mercurial > repos > blastem
comparison Makefile @ 1787:0c6d07f91346 mame_interp
Merge from default
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 14 Mar 2019 23:40:50 -0700 |
parents | 0a26f3657295 3a8c4ee68568 |
children | 49f65d240299 |
comparison
equal
deleted
inserted
replaced
1778:30b5952fd32e | 1787:0c6d07f91346 |
---|---|
36 | 36 |
37 ifeq ($(OS),Darwin) | 37 ifeq ($(OS),Darwin) |
38 LIBS=sdl2 glew | 38 LIBS=sdl2 glew |
39 FONT:=nuklear_ui/font_mac.o | 39 FONT:=nuklear_ui/font_mac.o |
40 else | 40 else |
41 | |
42 ifdef USE_FBDEV | |
43 LIBS=alsa | |
44 ifndef NOGL | |
45 LIBS+=glesv2 egl | |
46 endif | |
47 CFLAGS+= -DUSE_GLES -DUSE_FBDEV -pthread | |
48 else | |
41 ifdef USE_GLES | 49 ifdef USE_GLES |
42 ifdef GLES_LIB | 50 ifdef GLES_LIB |
43 LIBS=sdl2 | 51 LIBS=sdl2 |
44 else | 52 else |
45 LIBS=sdl2 glesv2 | 53 LIBS=sdl2 glesv2 |
46 endif | 54 endif |
47 CFLAGS+= -DUSE_GLES | 55 CFLAGS+= -DUSE_GLES |
48 else | 56 else |
49 LIBS=sdl2 glew gl | 57 LIBS=sdl2 glew gl |
50 endif #USE_GLES | 58 endif #USE_GLES |
59 endif #USE_FBDEV | |
51 FONT:=nuklear_ui/font.o | 60 FONT:=nuklear_ui/font.o |
52 endif #Darwin | 61 endif #Darwin |
53 | 62 |
54 ifdef HOST_ZLIB | 63 ifdef HOST_ZLIB |
55 LIBS+= zlib | 64 LIBS+= zlib |
90 ifeq ($(MAKECMDGOALS),libblastem.so) | 99 ifeq ($(MAKECMDGOALS),libblastem.so) |
91 LDFLAGS:=-lm | 100 LDFLAGS:=-lm |
92 else | 101 else |
93 CFLAGS:=$(shell pkg-config --cflags-only-I $(LIBS)) $(CFLAGS) | 102 CFLAGS:=$(shell pkg-config --cflags-only-I $(LIBS)) $(CFLAGS) |
94 LDFLAGS:=-lm $(shell pkg-config --libs $(LIBS)) $(GLES_LIB) | 103 LDFLAGS:=-lm $(shell pkg-config --libs $(LIBS)) $(GLES_LIB) |
104 ifdef USE_FBDEV | |
105 LDFLAGS+= -pthread | |
106 endif | |
95 endif #libblastem.so | 107 endif #libblastem.so |
96 | 108 |
97 ifeq ($(OS),Darwin) | 109 ifeq ($(OS),Darwin) |
98 LDFLAGS+= -framework OpenGL -framework AppKit | 110 LDFLAGS+= -framework OpenGL -framework AppKit |
99 endif | 111 endif |
171 TRANSOBJS=backend.o tern.o | 183 TRANSOBJS=backend.o tern.o |
172 M68KOBJS=68kinst.o m68k_core.o musashi/m68kops.o musashi/m68kcpu.o | 184 M68KOBJS=68kinst.o m68k_core.o musashi/m68kops.o musashi/m68kcpu.o |
173 endif | 185 endif |
174 AUDIOOBJS=ym2612.o psg.o wave.o | 186 AUDIOOBJS=ym2612.o psg.o wave.o |
175 CONFIGOBJS=config.o tern.o util.o paths.o | 187 CONFIGOBJS=config.o tern.o util.o paths.o |
176 NUKLEAROBJS=$(FONT) nuklear_ui/blastem_nuklear.o nuklear_ui/sfnt.o controller_info.o | 188 NUKLEAROBJS=$(FONT) nuklear_ui/blastem_nuklear.o nuklear_ui/sfnt.o |
177 RENDEROBJS=render_sdl.o ppm.o | 189 RENDEROBJS=ppm.o controller_info.o |
190 ifdef USE_FBDEV | |
191 RENDEROBJS+= render_fbdev.o | |
192 else | |
193 RENDEROBJS+= render_sdl.o | |
194 endif | |
178 | 195 |
179 ifdef NOZLIB | 196 ifdef NOZLIB |
180 CFLAGS+= -DDISABLE_ZLIB | 197 CFLAGS+= -DDISABLE_ZLIB |
181 else | 198 else |
182 RENDEROBJS+= $(LIBZOBJS) png.o | 199 RENDEROBJS+= $(LIBZOBJS) png.o |