1

I am trying to build a GNUStep program on OpenBSD. I installed packages gnustep-base and gnustep-make.

my main.m:

#import <Foundation/Foundation.h>

int main(void)
{

    NSLog(@"Hello World!");  
    return 0;
}

GNUmakefile:

include $(GNUSTEP_MAKEFILES)/common.make
TOOL_NAME = main
main_OBJC_FILES = main.m
include $(GNUSTEP_MAKEFILES)/tool.make

Then, I initialize the GNUstep environment using

. /usr/local/share/GNUstep/Makefiles/GNUstep.sh

And then I run:

make

This does not recognize the GNUmakefile.

Does anybody know how I can build a GNUstep program on OpenBSD? On my Arch Linux installation, similar procedure works fine.

1 Answer 1

4

Try make -f GNUmakefile. If this command fails, install gmake and try gmake -f GNUmakefile.

1
  • 2
    Thank you. From OpenBSD's Misc mailing list, I came to know that BSD system's make is different from GNU make. And I need to use gmake for that. It worked!
    – Salil
    Jan 21, 2013 at 23:26

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.