Skip to content

Commit

Permalink
(Libretro-test) Fix Makefiles/JNI files
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Jun 21, 2015
1 parent 0651d8e commit c07ba43
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions cores/libretro-test-gl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ else
CFLAGS += -std=gnu99
endif

OBJECTS := libretro-test.o ../libretro-common/glsym/rglgen.o
OBJECTS := libretro-test.o ../../libretro-common/glsym/rglgen.o
CFLAGS += -Wall -pedantic $(fpic)

ifeq ($(GLES), 1)
Expand All @@ -134,9 +134,9 @@ ifeq ($(GLES), 1)
CFLAGS += -DHAVE_OPENGLES3 -DGLES3
endif
LIBS += -lGLESv2 # Still link against GLESv2 when using GLES3 API, at least on desktop Linux.
OBJECTS += ../libretro-common/glsym/glsym_es2.o
OBJECTS += ../../libretro-common/glsym/glsym_es2.o
else
OBJECTS += ../libretro-common/glsym/glsym_gl.o
OBJECTS += ../../libretro-common/glsym/glsym_gl.o
LIBS += $(GL_LIB)
endif

Expand All @@ -150,7 +150,7 @@ $(TARGET): $(OBJECTS)
$(CC) $(fpic) $(SHARED) $(INCLUDES) -o $@ $(OBJECTS) $(LIBS) -lm $(EXTRA_GL_LIBS)

%.o: %.c
$(CC) -I../libretro-common/include $(CFLAGS) -c -o $@ $<
$(CC) -I../../libretro-common/include $(CFLAGS) -c -o $@ $<

clean:
rm -f $(OBJECTS) $(TARGET)
Expand Down
4 changes: 2 additions & 2 deletions cores/libretro-test-gl/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ else
GLES_LIB := -lGLESv2
endif

LOCAL_SRC_FILES += $(addprefix ../,$(wildcard *.c) ../gfx/glsym/rglgen.c ../gfx/glsym/glsym_es2.c)
LOCAL_CFLAGS += -O2 -Wall -std=gnu99 -ffast-math -DGLES -DHAVE_OPENGLES2
LOCAL_SRC_FILES += $(addprefix ../,$(wildcard *.c) ../../../libretro-common/glsym/rglgen.c ../../../libretro-common/glsym/glsym_es2.c)
LOCAL_CFLAGS += -O2 -Wall -std=gnu99 -ffast-math -DGLES -DHAVE_OPENGLES2 -I../../../libretro-common/include
LOCAL_LDLIBS += $(GLES_LIB)

include $(BUILD_SHARED_LIBRARY)
Expand Down
4 changes: 2 additions & 2 deletions cores/libretro-test-gl/libretro-test.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "../libretro.h"
#include "../../libretro.h"
#include <stdint.h>
#include <string.h>
#include <math.h>
Expand All @@ -8,7 +8,7 @@
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
static struct retro_hw_render_callback hw_render;

#include "../libretro-common/include/glsym/glsym.h"
#include <glsym/glsym.h>

#if defined(HAVE_PSGL)
#define RARCH_GL_FRAMEBUFFER GL_FRAMEBUFFER_OES
Expand Down
2 changes: 1 addition & 1 deletion cores/libretro-test/libretro-test.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "../libretro.h"
#include "../../libretro.h"
#include <stdint.h>
#include <string.h>
#include <math.h>
Expand Down

0 comments on commit c07ba43

Please sign in to comment.