CFLAGS += -O2 -Wall -Wextra -Wpedantic
CPPFLAGS += -MMD -MP
LDFLAGS += -lm -lncurses

TARGET := dartboat

SRC := $(wildcard *.c)
OBJ := $(SRC:.c=.o)
DEP := $(OBJ:.o=.d)

all: $(TARGET)

$(TARGET): $(OBJ)

clean:
	rm -f $(TARGET) $(OBJ) $(DEP)

-include $(DEP)

.PHONY: all clean