Debian Codegraph @

ftpd/Makefile

raw
1 include ../MCONFIG
2
3 CFLAGS+=-I../support
4 LIBS+=-L../support -lsupport
5
6
7 OBJS=ftpd.o ftpcmd.o logutmp.o logwtmp.o popen.o
8
9 ## our internal version of ls.
10 # LSDIR = ${.CURDIR}/../../bin/ls
11 # .PATH: ${LSDIR}
12 # SRCS += ls.c cmp.c print.c stat_flags.c util.c
13 # CFLAGS += -I${LSDIR}
14
15 ## (if tcp_wrappers)
16 # CFLAGS+=-DTCPWRAPPERS
17 # LDADD+= -lwrap
18
19 all: ftpd
20
21 %.o: %.c
22 $(CC) $(CFLAGS) -DHASSETPROCTITLE $< -c
23
24 ftpcmd.c: %.c: %.y
25 $(YACC) $<
26 -mv -f y.tab.c $@
27
28 ftpd: $(OBJS)
29 $(CC) $(LDFLAGS) $^ $(LIBS) -o $@
30
31 install: ftpd
32 install -s -m$(DAEMONMODE) ftpd $(INSTALLROOT)$(SBINDIR)/in.ftpd
33 install -m$(MANMODE) ftpusers.5 $(INSTALLROOT)$(MANDIR)/man5/ftpusers.5
34 install -m$(MANMODE) ftpd.8 $(INSTALLROOT)$(MANDIR)/man8/in.ftpd.8
35 ln -sf in.ftpd.8 $(INSTALLROOT)$(MANDIR)/man8/ftpd.8
36
37 clean:
38 rm -f *.o ftpcmd.c y.tab.h ftpd
39
40
41 ftpd.o: pathnames.h ../version.h
42 $(OBJS): extern.h ../support/daemon.h ../support/setproctitle.h