2 VERSION
= $(shell cat ..
/version
)
4 -include ..
/config
/MCONFIG
7 OBJS
= tftp.
$(O
) main.
$(O
)
12 $(CC
) $(LDFLAGS
) $^
$(TFTP_LIBS
) -o
$@
14 $(OBJS
): ..
/common
/tftpsubs.h
16 tftp
.1: tftp
.1.in ..
/version
17 sed
-e
's/@@VERSION@@/$(VERSION)/g' < $< > $@
20 mkdir
-p
$(INSTALLROOT
)$(BINDIR
) $(INSTALLROOT
)$(MANDIR
)/man1
21 $(INSTALL_PROGRAM
) tftp
$(X
) $(INSTALLROOT
)$(BINDIR
)
22 $(INSTALL_DATA
) tftp
.1 $(INSTALLROOT
)$(MANDIR
)/man1
25 rm -f
*.o
*.obj
*.exe tftp tftp
.1