wolf/Makefile

24 lines
566 B
Makefile
Raw Normal View History

2024-07-30 16:48:07 +02:00
TARGET = wolf
DEBUG_TARGET = wolfdebug
CC = gcc
DEBUG_CFLAGS = -Wall -Wextra -Werror -pedantic-errors -fstack-protector-strong \
-fsanitize=address -fsanitize=undefined -fstack-clash-protection \
-Wwrite-strings -std=c99 -g
CFLAGS = -Wall -Wextra -Werror -pedantic-errors -Wwrite-strings -std=c99 -O3
2024-08-20 16:09:42 +02:00
BUILD_FLAGS = -DVERSION=\"0.0.2\"
2024-07-30 16:48:07 +02:00
build: $(TARGET)
debug: $(DEBUG_TARGET)
2024-07-31 11:22:30 +02:00
$(TARGET): wolf.c
2024-07-30 16:48:07 +02:00
$(CC) $(CFLAGS) $(BUILD_FLAGS) $^ -o $@
2024-07-31 11:22:30 +02:00
$(DEBUG_TARGET): wolf.c
2024-07-30 16:48:07 +02:00
$(CC) $(DEBUG_CFLAGS) $(BUILD_FLAGS) $^ -o $@
clean:
rm -f *.o *.a $(TARGET) $(DEBUG_TARGET)