Run VFS_START() for the root mount point.
[dragonfly.git] / libexec / dma / Makefile.plain
CommitLineData
1802398e
SS
1#
2# If you want to compile dma for Linux, you probably have to do:
3# make -f Makefile.plain CPPFLAGS="-DNEED_REALLOCF -DNEED_STRLCPY \
4# -DNEED_GETPROGNAME"
5#
6
7CC?= gcc
8CFLAGS?= -O -pipe
9LDADD?= -lssl -lcrypto -lresolv
10
11INSTALL?= install -p
12PREFIX?= /usr/local
13SBIN?= ${PREFIX}/sbin
14CONFDIR?= ${PREFIX}/etc
15MAN?= ${PREFIX}/share/man
16
17YACC?= yacc
18LEX?= lex
19
20OBJS= aliases_parse.o aliases_scan.o base64.o conf.o crypto.o
21OBJS+= dma.o dns.o local.o mail.o net.o spool.o util.o
22OBJS+= dfcompat.o
23
24all: dma
25
26clean:
27 -rm -f .depend dma *.[do]
28 -rm -f aliases_parse.[ch] aliases_scan.c
29
30install: all
31 ${INSTALL} -d ${DESTDIR}${SBIN} ${DESTDIR}${CONFDIR}
32 ${INSTALL} -d ${DESTDIR}${MAN}/man8
93282878 33 ${INSTALL} -g mail -m 2755 dma ${DESTDIR}${SBIN}
1802398e
SS
34 ${INSTALL} -m 0644 dma.8 ${DESTDIR}${MAN}/man8/
35
36aliases_parse.c: aliases_parse.y
37 ${YACC} -d -o aliases_parse.c aliases_parse.y
38
39aliases_scan.c: aliases_scan.l
40 ${LEX} -t aliases_scan.l > aliases_scan.c
41
42.SUFFIXES: .c .o
43
44.c.o:
45 ${CC} ${CFLAGS} ${CPPFLAGS} -include dfcompat.h -o $@ -c $<
46
47dma: ${OBJS}
f639f1c8 48 ${CC} ${LDFLAGS} ${LDADD} -o $@ ${OBJS}