diff options
| author | Mike Pavone <pavone@retrodev.com> | 2013-06-30 11:45:58 -0700 |
|---|---|---|
| committer | Mike Pavone <pavone@retrodev.com> | 2013-06-30 11:45:58 -0700 |
| commit | d19f26c98cbfb48124eb1c40876cceba4971cd96 (patch) | |
| tree | 63f3e2ca16f0f89b5b10df5e6b952d4d090af7cd /Makefile | |
| parent | 3cccd34a707323c1f96cda28552dc497c005182c (diff) | |
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
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |
