just include fcntl.h not sys/fcntl.h
[oweals/busybox.git] / Makefile
index e8730bfd066979ec3557d36057597b39baf39a96..8c7cb41bea7cd5ef8c66279d90a9dcf5d4c11b9c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -393,7 +393,7 @@ docs/busybox.net/BusyBox.html: docs/busybox.pod
 
 # The nifty new dependency stuff
 scripts/bb_mkdep: $(top_srcdir)/scripts/bb_mkdep.c
-       $(Q)$(HOSTCC) $(HOSTCFLAGS) -o $@ $<
+       $(do_link.h)
 
 DEP_INCLUDES := include/bb_config.h
 
@@ -406,7 +406,7 @@ include/bbconfigopts.h: .config
 endif
 
 scripts/usage: $(top_srcdir)/scripts/usage.c .config
-       $(HOSTCC) $(HOSTCFLAGS) -I$(top_srcdir)/include -o $@ $<
+       $(do_link.h) -I$(top_srcdir)/include
 
 DEP_INCLUDES += include/usage_compressed.h
 include/usage_compressed.h: .config scripts/usage