Update version for release
[tftp-hpa.git] / tftpd / Makefile
bloba05335debc441b63b1591c358c21a1a3b133bbe9
1 SRCROOT = ..
2 VERSION = $(shell cat ../version)
4 -include ../MCONFIG
5 include ../MRULES
7 OBJS = tftpd.$(O) recvfrom.$(O) misc.$(O) $(TFTPDOBJS)
9 all: tftpd$(X) tftpd.8
11 tftpd$(X): $(OBJS)
12 $(CC) $(LDFLAGS) $^ $(TFTPD_LIBS) -o $@
14 $(OBJS): ../common/tftpsubs.h
16 tftpd.8: tftpd.8.in ../version
17 sed -e 's/@@VERSION@@/$(VERSION)/g' < $< > $@
19 install: all
20 mkdir -p $(INSTALLROOT)$(SBINDIR) $(INSTALLROOT)$(MANDIR)/man8
21 $(INSTALL_PROGRAM) tftpd$(X) $(INSTALLROOT)$(SBINDIR)/in.tftpd
22 $(INSTALL_DATA) tftpd.8 $(INSTALLROOT)$(MANDIR)/man8/in.tftpd.8
23 cd $(INSTALLROOT)$(MANDIR)/man8 && $(LN_S) -f in.tftpd.8 tftpd.8
25 clean:
26 rm -f *.o *.obj *.exe tftpd tftpsubs.c tftpsubs.h tftpd.8
28 distclean: clean
29 rm -f *~