Commit 05c7f4e9 authored by Libretro-Admin's avatar Libretro-Admin
Browse files

Add rules for EXTERNAL_ZLIB

parent 5b0d38d9
Pipeline #1322 passed with stages
in 6 minutes and 22 seconds
......@@ -190,17 +190,21 @@ else
EXTERNAL_ZLIB = 1
endif
ZLIB =
ifneq ($(EXTERNAL_ZLIB), 1)
ZLIB = -lz
endif
ifeq ($(DEBUG), 1)
CFLAGS := $(CFLAGS) -Og -g
CFLAGS += -Og -g
else
CFLAGS := -funroll-loops -ffast-math -fomit-frame-pointer $(CFLAGS) -O3
CFLAGS += -funroll-loops -ffast-math -fomit-frame-pointer -O3
endif
CFLAGS := -fsigned-char -D__LIBRETRO__ -fno-builtin $(CFLAGS)
CFLAGS += -fsigned-char -D__LIBRETRO__ -fno-builtin
CFLAGS := $(fpic) $(CFLAGS) $(PLATFLAGS)
CFLAGS += $(fpic) $(PLATFLAGS)
CXXFLAGS := $(CFLAGS)
CPPFLAGS := $(CFLAGS)
CFLAGS := $(CFLAGS)
EMU = $(CORE_DIR)/src
CPU = $(EMU)/uae-cpu
......@@ -221,7 +225,7 @@ $(TARGET): $(OBJECTS)
ifeq ($(STATIC_LINKING_LINK),1)
$(AR) rcs $@ $(OBJECTS)
else
$(CC) $(CFLAGS) $(INCFLAGS) $(LDFLAGS) $(OBJECTS) -o $@ -lm -lz $(SHARED)
$(CC) $(CFLAGS) $(INCFLAGS) $(LDFLAGS) $(OBJECTS) -o $@ -lm $(ZLIB) $(SHARED)
endif
%.o: %.c
......
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