added watcom makefiles; smaller build/bakefiles/Makefile
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -13,10 +13,12 @@ file = open('Makefile', 'wt')
|
|||||||
file.write("""
|
file.write("""
|
||||||
# Generated by regenMakefile.py
|
# Generated by regenMakefile.py
|
||||||
|
|
||||||
BAKEFILE = bakefile
|
BAKEFILE = bakefile -v
|
||||||
BAKEARGS = -v
|
|
||||||
|
|
||||||
|
|
||||||
|
CDEPS = config.bkl common.bkl common_contrib.bkl
|
||||||
|
SDEPS = config.bkl common.bkl common_samples.bkl
|
||||||
|
MDEPS = common.bkl config.bkl files.bkl monolithic.bkl multilib.bkl wxwin.py
|
||||||
""")
|
""")
|
||||||
|
|
||||||
lines = []
|
lines = []
|
||||||
@@ -29,7 +31,6 @@ def addMakefile(bake, makedirs, deps=[], args={}):
|
|||||||
other than 'bake'."""
|
other than 'bake'."""
|
||||||
print 'adding %s...' % bake
|
print 'adding %s...' % bake
|
||||||
lines.append('')
|
lines.append('')
|
||||||
lines.append('# from %s' % bake)
|
|
||||||
|
|
||||||
def add(bake, makedirs, make, dep, format, args={}):
|
def add(bake, makedirs, make, dep, format, args={}):
|
||||||
a = ''
|
a = ''
|
||||||
@@ -43,9 +44,8 @@ def addMakefile(bake, makedirs, deps=[], args={}):
|
|||||||
makedir = makedirs['all']
|
makedir = makedirs['all']
|
||||||
tfile = '%s/%s' % (makedir, make)
|
tfile = '%s/%s' % (makedir, make)
|
||||||
lines.append('%s: %s' % (tfile, dep))
|
lines.append('%s: %s' % (tfile, dep))
|
||||||
lines.append('\t$(BAKEFILE) $(BAKEARGS) -f%s -o%s%s %s' % \
|
lines.append('\t$(BAKEFILE) -f%s -o$@ %s' % (format, bake))
|
||||||
(format, tfile, a, bake))
|
lines.append('\ttouch $@')
|
||||||
lines.append('\ttouch %s' % tfile)
|
|
||||||
if format not in all: all[format] = []
|
if format not in all: all[format] = []
|
||||||
all[format].append(tfile)
|
all[format].append(tfile)
|
||||||
|
|
||||||
@@ -55,6 +55,7 @@ def addMakefile(bake, makedirs, deps=[], args={}):
|
|||||||
add(bake, makedirs, 'makefile.bcc', dep, 'borland', args)
|
add(bake, makedirs, 'makefile.bcc', dep, 'borland', args)
|
||||||
add(bake, makedirs, 'makefile.vc', dep, 'msvc', args)
|
add(bake, makedirs, 'makefile.vc', dep, 'msvc', args)
|
||||||
add(bake, makedirs, 'makefile.gcc', dep, 'mingw', args)
|
add(bake, makedirs, 'makefile.gcc', dep, 'mingw', args)
|
||||||
|
add(bake, makedirs, 'makefile.wat', dep, 'watcom', args)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -63,9 +64,7 @@ def addMakefile(bake, makedirs, deps=[], args={}):
|
|||||||
# -----------------------------------------------
|
# -----------------------------------------------
|
||||||
|
|
||||||
# main makefile:
|
# main makefile:
|
||||||
addMakefile('wx.bkl', {'all':'..','autoconf':'../..'},
|
addMakefile('wx.bkl', {'all':'..','autoconf':'../..'}, [ '$(MDEPS)' ])
|
||||||
['common.bkl', 'config.bkl', 'files.bkl', 'monolithic.bkl',
|
|
||||||
'multilib.bkl', 'wxwin.py'])
|
|
||||||
|
|
||||||
# samples main makefile:
|
# samples main makefile:
|
||||||
addMakefile('../../samples/samples.bkl', {'all':'../../samples'},
|
addMakefile('../../samples/samples.bkl', {'all':'../../samples'},
|
||||||
@@ -97,13 +96,12 @@ def onSubmakefile(type, dirname, names):
|
|||||||
for bake in bakes:
|
for bake in bakes:
|
||||||
if type==CONTRIB_DIR:
|
if type==CONTRIB_DIR:
|
||||||
acdir = '../../contrib/src/%s' % dirname.split('/')[-1]
|
acdir = '../../contrib/src/%s' % dirname.split('/')[-1]
|
||||||
ruledep = 'common_contrib.bkl'
|
ruledep = '$(CDEPS)'
|
||||||
else:
|
else:
|
||||||
acdir = dirname
|
acdir = dirname
|
||||||
ruledep = 'common_samples.bkl'
|
ruledep = '$(SDEPS)'
|
||||||
addMakefile('%s/%s' % (dirname, bake),
|
addMakefile('%s/%s' % (dirname, bake),
|
||||||
{'all':dirname,'autoconf':acdir},
|
{'all':dirname,'autoconf':acdir}, deps=[ruledep],
|
||||||
deps=['common.bkl',ruledep,'config.bkl'],
|
|
||||||
args=args)
|
args=args)
|
||||||
|
|
||||||
os.path.walk(os.path.join('..','..','samples'),
|
os.path.walk(os.path.join('..','..','samples'),
|
||||||
|
Reference in New Issue
Block a user