OSDN Git Service

scrolling enabled. now opening demo screen is all displayed correctly.
[motonesemu/motonesemu.git] / emulator / Makefile
1
2 BIN=motonesemu
3
4 OBJS=emu-main.o clock.o bus.o cpu.o \
5          rom.o cartridge.o 6502core.o debug.o ram.o \
6          ppu.o dma.o ioapu.o
7          
8 #        kbhit.o
9
10
11 #LIBS=-L../libs -pthread -lrt -lncurses
12 LIBS=-L../libs -L./ppucore -lmotones -lppucore -pthread -lrt
13
14 INCLUDE=-I../include -Ippucore
15
16 CFLAGS=-g $(INCLUDE) -Wall
17
18 all:    $(BIN)
19
20 $(BIN): $(OBJS) ../libs ppucore/libppucore.a
21         gcc -o $(BIN) $(OBJS) $(LIBS)
22
23 ppucore/libppucore.a: ppucore/*.c
24         make -C ppucore
25
26 .c.o: 
27         gcc $(CFLAGS) -c $<
28
29 6502core.o: 6502core.c
30         ./opcode-gen.sh
31         gcc $(CFLAGS) -c $<
32
33 test:
34         make
35         ./test.sh
36
37 clean:
38         make -C ppucore clean
39         -rm $(OBJS) $(BIN) opcode \
40                 
41 tag:
42         cd .. && make tag
43
44