diff options
Diffstat (limited to 'usr.bin/rsync/Makefile')
-rw-r--r-- | usr.bin/rsync/Makefile | 62 |
1 files changed, 9 insertions, 53 deletions
diff --git a/usr.bin/rsync/Makefile b/usr.bin/rsync/Makefile index 686f76a5983..97be9218e48 100644 --- a/usr.bin/rsync/Makefile +++ b/usr.bin/rsync/Makefile @@ -1,57 +1,13 @@ -PREFIX = /usr/local -OBJS = blocks.o \ - child.o \ - client.o \ - downloader.o \ - fargs.o \ - flist.o \ - hash.o \ - io.o \ - log.o \ - md4.o \ - mkpath.o \ - receiver.o \ - sender.o \ - server.o \ - session.o \ - socket.o \ - symlinks.o \ - uploader.o -ALLOBJS = $(OBJS) \ - main.o -AFLS = afl/test-blk_recv \ - afl/test-flist_recv -CFLAGS += -O0 -g -W -Wall -Wextra -Wno-unused-parameter -MANDIR = $(PREFIX)/man -BINDIR = $(PREFIX)/bin +SRCS= blocks.c child.c client.c downloader.c fargs.c flist.c hash.c \ + io.c log.c md4.c mkpath.c receiver.c sender.c server.c session.c \ + socket.c symlinks.c uploader.c main.c -all: openrsync +PROG= rsync +xMAN= rsync.1 -openrsync: $(ALLOBJS) - $(CC) -o $@ $(ALLOBJS) -lm +LDADD+= -lm +DPADD+= ${LIBM} -afl: $(AFLS) +CFLAGS+=-g -W -Wall -Wextra -Wno-unused-parameter -$(AFLS): $(OBJS) - $(CC) -o $@ $*.c $(OBJS) - -install: openrsync - mkdir -p $(DESTDIR)$(BINDIR) - mkdir -p $(DESTDIR)$(MANDIR)/man1 - mkdir -p $(DESTDIR)$(MANDIR)/man5 - install -m 0444 openrsync.1 $(DESTDIR)$(MANDIR)/man1 - install -m 0444 rsync.5 rsyncd.5 $(DESTDIR)$(MANDIR)/man5 - install -m 0555 openrsync $(DESTDIR)$(BINDIR) - -uninstall: - rm -f $(DESTDIR)$(BINDIR)/openrsync - rm -f $(DESTDIR)$(MANDIR)/man1/openrsync.1 - rm -f $(DESTDIR)$(MANDIR)/man5/rsync.5 - rm -f $(DESTDIR)$(MANDIR)/man5/rsyncd.5 - -clean: - rm -f $(ALLOBJS) openrsync $(AFLS) - -$(ALLOBJS) $(AFLS): extern.h - -blocks.o downloader.o hash.o md4.o: md4.h +.include <bsd.prog.mk> |