]>
Commit | Line | Data |
---|---|---|
6644c1c7 MT |
1 | From 106266761828a0acb006346ae47bf031dee46a5d Mon Sep 17 00:00:00 2001 |
2 | From: Simon Kelley <simon@thekelleys.org.uk> | |
3 | Date: Sun, 1 Feb 2015 00:15:16 +0000 | |
5f206778 | 4 | Subject: [PATCH 42/87] BSD make support |
6644c1c7 MT |
5 | |
6 | --- | |
7 | Makefile | 6 ++++-- | |
8 | 1 file changed, 4 insertions(+), 2 deletions(-) | |
9 | ||
10 | diff --git a/Makefile b/Makefile | |
11 | index 21e4a5c4101c..2910320b6452 100644 | |
12 | --- a/Makefile | |
13 | +++ b/Makefile | |
14 | @@ -64,8 +64,10 @@ nettle_libs = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_DNSSEC $(PKG_CONFIG | |
15 | gmp_libs = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_DNSSEC NO_GMP --copy -lgmp` | |
16 | sunos_libs = `if uname | grep SunOS >/dev/null 2>&1; then echo -lsocket -lnsl -lposix4; fi` | |
17 | version = -DVERSION='\"`$(top)/bld/get-version $(top)`\"' | |
18 | -copts_conf = .copts_$(shell $(CC) -DDNSMASQ_COMPILE_OPTS $(COPTS) -E $(top)/$(SRC)/dnsmasq.h | \ | |
19 | - ( md5sum 2>/dev/null || md5 ) | cut -f 1 -d ' ') | |
20 | + | |
21 | +sum?=$(shell $(CC) -DDNSMASQ_COMPILE_OPTS $(COPTS) -E $(top)/$(SRC)/dnsmasq.h | ( md5sum 2>/dev/null || md5 ) | cut -f 1 -d ' ') | |
22 | +sum!=$(CC) -DDNSMASQ_COMPILE_OPTS $(COPTS) -E $(top)/$(SRC)/dnsmasq.h | ( md5sum 2>/dev/null || md5 ) | cut -f 1 -d ' ' | |
23 | +copts_conf = .copts_$(sum) | |
24 | ||
25 | objs = cache.o rfc1035.o util.o option.o forward.o network.o \ | |
26 | dnsmasq.o dhcp.o lease.o rfc2131.o netlink.o dbus.o bpf.o \ | |
27 | -- | |
28 | 2.1.0 | |
29 |