25 lines
476 B
Python
25 lines
476 B
Python
#! /usr/bin/env python
|
|
# encoding: utf-8
|
|
CC = 'clang'
|
|
|
|
|
|
def options(opt):
|
|
opt.load('nasm')
|
|
opt.load('compiler_c')
|
|
|
|
|
|
def configure(conf):
|
|
conf.load('nasm')
|
|
conf.load('compiler_c')
|
|
conf.check_cc(header_name='openssl/sha.h')
|
|
|
|
|
|
def build(bld):
|
|
bld.program(
|
|
source='sins.c',
|
|
target='sins',
|
|
cflags=['-std=gnu11'],
|
|
lib=['ssl', 'crypto']
|
|
)
|
|
bld(features='asm', source='scrap.asm', target='scrap')
|