2024-08-21 18:00:12 +02:00
|
|
|
CC = x86_64-w64-mingw32-gcc
|
2024-08-21 12:32:27 +02:00
|
|
|
STRIP = strip -s
|
2024-08-21 18:00:12 +02:00
|
|
|
RM = rm
|
2024-08-21 12:25:31 +02:00
|
|
|
|
2024-08-21 13:57:13 +02:00
|
|
|
CFLAGS = -shared -O3
|
2024-08-21 12:25:31 +02:00
|
|
|
|
2024-08-21 18:00:12 +02:00
|
|
|
SRC = detect_game
|
|
|
|
EXT = .dll
|
2024-08-21 12:25:31 +02:00
|
|
|
|
2024-08-21 18:00:12 +02:00
|
|
|
all: $(SRC)
|
2024-08-21 12:25:31 +02:00
|
|
|
|
2024-08-21 18:00:12 +02:00
|
|
|
$(SRC): %: %.c $(DEPS)
|
2024-08-21 12:25:31 +02:00
|
|
|
$(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:
|
2024-08-21 18:00:12 +02:00
|
|
|
@$(RM) $(addsuffix $(EXT), $(SRC)) 2>/dev/null |:
|