1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
CFLAGS += -O2 -Wall -Wextra -Wpedantic LDFLAGS += -lm -lncurses TARGET := dartbot SRC := $(wildcard *.c) OBJ := $(SRC:.c=.o) all: $(TARGET) $(TARGET): $(OBJ) clean: rm -f $(TARGET) $(OBJ) .PHONY: all clean