vger/Makefile

27 lines
497 B
Makefile
Raw Normal View History

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