mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-30 05:47:45 +00:00
Fix up to support build subdirectories. Fix depend target.
This commit is contained in:
parent
6b474b5b4a
commit
b515ff35f2
@ -27,7 +27,7 @@ PROG = dhclient
|
|||||||
MAN = dhclient.8 dhclient.conf.5 dhclient-script.8 dhclient.leases.5
|
MAN = dhclient.8 dhclient.conf.5 dhclient-script.8 dhclient.leases.5
|
||||||
|
|
||||||
DEBUG = -g
|
DEBUG = -g
|
||||||
INCLUDES = -I.. $(BINDINC) -I../includes
|
INCLUDES = -I$(TOP) $(BINDINC) -I$(TOP)/includes
|
||||||
DHCPLIB = ../common/libdhcp.a ../omapip/libomapi.a $(BINDLIB)
|
DHCPLIB = ../common/libdhcp.a ../omapip/libomapi.a $(BINDLIB)
|
||||||
CFLAGS = $(DEBUG) $(PREDEFINES) $(INCLUDES) $(COPTS)
|
CFLAGS = $(DEBUG) $(PREDEFINES) $(INCLUDES) $(COPTS)
|
||||||
|
|
||||||
@ -50,7 +50,8 @@ install: all
|
|||||||
if [ x$(SCRIPT) = xnone ]; then \
|
if [ x$(SCRIPT) = xnone ]; then \
|
||||||
echo "No client script available."; \
|
echo "No client script available."; \
|
||||||
else \
|
else \
|
||||||
$(INSTALL) scripts/$(SCRIPT) $(DESTDIR)$(ETC)/dhclient-script; \
|
$(INSTALL) $(TOP)/client/scripts/$(SCRIPT)\
|
||||||
|
$(DESTDIR)$(ETC)/dhclient-script; \
|
||||||
$(CHMOD) 700 $(DESTDIR)$(ETC)/dhclient-script; \
|
$(CHMOD) 700 $(DESTDIR)$(ETC)/dhclient-script; \
|
||||||
fi
|
fi
|
||||||
$(MANINSTALL) $(MANFROM) dhclient.$(MANCAT)8 $(MANTO) \
|
$(MANINSTALL) $(MANFROM) dhclient.$(MANCAT)8 $(MANTO) \
|
||||||
@ -63,7 +64,7 @@ install: all
|
|||||||
$(DESTDIR)$(FFMANDIR)/dhclient.leases$(FFMANEXT)
|
$(DESTDIR)$(FFMANDIR)/dhclient.leases$(FFMANEXT)
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
mkdep $(INCLUDES) $(PREDEFINES) $(SRCS)
|
$(MKDEP) $(INCLUDES) $(PREDEFINES) $(SRCS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm -f $(OBJS)
|
-rm -f $(OBJS)
|
||||||
@ -74,6 +75,14 @@ realclean: clean
|
|||||||
distclean: realclean
|
distclean: realclean
|
||||||
-rm -f Makefile
|
-rm -f Makefile
|
||||||
|
|
||||||
|
links:
|
||||||
|
for foo in $(SRCS) $(MAN); do \
|
||||||
|
if [ ! -b $$foo ]; then \
|
||||||
|
rm -f $$foo; \
|
||||||
|
fi; \
|
||||||
|
ln -s $(TOP)/client/$$foo $$foo; \
|
||||||
|
done
|
||||||
|
|
||||||
# These should only be done on 4.4 BSD-based systems, since the mandoc
|
# These should only be done on 4.4 BSD-based systems, since the mandoc
|
||||||
# macros aren't available on older unices. Catted man pages are
|
# macros aren't available on older unices. Catted man pages are
|
||||||
# provided in the distribution so that this doesn't become a problem.
|
# provided in the distribution so that this doesn't become a problem.
|
||||||
|
@ -30,7 +30,7 @@ OBJ = raw.o parse.o nit.o icmp.o dispatch.o conflex.o upf.o bpf.o socket.o \
|
|||||||
MAN = dhcp-options.5 dhcp-contrib.5 dhcp-eval.5
|
MAN = dhcp-options.5 dhcp-contrib.5 dhcp-eval.5
|
||||||
|
|
||||||
DEBUG = -g
|
DEBUG = -g
|
||||||
INCLUDES = -I.. $(BINDINC) -I../includes
|
INCLUDES = -I$(TOP) $(BINDINC) -I$(TOP)/includes
|
||||||
CFLAGS = $(DEBUG) $(PREDEFINES) $(INCLUDES) $(COPTS)
|
CFLAGS = $(DEBUG) $(PREDEFINES) $(INCLUDES) $(COPTS)
|
||||||
|
|
||||||
all: libdhcp.a $(CATMANPAGES)
|
all: libdhcp.a $(CATMANPAGES)
|
||||||
@ -59,7 +59,7 @@ install: all
|
|||||||
$(DESTDIR)$(FFMANDIR)/dhcp-contrib$(FFMANEXT)
|
$(DESTDIR)$(FFMANDIR)/dhcp-contrib$(FFMANEXT)
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
mkdep $(INCLUDES) $(PREDEFINES) $(SRC)
|
$(MKDEP) $(INCLUDES) $(PREDEFINES) $(SRC)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm -f $(OBJ)
|
-rm -f $(OBJ)
|
||||||
@ -70,6 +70,14 @@ realclean: clean
|
|||||||
distclean: realclean
|
distclean: realclean
|
||||||
-rm -f Makefile
|
-rm -f Makefile
|
||||||
|
|
||||||
|
links:
|
||||||
|
for foo in $(SRC) $(MAN); do \
|
||||||
|
if [ ! -b $$foo ]; then \
|
||||||
|
rm -f $$foo; \
|
||||||
|
fi; \
|
||||||
|
ln -s $(TOP)/common/$$foo $$foo; \
|
||||||
|
done
|
||||||
|
|
||||||
dhcp-options.cat5: dhcp-options.man5
|
dhcp-options.cat5: dhcp-options.man5
|
||||||
nroff -man dhcp-options.man5 >dhcp-options.cat5
|
nroff -man dhcp-options.man5 >dhcp-options.cat5
|
||||||
|
|
||||||
|
@ -22,9 +22,10 @@ SEDMANPAGES = dhcpctl.man3
|
|||||||
SRC = dhcpctl.c callback.c remote.c
|
SRC = dhcpctl.c callback.c remote.c
|
||||||
OBJ = dhcpctl.o callback.o remote.o
|
OBJ = dhcpctl.o callback.o remote.o
|
||||||
MAN = dhcpctl.3
|
MAN = dhcpctl.3
|
||||||
|
HDRS = dhcpctl.h
|
||||||
|
|
||||||
DEBUG = -g
|
DEBUG = -g
|
||||||
INCLUDES = $(BINDINC) -I../includes
|
INCLUDES = $(BINDINC) -I$(TOP)/includes
|
||||||
CFLAGS = $(DEBUG) $(PREDEFINES) $(INCLUDES) $(COPTS)
|
CFLAGS = $(DEBUG) $(PREDEFINES) $(INCLUDES) $(COPTS)
|
||||||
|
|
||||||
all: libdhcpctl.a test cltest $(CATMANPAGES)
|
all: libdhcpctl.a test cltest $(CATMANPAGES)
|
||||||
@ -65,7 +66,7 @@ install: all
|
|||||||
done
|
done
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
mkdep $(INCLUDES) $(PREDEFINES) $(SRC)
|
$(MKDEP) $(INCLUDES) $(PREDEFINES) $(SRC)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm -f $(OBJ) test.o test cltest.o cltest
|
-rm -f $(OBJ) test.o test cltest.o cltest
|
||||||
@ -76,6 +77,14 @@ realclean: clean
|
|||||||
distclean: realclean
|
distclean: realclean
|
||||||
-rm -f Makefile
|
-rm -f Makefile
|
||||||
|
|
||||||
|
links:
|
||||||
|
for foo in $(SRC) $(MAN) test.c cltest.c $(HDRS); do \
|
||||||
|
if [ ! -b $$foo ]; then \
|
||||||
|
rm -f $$foo; \
|
||||||
|
fi; \
|
||||||
|
ln -s $(TOP)/dhcpctl/$$foo $$foo; \
|
||||||
|
done
|
||||||
|
|
||||||
dhcpctl.cat3: dhcpctl.man3
|
dhcpctl.cat3: dhcpctl.man3
|
||||||
nroff -man dhcpctl.man3 >dhcpctl.cat3
|
nroff -man dhcpctl.man3 >dhcpctl.cat3
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user