Lines 1-4
Link Here
|
1 |
VERSION = 3.1.3 |
1 |
VERSION = 3.1.4_pre1 |
2 |
CFLAGS ?= -O2 -pipe |
2 |
CFLAGS ?= -O2 -pipe |
3 |
|
3 |
|
4 |
# Should work for both GNU make and BSD make |
4 |
# Should work for both GNU make and BSD make |
Lines 49-60
Link Here
|
49 |
dhcpcd_OBJS = arp.o client.o common.o configure.o dhcp.o dhcpcd.o duid.o \ |
49 |
dhcpcd_OBJS = arp.o client.o common.o configure.o dhcp.o dhcpcd.o duid.o \ |
50 |
info.o interface.o ipv4ll.o logger.o signals.o socket.o |
50 |
info.o interface.o ipv4ll.o logger.o signals.o socket.o |
51 |
|
51 |
|
52 |
# By default we don't need to link to anything |
52 |
# These are nasty hacks to work out what libs we need to link to |
53 |
# Except on Darwin where we need -lresolv, so they need to uncomment this |
53 |
# We require librt for glibc bases systems |
54 |
#dhcpcd_LIBS = -lresolv |
54 |
_LIBRT != ldd /bin/date 2>/dev/null | grep -q /librt.so && echo "-lrt" || exit 0 |
|
|
55 |
LIBRT ?= $(_LIBRT) $(shell ldd /bin/date 2>/dev/null | grep -q /librt.so && echo "-lrt") |
55 |
|
56 |
|
|
|
57 |
# Darwin needs this, but we have no way of detecting this atm |
58 |
#LIRESOLV = -lresolv |
59 |
|
56 |
dhcpcd: $(dhcpcd_H) $(dhcpcd_OBJS) |
60 |
dhcpcd: $(dhcpcd_H) $(dhcpcd_OBJS) |
57 |
$(CC) $(LDFLAGS) $(dhcpcd_OBJS) $(dhcpcd_LIBS) -o dhcpcd |
61 |
$(CC) $(LDFLAGS) $(dhcpcd_OBJS) $(LIBRT) $(LIBRESOLV) -o dhcpcd |
58 |
|
62 |
|
59 |
version.h: |
63 |
version.h: |
60 |
echo '#define VERSION "$(VERSION)"' > version.h |
64 |
echo '#define VERSION "$(VERSION)"' > version.h |