mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 15:32:59 +00:00
e062b98088
find . -type f -exec sed -i '${/^[[:space:]]*$/d;}' {} \+
32 lines
707 B
Makefile
32 lines
707 B
Makefile
TARGET := nbio_test
|
|
|
|
LIBRETRO_COMM_DIR := ../../..
|
|
|
|
SOURCES := \
|
|
nbio_test.c \
|
|
$(LIBRETRO_COMM_DIR)/compat/fopen_utf8.c \
|
|
$(LIBRETRO_COMM_DIR)/compat/compat_strl.c \
|
|
$(LIBRETRO_COMM_DIR)/encodings/encoding_utf.c \
|
|
$(LIBRETRO_COMM_DIR)/file/nbio/nbio_intf.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/nbio/nbio_stdio.c
|
|
|
|
OBJS := $(SOURCES:.c=.o)
|
|
|
|
CFLAGS += -Wall -pedantic -std=gnu99 -g -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
|