adventofcode/2024/day1/Makefile

20 lines
224 B
Makefile
Raw Normal View History

2024-12-03 21:49:50 +01:00
CC = ocamlopt
RM = rm -rf
NAME = main
EXE = a.out
2024-12-03 21:51:24 +01:00
LIB =
2024-12-03 21:49:50 +01:00
all: run
compilation:
$(CC) -o $(EXE) $(LIB) $(NAME).ml
run: compilation
./$(EXE)
EXTS = cmi cmx o
clean:
$(RM) $(EXE) $(foreach ext,$(EXTS),$(NAME).$(ext))