Run VFS_START() for the root mount point.
[dragonfly.git] / libexec / dma / Makefile.plain
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
7 CC?=            gcc
8 CFLAGS?=        -O -pipe
9 LDADD?=         -lssl -lcrypto -lresolv
10
11 INSTALL?=       install -p
12 PREFIX?=        /usr/local
13 SBIN?=          ${PREFIX}/sbin
14 CONFDIR?=       ${PREFIX}/etc
15 MAN?=           ${PREFIX}/share/man
16
17 YACC?=          yacc
18 LEX?=           lex
19
20 OBJS=   aliases_parse.o aliases_scan.o base64.o conf.o crypto.o
21 OBJS+=  dma.o dns.o local.o mail.o net.o spool.o util.o
22 OBJS+=  dfcompat.o
23
24 all: dma
25
26 clean:
27         -rm -f .depend dma *.[do]
28         -rm -f aliases_parse.[ch] aliases_scan.c
29  
30 install: all
31         ${INSTALL} -d ${DESTDIR}${SBIN} ${DESTDIR}${CONFDIR}
32         ${INSTALL} -d ${DESTDIR}${MAN}/man8
33         ${INSTALL} -g mail -m 2755 dma ${DESTDIR}${SBIN}
34         ${INSTALL} -m 0644 dma.8 ${DESTDIR}${MAN}/man8/
35
36 aliases_parse.c: aliases_parse.y
37         ${YACC} -d -o aliases_parse.c aliases_parse.y
38
39 aliases_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
47 dma: ${OBJS}
48         ${CC} ${LDFLAGS} ${LDADD} -o $@ ${OBJS}