Commit | Line | Data |
---|---|---|
3719602c PC |
1 | TARGET := strl |
2 | ||
3 | CORE_DIR := . | |
4 | LIBRETRO_COMM_DIR := ../../.. | |
5 | ||
6 | SOURCES_C := \ | |
7 | $(CORE_DIR)/strl_test.c \ | |
8 | $(LIBRETRO_COMM_DIR)/compat/compat_strl.c | |
9 | ||
10 | OBJS := $(SOURCES_C:.c=.o) | |
11 | ||
12 | CFLAGS += -Wall -pedantic -std=gnu99 -I$(LIBRETRO_COMM_DIR)/include | |
13 | ||
14 | all: $(TARGET) | |
15 | ||
16 | %.o: %.c | |
17 | $(CC) -c -o $@ $< $(CFLAGS) | |
18 | ||
19 | $(TARGET): $(OBJS) | |
20 | $(CC) -o $@ $^ $(LDFLAGS) | |
21 | ||
22 | clean: | |
23 | rm -f $(TARGET) $(OBJS) | |
24 | ||
25 | .PHONY: clean |