Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
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
     -o outname
	    Specify the output name (not the file name!).

     --arc  Use automatic reference counting.

     --lib version
	    Compile  a static library (with the specified version) instead of an
	    application.

     --plugin
	    Compile a plugin instead of an application.

     --package name
	    Use the specified package.

     --builddir dir
	    Place built objects into the specified directory.

     -Ddefine, -D define
	    Pass the specified define to the compiler.

     -framework framework
	    Pass the specified -framework argument to the linker  (macOS  /  iOS
	    only).

     -fflag
	    Pass the specified -f flag to the compiler.

     -Fdir, -F dir
	    Pass the specified -F flag to the linker (macOS / iOS only).

     -gflag
	    Pass the specified -g flag to the compiler.

     -Idir, -I dir
	    Pass the specified -I flag to the compiler.

     -llib, -l lib
	    Pass the specified -l flag to the linker.

     -Ldir, -L dir
	    Pass the specified -L flag to the linker.

     -mflag
	    Pass the specified -m flag to the compiler.

     -Olevel
	    Pass the specified -O flag to the compiler.

     -pthread
	    Pass -pthread to the compiler and linker.

     -std=lang
	    Pass the specified -std= flag to the compiler.

     -Wl,flag
	    Pass the specified -Wl, flag to the linker.

     -Wwarning
	    Pass the specified -W flag to the compiler.

     --help
	    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)

								objfw-compile(1)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=objfw-compile&sektion=1&manpath=FreeBSD+Ports+15.1.quarterly>

home | help