crashtest-r0ket/modules/mkwrapper
Stefan `Sec` Zehl 617a6f5720 Add new modules/ support infrastructure. Hope you like it.
add modules/$(USERNAME).c for your coding

use "make MODULE=foo" to build a specific module
2011-05-21 12:05:48 +02:00

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 "}"