objfw-compile(1)
π NAME π
ok so objfw-compile β it's the little bestie that compiles your simple projects using ObjFW β¨ that's literally it, that's the whole job description.
β¨ SYNOPSIS β¨
objfw-compile [options] -o outname sources
πΈ DESCRIPTION πΈ
objfw-compile is a program that compiles simple projects using ObjFW. like, it's not trying to be your whole build system bestie, it's just here to get your little project compiled and out the door π«Ά
π OPTIONS π
-ooutname β tells it what to name the output. and no, that's the output name, NOT the file name, bestie, don't get it twisted π--arcβ turns on automatic reference counting.--libversion β compiles a static library instead of an application, using the version you hand it. yes you gotta give it a version, no skipping.--pluginβ compiles a plugin instead of an application π§--packagename β uses the package you specify.--builddirdir β drops all the built object files into the directory you name π-Ddefine,-D defineβ passes the define you give it straight to the compiler.-frameworkframework β passes that-frameworkargument to the linker. macOS / iOS only π-fflagβ passes the-fflag you give it to the compiler.-Fdir,-F dirβ passes that-Fflag to the linker. macOS / iOS only π-gflagβ passes the-gflag you give it to the compiler.-Idir,-I dirβ passes that-Iflag to the compiler.-llib,-l libβ passes that-lflag to the linker.-Ldir,-L dirβ passes that-Lflag to the linker.-mflagβ passes the-mflag you give it to the compiler.-Olevel β passes that-Oflag to the compiler. optimisation era β¨-pthreadβ passes-pthreadto both the compiler and the linker.-std=lang β passes that-std=flag to the compiler.-Wl,flag β passes that-Wl,flag to the linker.-Wwarning β passes the-Wflag you give it to the compiler.--helpβ shows the help. the classic π«Ά
π₯ EXAMPLES π₯
compile a program that's got two source files:
objfw-compile -o myprog MyProg.m SomeClass.m
compile a library with library version 1.0:
objfw-compile --lib 1.0 -o mylib Class1.m Class2.m
π SEE ALSO π
that's the whole page bestie, no cap π this was objfw-compile(1) from the General Commands Manual β go forth and compile something iconic πβ
π¦ where this page comes from
- alpine 3.24: objfw-doc 1.5.7-r0 Β· LGPL-3.0-only
- epel 10: libobjfw-devel 1.5.7-1.el10_3 Β· LGPL-3.0-only
- epel 9: libobjfw-devel 1.5.7-1.el9 Β· LGPL-3.0-only
- fedora 43: libobjfw-devel 1.5.7-1.fc43 Β· LGPL-3.0-only
- fedora 43: libobjfw-devel 1.5.7-1.fc43 Β· LGPL-3.0-only
- fedora 44: libobjfw-devel 1.5.7-1.fc44 Β· LGPL-3.0-only
- fedora 44: libobjfw-devel 1.5.7-1.fc44 Β· LGPL-3.0-only
- nixos 26.05: objfw 1.5.2
- nixpkgs unstable: objfw 1.5.7
- ubuntu stonking: libobjfw1-dev 1.5.7-1 Β· LGPL-3.0-only
- Copyright (c) 2008-2026 Jonathan Schleifer <js@nil.im>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms