2020-02-01 06:18:01 +00:00
|
|
|
LIBRESSL_PREFIX = /usr/local
|
|
|
|
CFLAGS += -I${LIBRESSL_PREFIX}/include
|
|
|
|
LDFLAGS += -L${LIBRESSL_PREFIX}/lib
|
|
|
|
|
|
|
|
CFLAGS += -std=c11 -Wall -Wextra -Wpedantic
|
2020-02-02 00:37:48 +00:00
|
|
|
LDLIBS = -lcurses -lcrypto -ltls
|
2020-02-01 06:18:01 +00:00
|
|
|
|
|
|
|
OBJS += chat.o
|
|
|
|
OBJS += handle.o
|
|
|
|
OBJS += irc.o
|
2020-02-02 00:37:48 +00:00
|
|
|
OBJS += ui.o
|
2020-02-01 06:18:01 +00:00
|
|
|
|
2020-02-02 02:55:05 +00:00
|
|
|
dev: tags all
|
|
|
|
|
|
|
|
all: catgirl
|
|
|
|
|
2020-02-01 06:18:01 +00:00
|
|
|
catgirl: ${OBJS}
|
|
|
|
${CC} ${LDFLAGS} ${OBJS} ${LDLIBS} -o $@
|
|
|
|
|
|
|
|
${OBJS}: chat.h
|
|
|
|
|
2020-02-02 02:55:05 +00:00
|
|
|
tags: *.h *.c
|
|
|
|
ctags -w *.h *.c
|
|
|
|
|
2020-02-01 06:18:01 +00:00
|
|
|
clean:
|
2020-02-02 02:55:05 +00:00
|
|
|
rm -f tags catgirl ${OBJS}
|