diff options
author | Daniel Jones <admin@danieljon.es> | 2020-03-31 11:55:58 +1030 |
---|---|---|
committer | Daniel Jones <admin@danieljon.es> | 2020-03-31 11:55:58 +1030 |
commit | b2a90c1034d9c22b448dc3e04328bf194b33b2f5 (patch) | |
tree | 84db8daba0a1a33466de7f95d6670b4747f80958 /makefile | |
parent | efe6e98b486bc27e4a622afb841e8b702064d870 (diff) | |
download | snake-b2a90c1034d9c22b448dc3e04328bf194b33b2f5.tar.gz snake-b2a90c1034d9c22b448dc3e04328bf194b33b2f5.zip |
user can now toggle field wrapping using 'f'. also added a makefile and removed dumb bot code
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 25 |
1 files changed, 25 insertions, 0 deletions
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) |