obs-replay-folders/Makefile

21 lines
296 B
Makefile
Raw Normal View History

2024-08-21 12:25:31 +02:00
CC = x86_64-w64-mingw32-gcc
2024-08-21 12:32:27 +02:00
STRIP = strip -s
2024-08-21 12:25:31 +02:00
RM = rm
2024-08-21 12:32:27 +02:00
CFLAGS = -shared
2024-08-21 12:25:31 +02:00
EXES = detect_game
EXT = .dll
all: $(EXES)
$(EXES): %: %.c $(DEPS)
$(CC) $^ -o $@$(EXT) $(CFLAGS)
2024-08-21 12:32:27 +02:00
$(STRIP) $@$(EXT)
2024-08-21 12:25:31 +02:00
%.o: %.c
$(CC) -c $< -o $@ $(CFLAGS)
clean:
@$(RM) *.o $(addsuffix $(EXT), $(EXES)) 2>/dev/null |: