comparison Makefile @ 419:d1bf9734ce94

Cleanup makefile and link math library
author Mike Pavone <pavone@retrodev.com>
date Mon, 24 Jun 2013 21:30:38 -0700
parents a13a83934ba3
children add9e2f5c0e3
comparison
equal deleted inserted replaced
418:dbf4e1c86f3c 419:d1bf9734ce94
3 CFLAGS=-ggdb -std=gnu99 `pkg-config --cflags-only-I $(LIBS)` -Wreturn-type -Werror=return-type 3 CFLAGS=-ggdb -std=gnu99 `pkg-config --cflags-only-I $(LIBS)` -Wreturn-type -Werror=return-type
4 else 4 else
5 CFLAGS=-O2 -std=gnu99 `pkg-config --cflags-only-I $(LIBS)` -Wreturn-type -Werror=return-type 5 CFLAGS=-O2 -std=gnu99 `pkg-config --cflags-only-I $(LIBS)` -Wreturn-type -Werror=return-type
6 endif 6 endif
7 7
8 TRANSOBJS=gen_x86.o x86_backend.o mem.o
9 M68KOBJS=68kinst.o m68k_to_x86.o runtime.o
10 Z80OBJS=z80inst.o z80_to_x86.o zruntime.o
11 AUDIOOBJS=ym2612.o psg.o wave.o
12
8 all : dis trans stateview blastem 13 all : dis trans stateview blastem
9 14
10 blastem : blastem.o 68kinst.o gen_x86.o m68k_to_x86.o z80inst.o z80_to_x86.o x86_backend.o runtime.o zruntime.o mem.o vdp.o ym2612.o psg.o render_sdl.o wave.o 15 blastem : blastem.o vdp.o render_sdl.o io.o $(M68KOBJS) $(Z80OBJS) $(TRANSOBJS) $(AUDIOOBJS)
11 $(CC) -ggdb -o blastem blastem.o 68kinst.o gen_x86.o m68k_to_x86.o z80inst.o z80_to_x86.o x86_backend.o runtime.o zruntime.o mem.o vdp.o ym2612.o psg.o render_sdl.o wave.o `pkg-config --libs $(LIBS)` 16 $(CC) -ggdb -o blastem blastem.o vdp.o render_sdl.o io.o $(M68KOBJS) $(Z80OBJS) $(TRANSOBJS) $(AUDIOOBJS) -lm `pkg-config --libs $(LIBS)`
12 17
13 dis : dis.o 68kinst.o 18 dis : dis.o 68kinst.o
14 $(CC) -o dis dis.o 68kinst.o 19 $(CC) -o dis dis.o 68kinst.o
15 20
16 zdis : zdis.o z80inst.o 21 zdis : zdis.o z80inst.o
17 $(CC) -o zdis zdis.o z80inst.o 22 $(CC) -o zdis zdis.o z80inst.o
18 23
19 libemu68k.a : 68kinst.o gen_x86.o m68k_to_x86.o x86_backend.o runtime.o mem.o 24 libemu68k.a : $(M68KOBJS) $(TRANSOBJS)
20 ar rcs libemu68k.a 68kinst.o gen_x86.o m68k_to_x86.o x86_backend.o runtime.o mem.o 25 ar rcs libemu68k.a $(M68KOBJS) $(TRANSOBJS)
21 26
22 trans : trans.o 68kinst.o gen_x86.o m68k_to_x86.o x86_backend.o runtime.o mem.o 27 trans : trans.o $(M68KOBJS) $(TRANSOBJS)
23 $(CC) -o trans trans.o 68kinst.o gen_x86.o m68k_to_x86.o x86_backend.o runtime.o mem.o 28 $(CC) -o trans trans.o $(M68KOBJS) $(TRANSOBJS)
24 29
25 transz80 : transz80.o z80inst.o gen_x86.o z80_to_x86.o x86_backend.o zruntime.o mem.o 30 transz80 : transz80.o $(Z80OBJS) $(TRANSOBJS)
26 $(CC) -o transz80 transz80.o z80inst.o gen_x86.o z80_to_x86.o x86_backend.o zruntime.o mem.o 31 $(CC) -o transz80 $(Z80OBJS) $(TRANSOBJS)
27 32
28 ztestrun : ztestrun.o z80inst.o gen_x86.o z80_to_x86.o x86_backend.o zruntime.o mem.o 33 ztestrun : ztestrun.o $(Z80OBJS) $(TRANSOBJS)
29 $(CC) -o ztestrun ztestrun.o z80inst.o gen_x86.o z80_to_x86.o x86_backend.o zruntime.o mem.o 34 $(CC) -o ztestrun $(Z80OBJS) $(TRANSOBJS)
30 35
31 ztestgen : ztestgen.o z80inst.o 36 ztestgen : ztestgen.o z80inst.o
32 $(CC) -o ztestgen ztestgen.o z80inst.o 37 $(CC) -o ztestgen ztestgen.o z80inst.o
33 38
34 stateview : stateview.o vdp.o render_sdl.o 39 stateview : stateview.o vdp.o render_sdl.o
35 $(CC) -o stateview stateview.o vdp.o render_sdl.o `pkg-config --libs $(LIBS)` 40 $(CC) -o stateview stateview.o vdp.o render_sdl.o `pkg-config --libs $(LIBS)`
36 41
37 vgmplay : vgmplay.o ym2612.o psg.o render_sdl.o wave.o 42 vgmplay : vgmplay.o render_sdl.o $(AUDIOOBJS)
38 $(CC) -o vgmplay vgmplay.o ym2612.o psg.o render_sdl.o wave.o `pkg-config --libs $(LIBS)` 43 $(CC) -o vgmplay vgmplay.o render_sdl.o $(AUDIOOBJS) `pkg-config --libs $(LIBS)`
39 44
40 test_x86 : test_x86.o gen_x86.o 45 test_x86 : test_x86.o gen_x86.o
41 $(CC) -o test_x86 test_x86.o gen_x86.o 46 $(CC) -o test_x86 test_x86.o gen_x86.o
42 47
43 gen_fib : gen_fib.o gen_x86.o mem.o 48 gen_fib : gen_fib.o gen_x86.o mem.o