objective c linux compile script
Im n开发者_如何学Cew to scripting, done some basic scripts, but wonder how can I create a script that I could call and say the name of the file to compile in objective c in linux
ie
$ gcc
gnustep-config --objc-flags
-lgnustep-base hello.m -o hello
so instead of all that long line I could use
$compile hello.m
to become the above line? hope this makes sense! thank you!
You'll want to learn how to use GNU Make, and write a makefile.
精彩评论