game/makefile

17 lines
377 B
Makefile
Raw Normal View History

2025-11-23 18:21:50 +03:00
CC = clang
CFLAGS = -Wall -Wextra -Werror -pedantic -std=c11 -nostdlib -static -Oz -ffreestanding
LDFLAGS = -Wl,/SUBSYSTEM:CONSOLE,/ENTRY:_start -fuse-ld=lld
LIBS = -lkernel32 -luser32
2025-11-23 19:12:06 +03:00
SOURCES = main.c axl_memory.c
2025-11-23 18:21:50 +03:00
TARGET = prog.exe
all: $(TARGET)
2025-11-23 22:11:41 +03:00
$(TARGET): $(SOURCES)
2025-11-23 18:21:50 +03:00
$(CC) $(CFLAGS) $(SOURCES) -o $(TARGET) $(LDFLAGS) $(LIBS)
clean:
rm -f $(TARGET)
.PHONY: all clean