enhancer/Makefile
2024-08-04 12:03:56 +02:00

22 lines
423 B
Makefile

CC = gcc
CFLAGS = -Wall -L. -lm -O3 -march=native
CDEBUGFLAGS = -Wall -L. -lm -g
SOURCE = main.c
TARGET = enhancer
# Default target
all: release
# Rule to build the executable
release: $(SOURCE)
$(CC) $(CFLAGS) -o $(TARGET) $<
debug: $(SOURCE)
$(CC) $(CDEBUGFLAGS) -o $(TARGET)_debug $<
# Rule to clean up object files and the executable
clean:
rm -f $(TARGET) $(TARGET)_debug *.o
# Phony targets
.PHONY: all clean