mirror of https://github.com/snes9xgit/snes9x.git
Genode make rules
This commit is contained in:
parent
18d52cd0f5
commit
2fbec27d95
|
@ -238,6 +238,22 @@ else ifeq ($(platform), emscripten)
|
||||||
TARGET := $(TARGET_NAME)_libretro_$(platform).bc
|
TARGET := $(TARGET_NAME)_libretro_$(platform).bc
|
||||||
STATIC_LINKING = 1
|
STATIC_LINKING = 1
|
||||||
|
|
||||||
|
# Genode
|
||||||
|
else ifeq ($(platform), genode)
|
||||||
|
TARGET := $(TARGET_NAME)_libretro.lib.so
|
||||||
|
PKG_CONFIG := genode-lib genode-stdcxx
|
||||||
|
CXXFLAGS += -D__GENODE__
|
||||||
|
CXXFLAGS += $(shell pkg-config --cflags $(PKG_CONFIG))
|
||||||
|
|
||||||
|
LDFLAGS += -shared --version-script=link.T
|
||||||
|
LDFLAGS += $(shell pkg-config --libs $(PKG_CONFIG))
|
||||||
|
|
||||||
|
CC = $(shell pkg-config genode-base --variable=cc)
|
||||||
|
CXX = $(shell pkg-config genode-base --variable=cxx)
|
||||||
|
LD = $(shell pkg-config genode-base --variable=ld)
|
||||||
|
AR = $(shell pkg-config genode-base --variable=ar) -rcs
|
||||||
|
LIBS =
|
||||||
|
|
||||||
# Windows MSVC 2003 Xbox 1
|
# Windows MSVC 2003 Xbox 1
|
||||||
else ifeq ($(platform), xbox1_msvc2003)
|
else ifeq ($(platform), xbox1_msvc2003)
|
||||||
CFLAGS += -D__WIN32__
|
CFLAGS += -D__WIN32__
|
||||||
|
@ -551,7 +567,7 @@ ifeq ($(STATIC_LINKING),1)
|
||||||
else
|
else
|
||||||
LD = link.exe
|
LD = link.exe
|
||||||
endif
|
endif
|
||||||
else
|
else ifneq ($(platform),genode)
|
||||||
LD = $(CXX)
|
LD = $(CXX)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue