1cc_library_shared {
2    name: "libnetutils",
3    vendor_available: true,
4    vndk: {
5        enabled: true,
6    },
7
8    srcs: [
9        "checksum.c",
10        "dhcpclient.c",
11        "dhcpmsg.c",
12        "ifc_utils.c",
13        "packet.c",
14    ],
15
16    shared_libs: [
17        "libcutils",
18        "liblog",
19    ],
20
21    cflags: ["-Werror"],
22
23    export_include_dirs: ["include"],
24}
25
26cc_library_static {
27    name: "libipchecksum",
28
29    srcs: [
30        "checksum.c",
31    ],
32
33    cflags: [
34        "-Wall",
35        "-Werror",
36    ],
37
38    export_include_dirs: ["include"],
39}
40
41cc_binary {
42    name: "dhcpdbg",
43
44    srcs: [
45        "dhcptool.c",
46    ],
47
48    shared_libs: [
49        "libnetutils",
50    ],
51
52    cflags: ["-Werror"],
53}
54