From d19f26c98cbfb48124eb1c40876cceba4971cd96 Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Sun, 30 Jun 2013 11:45:58 -0700 Subject: Make VDP render in native pixel format of the renderer for a modest performance gain and to make it easier to use OpenGL for rendering --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c353856..b593bb9 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,16 @@ LIBS=sdl +LDFLAGS=-lm `pkg-config --libs $(LIBS)` ifdef DEBUG CFLAGS=-ggdb -std=gnu99 `pkg-config --cflags-only-I $(LIBS)` -Wreturn-type -Werror=return-type else CFLAGS=-O2 -std=gnu99 `pkg-config --cflags-only-I $(LIBS)` -Wreturn-type -Werror=return-type endif +ifdef PROFILE +CFLAGS+= -pg +LDFLAGS+= -pg +endif + TRANSOBJS=gen_x86.o x86_backend.o mem.o M68KOBJS=68kinst.o m68k_to_x86.o runtime.o Z80OBJS=z80inst.o z80_to_x86.o zruntime.o @@ -13,7 +19,7 @@ AUDIOOBJS=ym2612.o psg.o wave.o all : dis trans stateview blastem blastem : blastem.o vdp.o render_sdl.o io.o $(M68KOBJS) $(Z80OBJS) $(TRANSOBJS) $(AUDIOOBJS) - $(CC) -ggdb -o blastem blastem.o vdp.o render_sdl.o io.o $(M68KOBJS) $(Z80OBJS) $(TRANSOBJS) $(AUDIOOBJS) -lm `pkg-config --libs $(LIBS)` + $(CC) -ggdb -o blastem blastem.o vdp.o render_sdl.o io.o $(M68KOBJS) $(Z80OBJS) $(TRANSOBJS) $(AUDIOOBJS) $(LDFLAGS) dis : dis.o 68kinst.o $(CC) -o dis dis.o 68kinst.o -- cgit v1.2.3