diff options
author | Sebastian Benoit <benno@cvs.openbsd.org> | 2019-02-10 23:20:46 +0000 |
---|---|---|
committer | Sebastian Benoit <benno@cvs.openbsd.org> | 2019-02-10 23:20:46 +0000 |
commit | a1e10cfe09f6f7391839e4571c6f6082693c3cf5 (patch) | |
tree | b1c8cd6756f3123d886e594dcc6fc9fbfb024fd5 /usr.bin/rsync/Makefile | |
parent | 06b5b11b56d12bcf3bf6c163fb6dd671c3a11e8f (diff) |
change the Makefile to be a normal OpenBSD bsd.prog.mk style file
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> |