#!/bin/sh #****************************************************************# # ScriptName: gccall.sh # Function: compile *.c in current dir #***************************************************************# for file in `ls *.c` do gcc $file -lggw -o ${file%.*} done
原文地址:http://blog.csdn.net/thinkmore1314/article/details/35569005