smb3 and addams family hacks
[fceu.git] / Makefile.cli
1 CROSS   =
2 CC      = $(CROSS)gcc
3 STRIP   = $(CROSS)strip
4 AS      = $(CROSS)as
5 TFLAGS  = -Winline -Izlib -DGP2X=1 -DLSB_FIRST -DUNIX -DPSS_STYLE=1 -DHAVE_ASPRINTF -DZLIB -DFRAMESKIP -D_REENTRANT `sdl-config --cflags` -DSDL
6 RM      = rm -f
7 B       = drivers/cli/
8 ifdef DEBUG
9 TFLAGS  += -ggdb
10 LDRIVER += -ggdb
11 else
12 TFLAGS  += -ftracer -fstrength-reduce -funroll-loops -fomit-frame-pointer -fstrict-aliasing -ffast-math
13 TFLAGS  += -O3 # -pg
14 LDRIVER += -O3 # -pg
15 endif
16
17 all:            fceu
18
19 include zlib/Makefile
20
21 OBJDRIVER       = ${B}sdl.o ${B}main.o ${B}throttle.o ${B}unix-netplay.o ${B}sdl-sound.o ${B}sdl-video.o ${B}sdl-joystick.o drivers/common/cheat.o drivers/common/config.o drivers/common/args.o drivers/common/vidblit.o ${UNZIPOBJS} ppu.o movie.o
22 LDRIVER         = -lm `sdl-config --libs` -lz
23
24
25 OBJDRIVER += x6502.o
26
27 x6502.o: x6502.c x6502.h ops.h fce.h sound.h
28
29 ncpu.o: ncpu.S ncpu.h
30         $(CC) $(TFLAGS) -c $< -o $@
31
32 include Makefile.base
33
34 ${B}sdl-joystick.o:     ${B}sdl-joystick.c
35 ${B}main.o:             ${B}main.c ${B}main.h ${B}usage.h ${B}input.c ${B}keyscan.h
36 ${B}sdl.o:              ${B}sdl.c ${B}sdl.h
37 ${B}sdl-video.o:        ${B}sdl-video.c
38 ${B}sdl-sound.o:        ${B}sdl-sound.c
39 #${B}sdl-netplay.o:     ${B}sdl-netplay.c
40 ${B}unix-netplay.o:     ${B}unix-netplay.c
41 ${B}throttle.o:         ${B}throttle.c ${B}main.h ${B}throttle.h
42
43 ppu.o:                  ppu.c ppu.h
44
45 include Makefile.common
46