blob: 3464b0a8544c6ffcd27718bc2f3244bbb1b24233 [file] [log] [blame]
#!/usr/bin/env python3
import sys, os
if len(sys.argv) != 2:
print(sys.argv[0], '<output dir>')
odir = sys.argv[1]
with open(os.path.join(odir, 'mylib.h'), 'w') as f:
f.write('int func();\n')
with open(os.path.join(odir, 'mylib.c'), 'w') as f:
f.write('''int func() {
return 0;
}
''')