1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
Description: add environment variables to the build
--- a/Makefile
+++ b/Makefile
@@ -32,8 +32,8 @@ else
flags := -I. -O3 -fomit-frame-pointer
endif
-cflags := -std=gnu99 -xc
-cppflags := -std=gnu++0x
+cflags := $(CFLAGS) $(CPPFLAGS) -std=gnu99 -xc
+cppflags := $(CXXFLAGS) $(CPPFLAGS) -std=gnu++0x
objects := libco
--- a/target-libretro/Makefile
+++ b/target-libretro/Makefile
@@ -39,7 +39,7 @@ obj/libretro-$(profile).o: $(ui)/libretr
#targets
build: $(objects)
ifeq ($(platform),linux)
- $(compiler) -o out/bsnes_mercury_$(profile)_libretro.so -shared $(objects) -ldl -Wl,--no-undefined -Wl,--version-script=$(ui)/link.T $(link)
+ $(compiler) -o out/bsnes_mercury_$(profile)_libretro.so -shared $(objects) -ldl -Wl,--no-undefined -Wl,--version-script=$(ui)/link.T $(link) $(LDFLAGS)
else ifeq ($(platform),bsd)
$(compiler) -o out/bsnes_mercury_$(profile)_libretro.so -shared $(objects) -ldl -Wl,--no-undefined -Wl,--version-script=$(ui)/link.T $(link)
else ifneq (,$(findstring ios,$(platform)))
|