forked from mirrors/tftp-hpa-google
Move common code to a common/ subdirectory
This commit is contained in:
parent
a548569a3e
commit
40133b212b
11 changed files with 36 additions and 17 deletions
|
@ -4,20 +4,14 @@ VERSION = $(shell cat ../version)
|
|||
-include ../MCONFIG
|
||||
include ../MRULES
|
||||
|
||||
OBJS = tftpd.$(O) tftpsubs.$(O) recvfrom.$(O) misc.$(O) $(TFTPDOBJS)
|
||||
OBJS = tftpd.$(O) recvfrom.$(O) misc.$(O) $(TFTPDOBJS)
|
||||
|
||||
all: tftpd$(X) tftpd.8
|
||||
|
||||
tftpd$(X): $(OBJS)
|
||||
$(CC) $(LDFLAGS) $^ $(TFTPD_LIBS) -o $@
|
||||
|
||||
tftpsubs.c:
|
||||
$(LN_S) -f ../tftp/tftpsubs.c .
|
||||
|
||||
tftpsubs.h:
|
||||
$(LN_S) -f ../tftp/tftpsubs.h .
|
||||
|
||||
$(OBJS): tftpsubs.h
|
||||
$(OBJS): ../common/tftpsubs.h
|
||||
|
||||
tftpd.8: tftpd.8.in ../version
|
||||
sed -e 's/@@VERSION@@/$(VERSION)/g' < $< > $@
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
#include "config.h" /* Must be included first! */
|
||||
#include "recvfrom.h"
|
||||
#include "tftpsubs.h"
|
||||
#include "common/tftpsubs.h"
|
||||
#ifdef HAVE_MACHINE_PARAM_H
|
||||
#include <machine/param.h> /* Needed on some versions of FreeBSD */
|
||||
#endif
|
||||
|
|
|
@ -62,7 +62,7 @@ static const char *rcsid UNUSED =
|
|||
#include <limits.h>
|
||||
#include <syslog.h>
|
||||
|
||||
#include "tftpsubs.h"
|
||||
#include "common/tftpsubs.h"
|
||||
#include "recvfrom.h"
|
||||
#include "remap.h"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue