2020-01-30 17:25:58 +01:00

25 lines
394 B
Makefile

TARGET := compat_fnmatch_test
LIBRETRO_COMM_DIR := ../../..
SOURCES := \
compat_fnmatch_test.c \
$(LIBRETRO_COMM_DIR)/compat/compat_fnmatch.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