11 CFLAGS = @CFLAGS@ @DEFS@ -I@srcdir@ -I. -DVERSION=\"$(VERSION)\"
13 OBJS = disp.o ftpd.o cmds.o nonroot.o ascii.o
14 ASSMS = disp.s ftpd.s cmds.s nonroot.s ascii.s
15 CPPS = disp.i ftpd.i cmds.i nonroot.i ascii.i
17 # Since we use VPATH, override .c.o rule
19 $(CC) $(CFLAGS) -c @srcdir@/$*.c
21 $(CC) $(CFLAGS) -S @srcdir@/$*.c
24 cmds.o: @srcdir@/cmds.c @srcdir@/ftpd.h @srcdir@/cmds.h @srcdir@/nonroot.h config.h
25 ftpd.o: @srcdir@/ftpd.c @srcdir@/ftpd.h @srcdir@/cmds.h config.h
26 disp.o: @srcdir@/disp.c @srcdir@/ftpd.h config.h
27 nonroot.o: @srcdir@/nonroot.c @srcdir@/nonroot.h config.h
28 ascii.o: @srcdir@/ascii.c config.h
31 $(CC) $(CFLAGS) $(LIBS) -o betaftpd $(OBJS)
32 assembly-files: $(ASSMS)
33 betaftpd-from-assembly-files: $(ASSMS)
34 $(CC) $(LIBS) -o betaftpd -Wl,--sort-common $(ASSMS)
37 rm -f $(OBJS) $(ASSMS) $(CPPS)
42 rm -f config.log config.cache config.status Makefile config.h
45 install betaftpd $(prefix)/bin/betaftpd
48 # NOTE: This is not intended for end users, and should be run from a
49 # configured BetaFTPD in the source directory only.
53 rm -rf betaftpd-$(VERSION)
54 mkdir betaftpd-$(VERSION)
55 mkdir betaftpd-$(VERSION)/doc
56 # cp betaftpd betaftpd-$(VERSION)
59 autoheader configure.in > config.h.in
60 cp README Makefile.in acconfig.h cmds.c cmds.h betaftpd-$(VERSION)
61 cp config.h.in configure configure.in disp.c ftpd.c betaftpd-$(VERSION)
62 cp nonroot.c ascii.c ascii.h nonroot.h ftpd.h strip-exec betaftpd.lsm betaftpd-$(VERSION)
63 cp doc/CREDITS doc/CHANGES doc/CHANGES-0.0.8 doc/COPYING betaftpd-$(VERSION)/doc
64 cp doc/KNOWN-BUGS doc/RFC-COMPLIANCE doc/README.nonroot betaftpd-$(VERSION)/doc
65 cp doc/README.rights doc/README.platforms betaftpd-$(VERSION)/doc
66 tar cf - betaftpd-$(VERSION)/ | gzip -9vv > betaftpd-$(VERSION).tar.gz
67 tar cf - betaftpd-$(VERSION)/ | bzip2 -3vv > betaftpd-$(VERSION).tar.bz2