On Monday, July 01, 2024 23:52 CEST, Tito Mari Francis Escaño 
<[email protected]> wrote:

> Thanks for responding Sebastian,
> 
> I was trying to compile this code snippet for starters, named hello.m:
> #import <Foundation/Foundation.h>
> 
> int main (int argc, const char * argv[]) {
>     NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
> 
>     NSLog(@"Hello, I'm created by Tito Mari Francis Escano");
> 
>     [pool drain];
>     return 0;
> }
> 
> To compile it, on the terminal, I have to run:
> clang -I /usr/local/include/ -L /usr/local/lib -I
> /usr/local/include/gnustep -L /usr/local/include/Foundation -L
> /usr/local/include/GNUstepBase -L /usr/local/lib/GNUstep/Libraries/
> -lgnustep-base -lobjc2 hello.m -o hello
> 
> Can you please give me pointers on how to use the GNUmakefile and how gmake
> is invoked to do the build in OpenBSD?
> Thanks again.
> 

just source . /etc/GNUstep.conf

Then use GNUmakefile and gmake following any GNUstep tutorials.

You may use ProjectCenter to generate some basic GNUmakefiles for you.

Sebastian


Reply via email to