-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Makefiles so that Documentation/networking/timestamping/timestamping.c will build when using the CONFIG_BUILD_DOCSRC kconfig option. (timestamping.c does not build currently with its simple Makefile.) Also fix printf format warnings. Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Cc: Patrick Ohly <patrick.ohly@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Randy Dunlap
authored and
David S. Miller
committed
Mar 15, 2010
1 parent
876e956
commit f28f9e4
Showing
3 changed files
with
16 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
CPPFLAGS = -I../../../include | ||
# kbuild trick to avoid linker error. Can be omitted if a module is built. | ||
obj- := dummy.o | ||
|
||
timestamping: timestamping.c | ||
# List of programs to build | ||
hostprogs-y := timestamping | ||
|
||
# Tell kbuild to always build the programs | ||
always := $(hostprogs-y) | ||
|
||
HOSTCFLAGS_timestamping.o += -I$(objtree)/usr/include | ||
|
||
clean: | ||
rm -f timestamping |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters