2017-01-03 22:02:00 +00:00
|
|
|
CFLAGS = -Wall -Wpedantic -Ofast -std=gnu99
|
2017-01-03 20:01:18 +00:00
|
|
|
LDFLAGS = -Ofast
|
2017-01-03 19:39:48 +00:00
|
|
|
|
2017-01-03 20:01:18 +00:00
|
|
|
OBJ := 6502-emu.o 6502.o 6850.o
|
2017-01-03 19:39:48 +00:00
|
|
|
|
2017-01-03 20:01:18 +00:00
|
|
|
all: 6502-emu
|
2017-01-03 19:39:48 +00:00
|
|
|
|
2017-01-03 20:01:18 +00:00
|
|
|
debug: CFLAGS += -DDEBUG
|
|
|
|
debug: 6502-emu
|
2017-01-03 19:39:48 +00:00
|
|
|
|
2017-01-03 20:01:18 +00:00
|
|
|
6502-emu: $(OBJ)
|
2017-01-03 19:39:48 +00:00
|
|
|
|
|
|
|
clean:
|
2017-01-03 20:01:18 +00:00
|
|
|
$(RM) 6502-emu $(OBJ)
|
2017-01-03 19:39:48 +00:00
|
|
|
|
|
|
|
test: 6502-emu
|
|
|
|
./6502-emu examples/ehbasic.rom
|