summary refs log tree commit diff
path: root/Makefile
blob: 5380d201d65f277a8f8d38077cb50c38c3fcab6d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
CFLAGS += -std=c11 -Wall -Wextra -Wpedantic
LDLIBS = -lcrypto -ltls -lncursesw

-include config.mk

OBJS += chat.o
OBJS += command.o
OBJS += config.o
OBJS += edit.o
OBJS += handle.o
OBJS += irc.o
OBJS += ui.o

dev: tags all

all: catgirl

catgirl: ${OBJS}
	${CC} ${LDFLAGS} ${OBJS} ${LDLIBS} -o $@

${OBJS}: chat.h

tags: *.h *.c
	ctags -w *.h *.c

clean:
	rm -f tags catgirl ${OBJS}