Mercurial > repos > blastem
comparison Makefile @ 1758:95e387e1d63c mame_interp
Fix build
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 19 Feb 2019 07:03:57 +0000 |
parents | 956c1cce05e2 |
children | 8fe162bdb038 |
comparison
equal
deleted
inserted
replaced
1696:956c1cce05e2 | 1758:95e387e1d63c |
---|---|
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 ifdef USE_GLES | 41 ifdef USE_GLES |
42 ifdef GLES_LIB | |
43 LIBS=sdl2 | |
44 else | |
42 LIBS=sdl2 glesv2 | 45 LIBS=sdl2 glesv2 |
46 endif | |
43 CFLAGS+= -DUSE_GLES | 47 CFLAGS+= -DUSE_GLES |
44 else | 48 else |
45 LIBS=sdl2 glew gl | 49 LIBS=sdl2 glew gl |
46 endif #USE_GLES | 50 endif #USE_GLES |
47 FONT:=nuklear_ui/font.o | 51 FONT:=nuklear_ui/font.o |
85 else | 89 else |
86 ifeq ($(MAKECMDGOALS),libblastem.so) | 90 ifeq ($(MAKECMDGOALS),libblastem.so) |
87 LDFLAGS:=-lm | 91 LDFLAGS:=-lm |
88 else | 92 else |
89 CFLAGS:=$(shell pkg-config --cflags-only-I $(LIBS)) $(CFLAGS) | 93 CFLAGS:=$(shell pkg-config --cflags-only-I $(LIBS)) $(CFLAGS) |
90 LDFLAGS:=-lm $(shell pkg-config --libs $(LIBS)) | 94 LDFLAGS:=-lm $(shell pkg-config --libs $(LIBS)) $(GLES_LIB) |
91 endif #libblastem.so | 95 endif #libblastem.so |
92 | 96 |
93 ifeq ($(OS),Darwin) | 97 ifeq ($(OS),Darwin) |
94 LDFLAGS+= -framework OpenGL -framework AppKit | 98 LDFLAGS+= -framework OpenGL -framework AppKit |
95 endif | 99 endif |