about summary refs log tree commit diff
path: root/Makefile
blob: ccad855755316a21b75246944936da98cc35a9fb (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
PREFIX ?= /usr/local
MANDIR ?= ${PREFIX}/man

CFLAGS += -std=c11 -Wall -Wextra -Wpedantic
LDLIBS = -ltls

-include config.mk

OBJS += archive.o
OBJS += atom.o
OBJS += concat.o
OBJS += decode.o
OBJS += export.o
OBJS += getservinfo.o
OBJS += html.o
OBJS += imap.o
OBJS += mbox.o
OBJS += parse.o
OBJS += stylesheet.o
OBJS += template.o

dev: tags all

all: bubger

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

${OBJS}: archive.h imap.h

tags: *.[ch]
	ctags -w *.[ch]

clean:
	rm -f bubger ${OBJS} tags

install: bubger bubger.1
	install -d ${PREFIX}/bin ${MANDIR}/man1
	install bubger ${PREFIX}/bin
	install -m 644 bubger.1 ${MANDIR}/man1

uninstall:
	rm -f ${PREFIX}/bin/bubger ${MANDIR}/man1/bubger.1
d>2020-08-15Just use CLOCK_MONOTONIC and clean up includesJune McEnroe 2020-08-15Reap childrenJune McEnroe 2020-08-14Implement serviceSignal, serviceStop, serviceRestartJune McEnroe 2020-08-14Reset restartInterval and restartDeadline on startJune McEnroe 2020-08-14Switch to timespec for timeoutsJune McEnroe 2020-08-14Implement serviceStartJune McEnroe 2020-08-14Flesh out Service structJune McEnroe 2020-08-14Build environment for servicesJune McEnroe 2020-08-14Implement spawntab parsingJune McEnroe 2020-08-14Open syslog, daemonize, write PIDJune McEnroe 2020-08-14Implement user and group lookupJune McEnroe 2020-08-14Add install targetJune McEnroe 2020-08-14Add spawnd skeletonJune McEnroe