mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 19:24:46 +00:00
Move test files
This commit is contained in:
parent
12e51eb4b5
commit
32a8b57826
@ -1,9 +1,14 @@
|
||||
TARGET := nbio_test
|
||||
|
||||
SOURCES := $(wildcard *.c)
|
||||
LIBRETRO_COMM_DIR := ../../..
|
||||
|
||||
SOURCES := \
|
||||
nbio_test.c \
|
||||
../nbio_stdio.c
|
||||
|
||||
OBJS := $(SOURCES:.c=.o)
|
||||
|
||||
CFLAGS += -Wall -pedantic -std=gnu99 -O0 -g -I../../include
|
||||
CFLAGS += -Wall -pedantic -std=gnu99 -g -I$(LIBRETRO_COMM_DIR)/include
|
||||
|
||||
all: $(TARGET)
|
||||
|
@ -1,38 +0,0 @@
|
||||
TARGET := rpng
|
||||
HAVE_IMLIB2=1
|
||||
|
||||
LDFLAGS += -lz
|
||||
|
||||
ifeq ($(HAVE_IMLIB2),1)
|
||||
CFLAGS += -DHAVE_IMLIB2
|
||||
LDFLAGS += -lImlib2
|
||||
endif
|
||||
|
||||
SOURCES_C := rpng.c \
|
||||
rpng_encode.c \
|
||||
rpng_test.c \
|
||||
../../compat/compat_strl.c \
|
||||
../../file/nbio/nbio_stdio.c \
|
||||
../../file/file_archive.c \
|
||||
../../file/file_archive_zlib.c \
|
||||
../../file/file_path.c \
|
||||
../../file/retro_file.c \
|
||||
../../string/string_list.c
|
||||
|
||||
OBJS := $(SOURCES_C:.c=.o)
|
||||
|
||||
CFLAGS += -Wall -pedantic -std=gnu99 -O0 -g -DHAVE_ZLIB -DHAVE_ZLIB_DEFLATE -DRPNG_TEST -I../../include
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
%.o: %.c
|
||||
$(CC) -c -o $@ $< $(CFLAGS)
|
||||
|
||||
$(TARGET): $(OBJS)
|
||||
$(CC) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
clean:
|
||||
rm -f $(TARGET) $(OBJS)
|
||||
|
||||
.PHONY: clean
|
||||
|
43
libretro-common/formats/png/test/Makefile
Normal file
43
libretro-common/formats/png/test/Makefile
Normal file
@ -0,0 +1,43 @@
|
||||
TARGET := rpng
|
||||
|
||||
LIBRETRO_PNG_DIR := ..
|
||||
LIBRETRO_COMM_DIR := ../../..
|
||||
|
||||
HAVE_IMLIB2=1
|
||||
|
||||
LDFLAGS += -lz
|
||||
|
||||
ifeq ($(HAVE_IMLIB2),1)
|
||||
CFLAGS += -DHAVE_IMLIB2
|
||||
LDFLAGS += -lImlib2
|
||||
endif
|
||||
|
||||
SOURCES_C := \
|
||||
rpng_test.c \
|
||||
$(LIBRETRO_PNG_DIR)/rpng.c \
|
||||
$(LIBRETRO_PNG_DIR)/rpng_encode.c \
|
||||
$(LIBRETRO_COMM_DIR)/compat/compat_strl.c \
|
||||
$(LIBRETRO_COMM_DIR)/file/nbio/nbio_stdio.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)/lists/string_list.c
|
||||
|
||||
OBJS := $(SOURCES_C:.c=.o)
|
||||
|
||||
CFLAGS += -Wall -pedantic -std=gnu99 -O0 -g -DHAVE_ZLIB -DHAVE_ZLIB_DEFLATE -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
|
||||
|
@ -1,10 +1,12 @@
|
||||
TARGET := rxml
|
||||
|
||||
LIBRETRO_COMM_DIR := ../..
|
||||
LIBRETRO_XML_DIR := ..
|
||||
LIBRETRO_COMM_DIR := ../../..
|
||||
|
||||
SOURCES := \
|
||||
$(wildcard *.c) \
|
||||
$(LIBRETRO_COMM_DIR)/file/retro_file.c
|
||||
rxml_test.c \
|
||||
$(LIBRETRO_XML_DIR)/rxml.c \
|
||||
$(LIBRETRO_COMM_DIR)/streams/file_stream.c
|
||||
|
||||
OBJS := $(SOURCES:.c=.o)
|
||||
|
Loading…
Reference in New Issue
Block a user