summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authornirav <nirav@teisuu.com>2019-09-19 15:36:02 +0000
committernirav <nirav@teisuu.com>2019-09-19 15:44:14 +0000
commitd5f4022408249c5a513ae795b7b360854bd75a6c (patch)
treead20cbe6aba24649647b7aa0520f25392571aeeb /Makefile
parente985bfa6b8facac58da9a20c3c840498e2517bb5 (diff)
downloadgopherd-d5f4022408249c5a513ae795b7b360854bd75a6c.tar.gz
gopherd-d5f4022408249c5a513ae795b7b360854bd75a6c.zip
Update
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a989775..9debc82 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,20 @@
+.POSIX:
+
CC=cc
CFLAGS=-ansi -Wall -Wextra -pedantic
all: gopherd
-OBJ=main.o log.o
+SRC=main.c log.c gopher.c
+OBJ=$(SRC:.c=.o)
gopherd: $(OBJ)
$(CC) -o $@ $(OBJ)
+tags: $(SRC)
+ ctags $(SRC)
+
clean:
- rm -f gopherd *.o
+ rm -f gopherd
+ rm -f tags
+ rm -f *.o