2011-09-10 11:13:51 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# encoding: utf-8
|
2018-01-01 20:53:49 +01:00
|
|
|
# Thomas Nagy, 2008-2018 (ita)
|
2011-09-10 11:13:51 +02:00
|
|
|
|
|
|
|
"Detect as/gas/gcc for compiling assembly files"
|
|
|
|
|
|
|
|
import waflib.Tools.asm # - leave this
|
|
|
|
from waflib.Tools import ar
|
|
|
|
|
|
|
|
def configure(conf):
|
|
|
|
"""
|
|
|
|
Find the programs gas/as/gcc and set the variable *AS*
|
|
|
|
"""
|
2012-05-05 17:06:34 +02:00
|
|
|
conf.find_program(['gas', 'gcc'], var='AS')
|
|
|
|
conf.env.AS_TGT_F = ['-c', '-o']
|
2011-10-16 18:19:31 +02:00
|
|
|
conf.env.ASLNK_TGT_F = ['-o']
|
2011-09-10 11:13:51 +02:00
|
|
|
conf.find_ar()
|
2012-09-18 23:54:02 +02:00
|
|
|
conf.load('asm')
|
2019-06-26 15:00:03 +02:00
|
|
|
conf.env.ASM_NAME = 'gas'
|