Skip to content

Instantly share code, notes, and snippets.

@kazuyas
Created April 4, 2012 05:26
Show Gist options
  • Save kazuyas/2298001 to your computer and use it in GitHub Desktop.
Save kazuyas/2298001 to your computer and use it in GitHub Desktop.
build.sh
#!/bin/sh
TREMA_HOME=/home/kazuya/proj/trema/
gcc `$TREMA_HOME/trema-config --cflag` -c $1
gcc ${1%.c}.o `$TREMA_HOME/trema-config --libs` -o ${1%.c}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment