mirror of
https://kernel.googlesource.com/pub/scm/network/tftp/tftp-hpa
synced 2025-04-26 01:49:52 +03:00

Use my modular m4 library used for other things as well; update autoconf macros to 2.71 standard. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
28 lines
569 B
Makefile
28 lines
569 B
Makefile
SRCROOT = ..
|
|
VERSION = $(shell cat ../version)
|
|
|
|
-include ../config/MCONFIG
|
|
include ../MRULES
|
|
|
|
OBJS = tftp.$(O) main.$(O)
|
|
|
|
all: tftp$(X) tftp.1
|
|
|
|
tftp$(X): $(OBJS)
|
|
$(CC) $(LDFLAGS) $^ $(TFTP_LIBS) -o $@
|
|
|
|
$(OBJS): ../common/tftpsubs.h
|
|
|
|
tftp.1: tftp.1.in ../version
|
|
sed -e 's/@@VERSION@@/$(VERSION)/g' < $< > $@
|
|
|
|
install: all
|
|
mkdir -p $(INSTALLROOT)$(BINDIR) $(INSTALLROOT)$(MANDIR)/man1
|
|
$(INSTALL_PROGRAM) tftp$(X) $(INSTALLROOT)$(BINDIR)
|
|
$(INSTALL_DATA) tftp.1 $(INSTALLROOT)$(MANDIR)/man1
|
|
|
|
clean:
|
|
rm -f *.o *.obj *.exe tftp tftp.1
|
|
|
|
distclean: clean
|
|
rm -f *~
|