2016-04-20 01:45:44 +00:00
|
|
|
#! /usr/bin/env python
|
|
|
|
# encoding: utf-8
|
2016-07-04 20:27:30 +00:00
|
|
|
CC='clang'
|
2016-01-08 22:00:51 +00:00
|
|
|
|
2016-01-08 19:47:59 +00:00
|
|
|
def options(opt):
|
2016-04-20 01:45:44 +00:00
|
|
|
opt.load('nasm')
|
2016-07-04 20:27:30 +00:00
|
|
|
opt.load('compiler_c')
|
2016-01-08 22:00:51 +00:00
|
|
|
|
2016-01-08 19:47:59 +00:00
|
|
|
def configure(conf):
|
2016-04-20 01:45:44 +00:00
|
|
|
conf.load('nasm')
|
2016-07-04 20:27:30 +00:00
|
|
|
conf.load('compiler_c')
|
2016-01-08 19:47:59 +00:00
|
|
|
|
|
|
|
def build(bld):
|
2016-07-04 20:27:30 +00:00
|
|
|
bld.program(source='sins.c', target='sins',
|
|
|
|
cflags=['-g', '-std=gnu11'],
|
|
|
|
linkflags=['-lcrypto', '-lssl'])
|
2016-04-20 01:45:44 +00:00
|
|
|
bld(features='asm', source='scrap.asm', target='scrap')
|