617a6f5720
add modules/$(USERNAME).c for your coding use "make MODULE=foo" to build a specific module
16 lines
186 B
Bash
Executable file
16 lines
186 B
Bash
Executable file
#!/bin/sh
|
|
|
|
for a in $* ; do
|
|
base=${a%.o}
|
|
echo "void module_$base(void);"
|
|
done
|
|
|
|
echo
|
|
echo "void wrapper(void){"
|
|
|
|
for a in $* ; do
|
|
base=${a%.o}
|
|
echo "module_$base();"
|
|
done
|
|
|
|
echo "}"
|