vger/Makefile

29 lines
542 B
Makefile
Raw Normal View History

include config.mk
PREFIX?=/usr/local/
CFLAGS += -pedantic -Wall -Wextra -Wmissing-prototypes \
-Wstrict-prototypes -Wwrite-strings ${EXTRAFLAGS}
.SUFFIXES: .c .o
.c.o:
${CC} ${CFLAGS} -c $<
2020-12-02 09:39:05 +11:00
all: vger
clean:
find . \( -name vger -o \
-name "*.o" -o \
-name "*.core" \) \
-delete
2020-12-05 05:29:44 +11:00
vger: main.o mimes.o utils.o opts.h
${CC} ${CFLAGS} -o $@ main.o mimes.o utils.o
2020-12-05 05:29:44 +11:00
install: vger
install -o root -g wheel vger ${PREFIX}/bin/
2020-12-04 07:40:16 +11:00
install -o root -g wheel vger.8 ${PREFIX}/man/man8/
2020-12-02 09:39:05 +11:00
test: vger
cd tests && sh test.sh