2024-07-16 13:44:28 +02:00
|
|
|
CC = gcc
|
2024-08-04 12:03:56 +02:00
|
|
|
CFLAGS = -Wall -L. -lm -O3 -march=native
|
|
|
|
CDEBUGFLAGS = -Wall -L. -lm -g
|
2024-07-16 13:44:28 +02:00
|
|
|
SOURCE = main.c
|
|
|
|
TARGET = enhancer
|
|
|
|
|
|
|
|
# Default target
|
2024-08-04 12:03:56 +02:00
|
|
|
all: release
|
2024-07-16 13:44:28 +02:00
|
|
|
|
|
|
|
# Rule to build the executable
|
2024-08-04 12:03:56 +02:00
|
|
|
release: $(SOURCE)
|
|
|
|
$(CC) $(CFLAGS) -o $(TARGET) $<
|
|
|
|
|
|
|
|
debug: $(SOURCE)
|
|
|
|
$(CC) $(CDEBUGFLAGS) -o $(TARGET)_debug $<
|
2024-07-16 13:44:28 +02:00
|
|
|
|
|
|
|
# Rule to clean up object files and the executable
|
|
|
|
clean:
|
2024-08-04 12:03:56 +02:00
|
|
|
rm -f $(TARGET) $(TARGET)_debug *.o
|
2024-07-16 13:44:28 +02:00
|
|
|
|
|
|
|
# Phony targets
|
2024-08-04 12:03:56 +02:00
|
|
|
.PHONY: all clean
|