trunk/makefile
| r24650 | r24651 | |
| 250 | 250 | # specify the sanitizer to use or leave empty to use none |
| 251 | 251 | # SANITIZE = |
| 252 | 252 | |
| 253 | # uncomment next line to enable LTO (link-time optimizations) |
| 254 | # LTO = 1 |
| 255 | |
| 253 | 256 | # specify optimization level or leave commented to use the default |
| 254 | 257 | # (default is OPTIMIZE = 3 normally, or OPTIMIZE = 0 with symbols) |
| 255 | 258 | # OPTIMIZE = 3 |
| r24650 | r24651 | |
| 495 | 498 | # if we are optimizing, include optimization options |
| 496 | 499 | ifneq ($(OPTIMIZE),0) |
| 497 | 500 | CCOMFLAGS += -fno-strict-aliasing $(ARCHOPTS) |
| 501 | ifdef LTO |
| 502 | CCOMFLAGS += -flto |
| 498 | 503 | endif |
| 504 | endif |
| 499 | 505 | |
| 500 | 506 | # add a basic set of warnings |
| 501 | 507 | CCOMFLAGS += \ |
| r24650 | r24651 | |
| 603 | 609 | endif |
| 604 | 610 | endif |
| 605 | 611 | |
| 612 | ifneq ($(OPTIMIZE),0) |
| 613 | ifdef LTO |
| 614 | LDFLAGS += -flto |
| 615 | endif |
| 616 | endif |
| 617 | |
| 606 | 618 | # output a map file (emulator only) |
| 607 | 619 | ifdef MAP |
| 608 | 620 | LDFLAGSEMULATOR += -Wl,-Map,$(FULLNAME).map |