comparison Makefile @ 1779:3a8c4ee68568

Added raw fbdev/evdev/ALSA render backend
author Michael Pavone <pavone@retrodev.com>
date Sun, 10 Mar 2019 21:30:09 -0700
parents 057198058196
children 0c6d07f91346 a02b4ed940b6
comparison
equal deleted inserted replaced
1767:8a29c250f352 1779:3a8c4ee68568
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 LIBS=sdl2 glesv2 50 LIBS=sdl2 glesv2
43 CFLAGS+= -DUSE_GLES 51 CFLAGS+= -DUSE_GLES
44 else 52 else
45 LIBS=sdl2 glew gl 53 LIBS=sdl2 glew gl
46 endif #USE_GLES 54 endif #USE_GLES
55 endif #USE_FBDEV
47 FONT:=nuklear_ui/font.o 56 FONT:=nuklear_ui/font.o
48 endif #Darwin 57 endif #Darwin
49 58
50 ifdef HOST_ZLIB 59 ifdef HOST_ZLIB
51 LIBS+= zlib 60 LIBS+= zlib
86 ifeq ($(MAKECMDGOALS),libblastem.so) 95 ifeq ($(MAKECMDGOALS),libblastem.so)
87 LDFLAGS:=-lm 96 LDFLAGS:=-lm
88 else 97 else
89 CFLAGS:=$(shell pkg-config --cflags-only-I $(LIBS)) $(CFLAGS) 98 CFLAGS:=$(shell pkg-config --cflags-only-I $(LIBS)) $(CFLAGS)
90 LDFLAGS:=-lm $(shell pkg-config --libs $(LIBS)) 99 LDFLAGS:=-lm $(shell pkg-config --libs $(LIBS))
100 ifdef USE_FBDEV
101 LDFLAGS+= -pthread
102 endif
91 endif #libblastem.so 103 endif #libblastem.so
92 104
93 ifeq ($(OS),Darwin) 105 ifeq ($(OS),Darwin)
94 LDFLAGS+= -framework OpenGL -framework AppKit 106 LDFLAGS+= -framework OpenGL -framework AppKit
95 endif 107 endif
166 else 178 else
167 Z80OBJS=z80inst.o z80_to_x86.o 179 Z80OBJS=z80inst.o z80_to_x86.o
168 endif 180 endif
169 AUDIOOBJS=ym2612.o psg.o wave.o 181 AUDIOOBJS=ym2612.o psg.o wave.o
170 CONFIGOBJS=config.o tern.o util.o paths.o 182 CONFIGOBJS=config.o tern.o util.o paths.o
171 NUKLEAROBJS=$(FONT) nuklear_ui/blastem_nuklear.o nuklear_ui/sfnt.o controller_info.o 183 NUKLEAROBJS=$(FONT) nuklear_ui/blastem_nuklear.o nuklear_ui/sfnt.o
172 RENDEROBJS=render_sdl.o ppm.o 184 RENDEROBJS=ppm.o controller_info.o
185 ifdef USE_FBDEV
186 RENDEROBJS+= render_fbdev.o
187 else
188 RENDEROBJS+= render_sdl.o
189 endif
173 190
174 ifdef NOZLIB 191 ifdef NOZLIB
175 CFLAGS+= -DDISABLE_ZLIB 192 CFLAGS+= -DDISABLE_ZLIB
176 else 193 else
177 RENDEROBJS+= $(LIBZOBJS) png.o 194 RENDEROBJS+= $(LIBZOBJS) png.o