switch to cmake build
This commit is contained in:
23
lib/parquet/generate_make.py
Normal file
23
lib/parquet/generate_make.py
Normal file
@@ -0,0 +1,23 @@
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
import glob
|
||||
from pathlib import Path
|
||||
|
||||
# find source files
|
||||
srcpaths = Path("src/").rglob('*.cc')
|
||||
deps =[ str(path) for path in srcpaths ]
|
||||
|
||||
print(deps)
|
||||
|
||||
with open('makefileobj','w') as fout :
|
||||
for el in deps :
|
||||
basnam = el.split('/')[-1]
|
||||
print(str(el) + " : " + str(basnam) + " : " + str(basnam.split('.')[1]))
|
||||
if basnam.split('.')[1] == 'cc' :
|
||||
objfile = 'bin/' + basnam.replace('.cc','.o')
|
||||
fout.write(objfile + " : " + el + "\n")
|
||||
fout.write("\t" + "$(CPP) $(CPPFLAGS) -c $< $(LIBS) -o $@\n")
|
||||
fout.write("\n")
|
||||
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
Reference in New Issue
Block a user