summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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