0

Im new 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!

1 Answer 1

1

You'll want to learn how to use GNU Make, and write a makefile.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.