diff options
author | Michael Pavone <pavone@retrodev.com> | 2014-03-03 22:16:41 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2014-03-03 22:16:41 -0800 |
commit | 9e8a182e9430a49c9007d7f30d2b22155f626b93 (patch) | |
tree | 091a6b5fc7935612cdd5bbe0ea16b33a517b0871 | |
parent | c18605cf191726cd0e605fe85fa73b89f1e7ed94 (diff) |
Enable link time optimization
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -3,11 +3,12 @@ LIBS=sdl else LIBS=sdl glew gl endif -LDFLAGS:=-lm $(shell pkg-config --libs $(LIBS)) ifdef DEBUG CFLAGS:=-ggdb -std=gnu99 $(shell pkg-config --cflags-only-I $(LIBS)) -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration +LDFLAGS:=-ggdb -lm $(shell pkg-config --libs $(LIBS)) else -CFLAGS:=-O2 -std=gnu99 $(shell pkg-config --cflags-only-I $(LIBS)) -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration +CFLAGS:=-O2 -flto -std=gnu99 $(shell pkg-config --cflags-only-I $(LIBS)) -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration +LDFLAGS:=-O2 -flto -lm $(shell pkg-config --libs $(LIBS)) endif ifdef PROFILE @@ -61,7 +62,7 @@ endif all : dis zdis stateview vgmplay blastem blastem : $(MAINOBJS) - $(CC) -ggdb -o blastem $(MAINOBJS) $(LDFLAGS) + $(CC) -o blastem $(MAINOBJS) $(LDFLAGS) dis : dis.o 68kinst.o $(CC) -o dis dis.o 68kinst.o |