trunk/makefile
| r243375 | r243376 | |
| 281 | 281 | # uncomment to enable OpenMP optimized code |
| 282 | 282 | # OPENMP = 1 |
| 283 | 283 | |
| 284 | # uncomment to compile c++ code as C++11 |
| 285 | # CPP11 = 1 |
| 286 | |
| 284 | 287 | # specify optimization level or leave commented to use the default |
| 285 | 288 | # (default is OPTIMIZE = 3 normally, or OPTIMIZE = 0 with symbols) |
| 286 | 289 | # OPTIMIZE = 3 |
| r243375 | r243376 | |
| 525 | 528 | # we compile C-only to C89 standard with GNU extensions |
| 526 | 529 | # we compile C++ code to C++98 standard with GNU extensions |
| 527 | 530 | CONLYFLAGS += -std=gnu89 |
| 528 | | CPPONLYFLAGS += -x c++ -std=gnu++98 |
| 531 | ifdef CPP11 |
| 532 | CPPONLYFLAGS += -x c++ -std=gnu++11 |
| 533 | else |
| 534 | CPPONLYFLAGS += -x c++ -std=gnu++89 |
| 535 | endif |
| 529 | 536 | COBJFLAGS += -x objective-c++ |
| 530 | 537 | |
| 531 | 538 | # this speeds it up a bit by piping between the preprocessor/compiler/assembler |