From b2a90c1034d9c22b448dc3e04328bf194b33b2f5 Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Tue, 31 Mar 2020 11:55:58 +1030 Subject: added wrapping user can now toggle field wrapping using 'f'. also added a makefile and removed dumb bot code --- makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 makefile (limited to 'makefile') diff --git a/makefile b/makefile new file mode 100644 index 0000000..16cb412 --- /dev/null +++ b/makefile @@ -0,0 +1,25 @@ +TARGET = snake +LIBS = +CC = gcc +CFLAGS = -lncurses -lpthread + +.PHONY: default all + +default: $(TARGET) +all: default + +OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c)) +HEADERS = $(wildcard *.h) + +%.o: %.c $(HEADERS) + $(CC) $(CFLAGS) -c $< -o $@ + +.PRECIOUS: $(TARGET) $(OBJECTS) + +$(TARGET): $(OBJECTS) + $(CC) $(OBJECTS) -Wall $(CFLAGS) $(LIBS) -o $@ + +clean: + -rm -f *.o + -rm -f *.tmp + -rm -f $(TARGET) -- cgit v1.2.3