Mercurial > repos > blastem
changeset 573:29d99db6f55d
Enable link time optimization
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 03 Mar 2014 22:16:41 -0800 |
parents | 0f32f52fc98e |
children | 1594525e2157 |
files | Makefile |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Mon Mar 03 21:08:43 2014 -0800 +++ b/Makefile Mon Mar 03 22:16:41 2014 -0800 @@ -3,11 +3,12 @@ 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 @@ 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