build.ck 871 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*++
  2. Copyright (c) 2016 Minoca Corp. All Rights Reserved
  3. Module Name:
  4. Minoca NetLink Library
  5. Abstract:
  6. This module contains the netlink sockets library, which it built on top
  7. of the C library socket's interface and offers a set of APIs to make
  8. use of netlink sockets easier.
  9. Author:
  10. Chris Stevens 24-Mar-2016
  11. Environment:
  12. User
  13. --*/
  14. function build() {
  15. sources = [
  16. "generic.c",
  17. "netlink.c",
  18. ];
  19. includes = [
  20. "$//apps/include",
  21. "$//apps/include/libc"
  22. ];
  23. lib_config = {
  24. "LDFLAGS": ["-nostdlib"]
  25. };
  26. lib = {
  27. "label": "libnetlink",
  28. "inputs": sources,
  29. "entry": "NlInitialize",
  30. "includes": includes,
  31. "config": lib_config,
  32. "major_version": "1",
  33. };
  34. entries = shared_library(lib);
  35. return entries;
  36. }
  37. return build();