Commit e1bada70 authored by Libretro-Admin's avatar Libretro-Admin
Browse files

Add Makefile.common

parent 1ad67a4f
SOURCES_C := $(CORE_DIR)/libretro.c \
$(CORE_DIR)/game_noncairo.c \
$(CORE_DIR)/game_shared.c
......@@ -64,7 +64,11 @@ else
CFLAGS += -O3
endif
OBJECTS := libretro.o game_noncairo.o game_shared.o
CORE_DIR := .
include Makefile.common
OBJECTS := $(SOURCES_C:.c=.o)
CFLAGS += -Wall -pedantic $(fpic) $(PLATFORM_DEFINES)
CFLAGS +=
......
......@@ -2,8 +2,6 @@ LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
APP_DIR := ../
LOCAL_MODULE := retro
ifeq ($(TARGET_ARCH),arm)
......@@ -19,7 +17,11 @@ ifeq ($(TARGET_ARCH),mips)
LOCAL_CFLAGS += -DANDROID_MIPS -D__mips__ -D__MIPSEL__
endif
LOCAL_SRC_FILES += $(APP_DIR)/libretro.c $(APP_DIR)/game_noncairo.c $(APP_DIR)/game_shared.c
CORE_DIR := ..
include $(CORE_DIR)/Makefile.common
LOCAL_SRC_FILES += $(SOURCES_C)
LOCAL_CFLAGS += -O2 -std=gnu99 -DINLINE=inline -D__LIBRETRO__
include $(BUILD_SHARED_LIBRARY)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment