Makefile

1CC = gcc
2CFLAGS = -lncurses
3TARGET = langtons_ant
4SRC = main.c
5
6all: $(TARGET)
7
8$(TARGET): $(SRC)
9	$(CC) -o $@ $^ $(CFLAGS)
10
11clean:
12	rm -f $(TARGET)
13
14.PHONY: all clean
15