05.06.2014 Views

QNX Neutrino Programmer's Guide [6.5.0 SP1] - QNX Software ...

QNX Neutrino Programmer's Guide [6.5.0 SP1] - QNX Software ...

QNX Neutrino Programmer's Guide [6.5.0 SP1] - QNX Software ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

© 2012, <strong>QNX</strong> <strong>Software</strong> Systems Limited<br />

Alignment and structure packing 163<br />

Atomic operations 163<br />

Solutions 163<br />

Determining endianness 163<br />

Swapping data if required 164<br />

Accessing unaligned data 165<br />

Examples 165<br />

Accessing I/O ports 167<br />

9<br />

A<br />

Conventions for Recursive Makefiles and<br />

Directories 169<br />

Structure of a multiplatform source tree 171<br />

Makefile structure 172<br />

The recurse.mk file 172<br />

Macros 173<br />

Directory levels 174<br />

Specifying options 175<br />

The common.mk file 175<br />

The variant-level makefile 176<br />

Recognized variant names 176<br />

Using the standard macros and include files 177<br />

The qconfig.mk include file 178<br />

The qrules.mk include file 180<br />

The qtargets.mk include file 183<br />

Advanced topics 185<br />

Collapsing unnecessary directory levels 185<br />

Performing partial builds 186<br />

Performing parallel builds 186<br />

More uses for LIST 187<br />

GNU configure 187<br />

Examples of creating Makefiles 190<br />

A single application 191<br />

A library and an application 194<br />

POSIX Conformance 197<br />

Conformance statement 199<br />

System interfaces: general attributes 199<br />

File handling 216<br />

Internationalized system interfaces 216<br />

Threads 216<br />

Realtime 217<br />

viii Contents June 14, 2012

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!