{
    'include': [
        'common.gypi',
    ],
    'targets': [
        {
            'target_name': 'duckhunter',
            'product_name': 'duckhunter',
            'type': 'executable',
            'cflags': [
                '-pedantic',
                '-Wall',
                '-std=c11',
            ],
            'sources': [
                'src/connector.c',
                'src/main.c',
            ],
            'include_dirs': [
                'include',
                'external/libuv/include',
                'external/libzmq/include',
                'external/bstring/bstring',
            ],
            'dependencies': [
                'external/libuv/uv.gyp:libuv',
            ],
            'link_settings': {
                'libraries': [
                    '-lzmq',
                    '-lbstring',
                    '-lglib-2.0',
                ],
                'ldflags': [
                    '-L../../external/libzmq/src/.libs',
                    '-L../../external/bstring/bstring/.libs',
                    '-L../../external/glib/glib/.libs',
                ],
            },
        },
    ]
}

{
    'include': [
        'common.gypi',
    ],
    'targets': [
        {
            'target_name': 'duckhunter',
            'product_name': 'duckhunter',
            'type': 'executable',
            'cflags': [
                '-pedantic',
                '-Wall',
                '-std=c11',
                '-flto',
            ],
            'sources': [
                'src/connector.c',
                'src/main.c',
            ],
            'include_dirs': [
                'include',
                'external/libuv/include',
                'external/libzmq/include',
                'external/bstring/bstring',
            ],
            'dependencies': [
                'external/libuv/uv.gyp:libuv',
            ],
            'link_settings': {
                'libraries': [
                    '-lzmq',
                    '-lbstring',
                    '-lglib-2.0',
                ],
                'ldflags': [
                    '-L../../external/libzmq/src/.libs',
                    '-L../../external/bstring/bstring/.libs',
                    '-L../../external/glib/glib/.libs',
                    '-flto',
                ],
            },
        },
    ]
}

build - use link-time optimisation to reduce binary size