git subrepo clone https://github.com/libretro/libretro-common.git deps/libretro-common
[pcsx_rearmed.git] / deps / libretro-common / samples / compat / strl / Makefile
diff --git a/deps/libretro-common/samples/compat/strl/Makefile b/deps/libretro-common/samples/compat/strl/Makefile
new file mode 100644 (file)
index 0000000..7b4c59f
--- /dev/null
@@ -0,0 +1,25 @@
+TARGET := strl
+
+CORE_DIR          := .
+LIBRETRO_COMM_DIR := ../../..
+
+SOURCES_C :=   \
+       $(CORE_DIR)/strl_test.c \
+       $(LIBRETRO_COMM_DIR)/compat/compat_strl.c
+
+OBJS := $(SOURCES_C:.c=.o)
+
+CFLAGS += -Wall -pedantic -std=gnu99 -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