Skip to content

Instantly share code, notes, and snippets.

@agesome
Created December 28, 2009 18:24
Show Gist options
  • Select an option

  • Save agesome/264827 to your computer and use it in GitHub Desktop.

Select an option

Save agesome/264827 to your computer and use it in GitHub Desktop.
#!/bin/sh
for i in `ls src/plugins/ | grep ".c$" | sed -s 's/.c//g'`
do
gcc -Isrc/ -O1 -g -ggdb -pipe -Wall -Wextra -rdynamic -fPIC src/plugins/$i.c -c
gcc -O1 -g -ggdb -pipe -Wall -Wextra -rdynamic -shared -o plugins/$i.so $i.o
rm $i.o
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment