catgirl/Makefile

42 lines
699 B
Makefile
Raw Normal View History

2020-02-09 20:02:47 +00:00
PREFIX = /usr/local
MANDIR = ${PREFIX}/share/man
2020-02-01 06:18:01 +00:00
CFLAGS += -std=c11 -Wall -Wextra -Wpedantic
LDLIBS = -lcrypto -ltls -lncursesw
-include config.mk
2020-02-01 06:18:01 +00:00
OBJS += chat.o
OBJS += command.o
2020-02-08 02:30:25 +00:00
OBJS += complete.o
OBJS += config.o
OBJS += edit.o
2020-02-01 06:18:01 +00:00
OBJS += handle.o
OBJS += irc.o
OBJS += ui.o
2020-02-08 23:29:01 +00:00
OBJS += url.o
OBJS += xdg.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}
2020-02-09 20:02:47 +00:00
install: catgirl catgirl.1
install -d ${PREFIX}/bin ${MANDIR}/man1
install catgirl ${PREFIX}/bin
gzip -c catgirl.1 > ${MANDIR}/man1/catgirl.1.gz
uninstall:
rm -f ${PREFIX}/bin/catgirl ${MANDIR}/man1/catgirl.1.gz