mirror of
https://github.com/libretro/RetroArch
synced 2025-01-01 12:11:47 +00:00
59 lines
1.6 KiB
Makefile
59 lines
1.6 KiB
Makefile
TARGET := rpng
|
|
|
|
CORE_DIR := .
|
|
LIBRETRO_PNG_DIR := ../../../formats/png
|
|
LIBRETRO_COMM_DIR := ../../..
|
|
|
|
HAVE_IMLIB2=0
|
|
|
|
LDFLAGS += -lz
|
|
|
|
ifeq ($(HAVE_IMLIB2),1)
|
|
CFLAGS += -DHAVE_IMLIB2
|
|
LDFLAGS += -lImlib2
|
|
endif
|
|
|
|
SOURCES_C := \
|
|
$(CORE_DIR)/rpng_test.c \
|
|
$(LIBRETRO_PNG_DIR)/rpng.c \
|
|
$(LIBRETRO_PNG_DIR)/rpng_encode.c \
|
|
$(LIBRETRO_COMM_DIR)/encodings/encoding_crc32.c \
|
|
$(LIBRETRO_COMM_DIR)/encodings/encoding_utf.c \
|
|
$(LIBRETRO_COMM_DIR)/string/stdstring.c \
|
|
$(LIBRETRO_COMM_DIR)/compat/fopen_utf8.c \
|
|
$(LIBRETRO_COMM_DIR)/compat/compat_strl.c \
|
|
$(LIBRETRO_COMM_DIR)/compat/compat_posix_string.c \
|
|
$(LIBRETRO_COMM_DIR)/compat/compat_strcasestr.c \
|
|
$(LIBRETRO_COMM_DIR)/file/nbio/nbio_intf.c \
|
|
$(LIBRETRO_COMM_DIR)/file/nbio/nbio_stdio.c \
|
|
$(LIBRETRO_COMM_DIR)/file/nbio/nbio_linux.c \
|
|
$(LIBRETRO_COMM_DIR)/file/nbio/nbio_unixmmap.c \
|
|
$(LIBRETRO_COMM_DIR)/file/nbio/nbio_windowsmmap.c \
|
|
$(LIBRETRO_COMM_DIR)/file/archive_file.c \
|
|
$(LIBRETRO_COMM_DIR)/file/archive_file_zlib.c \
|
|
$(LIBRETRO_COMM_DIR)/file/file_path.c \
|
|
$(LIBRETRO_COMM_DIR)/streams/file_stream.c \
|
|
$(LIBRETRO_COMM_DIR)/vfs/vfs_implementation.c \
|
|
$(LIBRETRO_COMM_DIR)/streams/trans_stream.c \
|
|
$(LIBRETRO_COMM_DIR)/streams/trans_stream_zlib.c \
|
|
$(LIBRETRO_COMM_DIR)/streams/trans_stream_pipe.c \
|
|
$(LIBRETRO_COMM_DIR)/lists/string_list.c
|
|
|
|
OBJS := $(SOURCES_C:.c=.o)
|
|
|
|
CFLAGS += -Wall -pedantic -std=gnu99 -O0 -g -DHAVE_ZLIB -DRPNG_TEST -I$(LIBRETRO_COMM_DIR)/include
|
|
|
|
all: $(TARGET)
|
|
|
|
%.o: %.c
|
|
$(CC) -c -o $@ $< $(CFLAGS)
|
|
|
|
$(TARGET): $(OBJS)
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
clean:
|
|
rm -f $(TARGET) $(OBJS)
|
|
|
|
.PHONY: clean
|
|
|