Scroll to navigation

objfw-compile(1) General Commands Manual objfw-compile(1)

NAME

objfw-compile - compile simple projects using ObjFW

SYNOPSIS

objfw-config [options] -o outname sources

DESCRIPTION

objfw-compile is a program to compile simple projects using ObjFW.

OPTIONS

Specify the output name (not the file name!).
Use automatic reference counting.
Compile a static library (with the specified version) instead of an application.
Compile a plugin instead of an application.
Use the specified package.
Place built objects into the specified directory.
Pass the specified define to the compiler.
Pass the specified -framework argument to the linker (macOS / iOS only).
Pass the specified -f flag to the compiler.
Pass the specified -F flag to the linker (macOS / iOS only).
Pass the specified -g flag to the compiler.
Pass the specified -I flag to the compiler.
Pass the specified -l flag to the linker.
Pass the specified -L flag to the linker.
Pass the specified -m flag to the compiler.
Pass the specified -O flag to the compiler.
Pass -pthread to the compiler and linker.
Pass the specified -std= flag to the compiler.
Pass the specified -Wl, flag to the linker.
Pass the specified -W flag to the compiler.
Show the help.

EXAMPLES

Compile a program with 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)