git subrepo clone https://github.com/libretro/libretro-common.git deps/libretro-common
[pcsx_rearmed.git] / deps / libretro-common / samples / compat / strl / Makefile
CommitLineData
3719602c
PC
1TARGET := strl
2
3CORE_DIR := .
4LIBRETRO_COMM_DIR := ../../..
5
6SOURCES_C := \
7 $(CORE_DIR)/strl_test.c \
8 $(LIBRETRO_COMM_DIR)/compat/compat_strl.c
9
10OBJS := $(SOURCES_C:.c=.o)
11
12CFLAGS += -Wall -pedantic -std=gnu99 -I$(LIBRETRO_COMM_DIR)/include
13
14all: $(TARGET)
15
16%.o: %.c
17 $(CC) -c -o $@ $< $(CFLAGS)
18
19$(TARGET): $(OBJS)
20 $(CC) -o $@ $^ $(LDFLAGS)
21
22clean:
23 rm -f $(TARGET) $(OBJS)
24
25.PHONY: clean