summaryrefslogtreecommitdiff
path: root/Makefile
blob: 2a543238ec2c11347fc578308d597967628bd84a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.POSIX:

CC=cc
CFLAGS=-ansi -D_POSIX_C_SOURCE=200809L -Wall -Wextra -pedantic

all: gopherd

SRC=main.c log.c gopher.c gph.c
OBJ=$(SRC:.c=.o)

gopherd: $(OBJ)
	$(CC) -o $@ $(OBJ)

tags: $(SRC)
	ctags $(SRC)

clean:
	rm -f gopherd 
	rm -f tags 
	rm -f *.o