NESe (pronounced "Nessie") is a NES emulator based on the e6502 emulator, also written in C with a focus on speed and portability for use on embedded platforms, especially ARM.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- CC = gcc
- LD = $(CC)
- CFLAGS = -Wall -Werror -Wshadow -I.. -g #-DE6502_DEBUG
- LDFLAGS =
-
- OBJDIR = obj
- SRCDIR = src
- BINDIR = bin
-
-
- # nese
-
- TARGET_1 = nese
- LDLIBS_1 =
-
- SRC_SRCS_1 = nese.c ines.c nes.c ppu.c
-
- EXT_SRCS_1 = e6502/e6502.c
-
-
- SRCS_1 = $(SRC_SRCS_1:%=$(SRCDIR)/%) $(EXT_SRCS_1)
- OBJS_1 = $(SRCS_1:%.c=$(OBJDIR)/%.o)
-
-
- all: $(BINDIR)/$(TARGET_1)
-
- clean: ; rm -rf $(OBJDIR) $(BINDIR)
-
- $(BINDIR)/$(TARGET_1): $(OBJS_1)
- @mkdir -p $(@D)
- $(LD) $(LDFLAGS) $^ $(LDLIBS_1) -o $@
-
- $(OBJDIR)/%.o: %.c
- @mkdir -p $(@D)
- $(CC) $(CFLAGS) -c $< -o $@
|