Mercurial > repos > blastem
comparison Makefile @ 487:c08a4efeee7f opengl
Update opengl branch from default. Fix build breakage unrelated to merge
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 26 Oct 2013 22:38:47 -0700 |
parents | bc9e0829ffc7 |
children | 32f053ad9b02 |
comparison
equal
deleted
inserted
replaced
449:7696d824489d | 487:c08a4efeee7f |
---|---|
1 LIBS=sdl | 1 LIBS=sdl gl |
2 LDFLAGS=-lm `pkg-config --libs $(LIBS)` | 2 LDFLAGS=-lm `pkg-config --libs $(LIBS)` |
3 ifdef DEBUG | 3 ifdef DEBUG |
4 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 |
5 else | 5 else |
6 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 |
14 TRANSOBJS=gen_x86.o x86_backend.o mem.o | 14 TRANSOBJS=gen_x86.o x86_backend.o mem.o |
15 M68KOBJS=68kinst.o m68k_to_x86.o runtime.o | 15 M68KOBJS=68kinst.o m68k_to_x86.o runtime.o |
16 Z80OBJS=z80inst.o z80_to_x86.o zruntime.o | 16 Z80OBJS=z80inst.o z80_to_x86.o zruntime.o |
17 AUDIOOBJS=ym2612.o psg.o wave.o | 17 AUDIOOBJS=ym2612.o psg.o wave.o |
18 | 18 |
19 all : dis trans stateview blastem | 19 all : dis zdis stateview vgmplay blastem |
20 | 20 |
21 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 config.o tern.o gst.o $(M68KOBJS) $(Z80OBJS) $(TRANSOBJS) $(AUDIOOBJS) |
22 $(CC) -ggdb -o blastem blastem.o vdp.o render_sdl.o io.o $(M68KOBJS) $(Z80OBJS) $(TRANSOBJS) $(AUDIOOBJS) $(LDFLAGS) | 22 $(CC) -ggdb -o blastem blastem.o vdp.o render_sdl.o io.o config.o tern.o gst.o $(M68KOBJS) $(Z80OBJS) $(TRANSOBJS) $(AUDIOOBJS) $(LDFLAGS) |
23 | 23 |
24 dis : dis.o 68kinst.o | 24 dis : dis.o 68kinst.o |
25 $(CC) -o dis dis.o 68kinst.o | 25 $(CC) -o dis dis.o 68kinst.o |
26 | 26 |
27 zdis : zdis.o z80inst.o | 27 zdis : zdis.o z80inst.o |
28 $(CC) -o zdis zdis.o z80inst.o | 28 $(CC) -o zdis zdis.o z80inst.o |
29 | 29 |
30 libemu68k.a : $(M68KOBJS) $(TRANSOBJS) | 30 libemu68k.a : $(M68KOBJS) $(TRANSOBJS) |
31 ar rcs libemu68k.a $(M68KOBJS) $(TRANSOBJS) | 31 ar rcs libemu68k.a $(M68KOBJS) $(TRANSOBJS) |
32 | 32 |
33 trans : trans.o $(M68KOBJS) $(TRANSOBJS) | 33 trans : trans.o $(M68KOBJS) $(TRANSOBJS) |
34 $(CC) -o trans trans.o $(M68KOBJS) $(TRANSOBJS) | 34 $(CC) -o trans trans.o $(M68KOBJS) $(TRANSOBJS) |
35 | 35 |
36 transz80 : transz80.o $(Z80OBJS) $(TRANSOBJS) | 36 transz80 : transz80.o $(Z80OBJS) $(TRANSOBJS) |
37 $(CC) -o transz80 $(Z80OBJS) $(TRANSOBJS) | 37 $(CC) -o transz80 $(Z80OBJS) $(TRANSOBJS) |
40 $(CC) -o ztestrun $(Z80OBJS) $(TRANSOBJS) | 40 $(CC) -o ztestrun $(Z80OBJS) $(TRANSOBJS) |
41 | 41 |
42 ztestgen : ztestgen.o z80inst.o | 42 ztestgen : ztestgen.o z80inst.o |
43 $(CC) -o ztestgen ztestgen.o z80inst.o | 43 $(CC) -o ztestgen ztestgen.o z80inst.o |
44 | 44 |
45 stateview : stateview.o vdp.o render_sdl.o | 45 stateview : stateview.o vdp.o render_sdl.o config.o tern.o gst.o |
46 $(CC) -o stateview stateview.o vdp.o render_sdl.o `pkg-config --libs $(LIBS)` | 46 $(CC) -o stateview stateview.o vdp.o render_sdl.o config.o tern.o gst.o `pkg-config --libs $(LIBS)` |
47 | 47 |
48 vgmplay : vgmplay.o render_sdl.o $(AUDIOOBJS) | 48 vgmplay : vgmplay.o render_sdl.o config.o tern.o $(AUDIOOBJS) |
49 $(CC) -o vgmplay vgmplay.o render_sdl.o $(AUDIOOBJS) `pkg-config --libs $(LIBS)` | 49 $(CC) -o vgmplay vgmplay.o render_sdl.o config.o tern.o $(AUDIOOBJS) $(LDFLAGS) |
50 | |
51 testgst : testgst.o gst.o | |
52 $(CC) -o testgst testgst.o gst.o | |
50 | 53 |
51 test_x86 : test_x86.o gen_x86.o | 54 test_x86 : test_x86.o gen_x86.o |
52 $(CC) -o test_x86 test_x86.o gen_x86.o | 55 $(CC) -o test_x86 test_x86.o gen_x86.o |
53 | 56 |
54 gen_fib : gen_fib.o gen_x86.o mem.o | 57 gen_fib : gen_fib.o gen_x86.o mem.o |
55 $(CC) -o gen_fib gen_fib.o gen_x86.o mem.o | 58 $(CC) -o gen_fib gen_fib.o gen_x86.o mem.o |
56 | 59 |
57 offsets : offsets.c z80_to_x86.h m68k_to_x86.h | 60 offsets : offsets.c z80_to_x86.h m68k_to_x86.h |
58 $(CC) -o offsets offsets.c | 61 $(CC) -o offsets offsets.c |
59 | 62 |
60 %.o : %.S | 63 %.o : %.S |
61 $(CC) -c -o $@ $< | 64 $(CC) -c -o $@ $< |
62 | 65 |
63 %.o : %.c | 66 %.o : %.c |
64 $(CC) $(CFLAGS) -c -o $@ $< | 67 $(CC) $(CFLAGS) -c -o $@ $< |