Files
libretro-puzzlescript/Makefile.common
Nathan Whitehead cb9a13b19f Remove all traces of npm, babel, es5.
Simplify gn build system to use source files directly
without going through gen directory. This made the
xxd generated names more fragile, had to tweak the DOCKER_BUILDKIT
script to workaround that.
2022-09-27 21:10:07 -06:00

29 lines
640 B
Makefile

SRC_DIR = $(CORE_DIR)/src
LIBRETRO_DIR = $(SRC_DIR)/libretro
QUICKJS_SRC_DIR = $(SRC_DIR)/quickjs-2021-03-27
INCFLAGS := \
-I$(SRC_DIR) \
-I$(LIBRETRO_DIR) \
-I$(QUICKJS_SRC_DIR)
COREDEFINES = \
-D__LIBRETRO__
SOURCES_CXX := $(foreach dir,$(SRC_DIR),$(wildcard $(dir)/*.cpp))
CXXFLAGS += -DUSE_PRECOMPILED_BUNDLE
SOURCES_C += \
$(QUICKJS_SRC_DIR)/quickjs.c \
$(QUICKJS_SRC_DIR)/libregexp.c \
$(QUICKJS_SRC_DIR)/libunicode.c \
$(QUICKJS_SRC_DIR)/cutils.c \
$(QUICKJS_SRC_DIR)/quickjs-libc.c
CFLAGS += -D_GNU_SOURCE -DCONFIG_VERSION=\"2021-03-27\"
CXXFLAGS += -pthread
CFLAGS += -pthread
LDFLAGS += -pthread