You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
288 B

EXE=whac-a-moler
CC=g++
CFLAGS=-g -O2 -std=gnu++17
LFLAGS=-lm
WFLAGS=-Wall -Wextra -Weffc++ -Wpedantic
OBJ=main.cpp
.PHONY: clean test
test: $(EXE)
./$(EXE)<d0 | diff --color=always a0 -
$(EXE): $(OBJ)
$(CC) $(CFLAGS) -o $@ -static $(OBJ) $(LFLAGS) $(WFLAGS)
clean:
rm -rf $(EXE)