summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2014-07-30 10:58:20 +0000
committerRoy Marples <roy@marples.name>2014-07-30 10:58:20 +0000
commita7d5172e5989bd4e633ff5cbf532f242e66b7a16 (patch)
tree1bcb242080608d5643a9363d23dabbcb0d9af9b5 /Makefile
parente41613f338bb184b0f4ebbd0c3175c3d030723b5 (diff)
downloaddhcpcd-a7d5172e5989bd4e633ff5cbf532f242e66b7a16.tar.xz
Fix import so that matching system vs local headers are not imported.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 7bdf879c..6d3730ca 100644
--- a/Makefile
+++ b/Makefile
@@ -147,7 +147,7 @@ import: ${SRCS}
rm -rf /tmp/${DISTPREFIX}
${INSTALL} -d /tmp/${DISTPREFIX}
cp ${SRCS} dhcpcd.conf dhcpcd-definitions.conf *.in /tmp/${DISTPREFIX}
- cp $$(${CC} ${CPPFLAGS} -MM ${SRCS} | \
+ cp $$(${CC} ${CPPFLAGS} -DDEPGEN -MM ${SRCS} | \
sed -e 's/^.*\.c //g' -e 's/.*\.c$$//g' -e 's/\\//g' | \
tr ' ' '\n' | \
sed -e '/^compat\//d' | \
@@ -156,7 +156,7 @@ import: ${SRCS}
if test -n "${CRYPT_SRCS}"; then \
${INSTALL} -d /tmp/${DISTPREFIX}/crypt; \
cp ${CRYPT_SRCS} /tmp/${DISTPREFIX}/crypt; \
- cp $$(${CC} ${CPPFLAGS} -MM ${CRYPT_SRCS} | \
+ cp $$(${CC} ${CPPFLAGS} -DDEPGEN -MM ${CRYPT_SRCS} | \
sed -e 's/^.*c //g' -e 's/.*\.c$$//g' -e 's/\\//g' | \
tr ' ' '\n' | sed -e '/\/\.\.\//d' | \
sort -u) /tmp/${DISTPREFIX}/crypt; \
@@ -164,7 +164,7 @@ import: ${SRCS}
if test -n "${COMPAT_SRCS}"; then \
${INSTALL} -d /tmp/${DISTPREFIX}/compat; \
cp ${COMPAT_SRCS} /tmp/${DISTPREFIX}/compat; \
- cp $$(${CC} ${CPPFLAGS} -MM ${COMPAT_SRCS} | \
+ cp $$(${CC} ${CPPFLAGS} -DDEPGEN -MM ${COMPAT_SRCS} | \
sed -e 's/^.*c //g' -e 's/.*\.c$$//g' -e 's/\\//g' | \
tr ' ' '\n' | \
sort -u) /tmp/${DISTPREFIX}/compat; \