remap: *actually* build, and fix masked logic errors
[tftp-hpa.git] / tftp / Makefile
blob9faa62f11fd7d55e208b9244c9c0d0a2dc0f69cb
1 SRCROOT = ..
2 VERSION = $(shell cat ../version)
4 -include ../config/MCONFIG
5 include ../MRULES
7 OBJS = tftp.$(O) main.$(O)
9 all: tftp$(X) tftp.1
11 tftp$(X): $(OBJS)
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' < $< > $@
19 install: all
20 mkdir -p $(INSTALLROOT)$(BINDIR) $(INSTALLROOT)$(MANDIR)/man1
21 $(INSTALL_PROGRAM) tftp$(X) $(INSTALLROOT)$(BINDIR)
22 $(INSTALL_DATA) tftp.1 $(INSTALLROOT)$(MANDIR)/man1
24 clean:
25 rm -f *.o *.obj *.exe tftp tftp.1
27 distclean: clean
28 rm -f *~