comparison Makefile @ 426:add9e2f5c0e3

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
author Mike Pavone <pavone@retrodev.com>
date Sun, 30 Jun 2013 11:45:58 -0700
parents d1bf9734ce94
children 7f84090ab1cd
comparison
equal deleted inserted replaced
425:8b3ae850d1c4 426:add9e2f5c0e3
1 LIBS=sdl 1 LIBS=sdl
2 LDFLAGS=-lm `pkg-config --libs $(LIBS)`
2 ifdef DEBUG 3 ifdef DEBUG
3 CFLAGS=-ggdb -std=gnu99 `pkg-config --cflags-only-I $(LIBS)` -Wreturn-type -Werror=return-type 4 CFLAGS=-ggdb -std=gnu99 `pkg-config --cflags-only-I $(LIBS)` -Wreturn-type -Werror=return-type
4 else 5 else
5 CFLAGS=-O2 -std=gnu99 `pkg-config --cflags-only-I $(LIBS)` -Wreturn-type -Werror=return-type 6 CFLAGS=-O2 -std=gnu99 `pkg-config --cflags-only-I $(LIBS)` -Wreturn-type -Werror=return-type
7 endif
8
9 ifdef PROFILE
10 CFLAGS+= -pg
11 LDFLAGS+= -pg
6 endif 12 endif
7 13
8 TRANSOBJS=gen_x86.o x86_backend.o mem.o 14 TRANSOBJS=gen_x86.o x86_backend.o mem.o
9 M68KOBJS=68kinst.o m68k_to_x86.o runtime.o 15 M68KOBJS=68kinst.o m68k_to_x86.o runtime.o
10 Z80OBJS=z80inst.o z80_to_x86.o zruntime.o 16 Z80OBJS=z80inst.o z80_to_x86.o zruntime.o
11 AUDIOOBJS=ym2612.o psg.o wave.o 17 AUDIOOBJS=ym2612.o psg.o wave.o
12 18
13 all : dis trans stateview blastem 19 all : dis trans stateview blastem
14 20
15 blastem : blastem.o vdp.o render_sdl.o io.o $(M68KOBJS) $(Z80OBJS) $(TRANSOBJS) $(AUDIOOBJS) 21 blastem : blastem.o vdp.o render_sdl.o io.o $(M68KOBJS) $(Z80OBJS) $(TRANSOBJS) $(AUDIOOBJS)
16 $(CC) -ggdb -o blastem blastem.o vdp.o render_sdl.o io.o $(M68KOBJS) $(Z80OBJS) $(TRANSOBJS) $(AUDIOOBJS) -lm `pkg-config --libs $(LIBS)` 22 $(CC) -ggdb -o blastem blastem.o vdp.o render_sdl.o io.o $(M68KOBJS) $(Z80OBJS) $(TRANSOBJS) $(AUDIOOBJS) $(LDFLAGS)
17 23
18 dis : dis.o 68kinst.o 24 dis : dis.o 68kinst.o
19 $(CC) -o dis dis.o 68kinst.o 25 $(CC) -o dis dis.o 68kinst.o
20 26
21 zdis : zdis.o z80inst.o 27 zdis : zdis.o z80inst.o