diff options
author | Kylie McClain <kylie@somas.is> | 2022-03-01 20:17:25 -0500 |
---|---|---|
committer | Kylie McClain <kylie@somas.is> | 2022-03-01 20:17:25 -0500 |
commit | 11aa8aefb6aa62bf0ffbd3701037daf147dd19d3 (patch) | |
tree | 1a3326ab200bfcd28347d80bc7f0651b4b1bb5a9 /Makefile | |
parent | chat.c: o pona e toki lon open ilo (diff) | |
parent | Specify commands which depend on caps (diff) | |
download | catgirl-11aa8aefb6aa62bf0ffbd3701037daf147dd19d3.tar.gz catgirl-11aa8aefb6aa62bf0ffbd3701037daf147dd19d3.zip |
Merge branch 'master' of git.causal.agency:pub/catgirl into somasis/tokipona
Diffstat (limited to '')
-rw-r--r-- | Makefile | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/Makefile b/Makefile index 48fc350..3abba03 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,8 @@ BINDIR ?= ${PREFIX}/bin MANDIR ?= ${PREFIX}/man CEXTS = gnu-case-range gnu-conditional-omitted-operand -CFLAGS += -std=c11 -Wall -Wextra -Wpedantic ${CEXTS:%=-Wno-%} +CFLAGS += -std=c11 -Wall -Wextra -Wpedantic -Wmissing-prototypes +CFLAGS += ${CEXTS:%=-Wno-%} LDADD.libtls = -ltls LDADD.ncursesw = -lncursesw @@ -19,13 +20,17 @@ OBJS += config.o OBJS += edit.o OBJS += filter.o OBJS += handle.o +OBJS += input.o OBJS += irc.o OBJS += log.o OBJS += ui.o OBJS += url.o +OBJS += window.o OBJS += xdg.o -dev: tags all +TESTS += edit.t + +dev: tags all check all: catgirl @@ -34,11 +39,21 @@ catgirl: ${OBJS} ${OBJS}: chat.h +edit.o edit.t input.o: edit.h + +check: ${TESTS} + +.SUFFIXES: .t + +.c.t: + ${CC} ${CFLAGS} -DTEST ${LDFLAGS} $< ${LDLIBS} -o $@ + ./$@ || rm $@ + tags: *.[ch] ctags -w *.[ch] clean: - rm -f catgirl ${OBJS} tags + rm -f catgirl ${OBJS} ${TESTS} tags install: catgirl catgirl.1 install -d ${DESTDIR}${BINDIR} ${DESTDIR}${MANDIR}/man1 @@ -48,17 +63,6 @@ install: catgirl catgirl.1 uninstall: rm -f ${DESTDIR}${BINDIR}/catgirl ${DESTDIR}${MANDIR}/man1/catgirl.1 -scripts/sandman: scripts/sandman.o - ${CC} ${LDFLAGS} scripts/sandman.o -framework Cocoa -o $@ - -install-sandman: scripts/sandman scripts/sandman.1 - install -d ${DESTDIR}${BINDIR} ${DESTDIR}${MANDIR}/man1 - install scripts/sandman ${DESTDIR}${BINDIR} - install -m 644 scripts/sandman.1 ${DESTDIR}${MANDIR}/man1 - -uninstall-sandman: - rm -f ${DESTDIR}${BINDIR}/sandman ${DESTDIR}${MANDIR}/man1/sandman.1 - CHROOT_USER = chat CHROOT_GROUP = ${CHROOT_USER} |