more 0.98.15-like timing, but sound glitches
[fceu.git] / Makefile.base
1 CFLAGS  = -Wall  ${TFLAGS}
2 OBJECTS = fce.o video.o general.o endian.o svga.o sound.o nsf.o fds.o netplay.o ines.o state.o unif.o input.o file.o cart.o crc32.o memory.o cheat.o debug.o
3 # x6502.o
4
5 fceu:           fceu2
6 include mappers/Makefile
7 include boards/Makefile
8 include mbshare/Makefile
9 include input/Makefile
10
11 fceu2:          ${OBJECTS} ${MOBJS} ${MUOBJS} ${MUSOBJS} ${INPOBJS} ${OBJDRIVER}
12                 ${CC} -o fceu ${OBJECTS} ${MOBJS} ${MUOBJS} ${MUSOBJS} ${INPOBJS} ${OBJDRIVER} ${LDRIVER}
13 ifndef DEBUG
14                 $(STRIP) fceu
15 endif
16
17 clean:
18                 ${RM} fceu fceu.exe ${OBJECTS} ${INPOBJS} ${MOBJS} ${MUOBJS} ${MUSOBJS} ${OBJDRIVER}
19
20 nsf.o:          nsf.c nsf.h fce.h x6502.h svga.h video.h sound.h nsfbgnew.h general.h file.h
21 #x6502.o:       x6502.c x6502.h ops.h fce.h sound.h
22 video.o:        video.c types.h video.h svga.h version.h general.h
23 sound.o:        sound.c sound.h types.h fce.h svga.h x6502.h
24 svga.o:         svga.c svga.h types.h palette.h state.h netplay.h fds.h fce.h nsf.h video.h sound.h palettes/*.h driver.h drawing.h
25 netplay.o:      netplay.c netplay.h types.h svga.h
26
27 state.o:        state.c state.h
28
29 unif.o:         unif.c unif.h file.h cart.h
30
31 memory.o:       memory.c memory.h
32
33 cart.o:         cart.c cart.h types.h version.h fce.h
34 fce.o:          fce.c *.h
35 fds.o:          fds.h x6502.h types.h version.h fce.h svga.h sound.h general.h state.h file.h memory.h
36 ines.o:         ines.c ines.h x6502.h types.h fce.h ines.h version.h svga.h general.h state.h file.h memory.h cart.h crc32.h banksw.h
37 input.o:        input.c input.h x6502.h types.h fce.h sound.h netplay.h driver.h svga.h
38
39 crc32.o:        crc32.c crc32.h types.h
40 endian.o:       endian.c endian.h types.h
41 file.o:         file.c file.h types.h endian.h memory.h driver.h
42 general.o:      general.c general.h types.h state.h version.h
43
44 cheat.o:        cheat.c driver.h
45
46 debug.o:        debug.c debug.h fce.h