objfw-compile(1)

πŸ“¦
version 1.5.7 Β· 3 versions
, in alpine 3.24, epel 10, epel 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu stonking

πŸ’– 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 πŸŽ€

  • -o outname β€” 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.
  • --lib version β€” 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 🧚
  • --package name β€” uses the package you specify.
  • --builddir dir β€” drops all the built object files into the directory you name πŸ“
  • -Ddefine, -D define β€” passes the define you give it straight to the compiler.
  • -framework framework β€” passes that -framework argument to the linker. macOS / iOS only 🍎
  • -fflag β€” passes the -f flag you give it to the compiler.
  • -Fdir, -F dir β€” passes that -F flag to the linker. macOS / iOS only 🍎
  • -gflag β€” passes the -g flag you give it to the compiler.
  • -Idir, -I dir β€” passes that -I flag to the compiler.
  • -llib, -l lib β€” passes that -l flag to the linker.
  • -Ldir, -L dir β€” passes that -L flag to the linker.
  • -mflag β€” passes the -m flag you give it to the compiler.
  • -O level β€” passes that -O flag to the compiler. optimisation era ✨
  • -pthread β€” passes -pthread to both the compiler and the linker.
  • -std= lang β€” passes that -std= flag to the compiler.
  • -Wl, flag β€” passes that -Wl, flag to the linker.
  • -W warning β€” passes the -W flag 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 πŸ‘‘

objfw-config(1)


that's the whole page bestie, no cap πŸ’œ this was objfw-compile(1) from the General Commands Manual β€” go forth and compile something iconic 🌈⭐