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.

36 lines
542B

  1. CC = gcc
  2. LD = $(CC)
  3. CFLAGS = -Wall -Werror -Wshadow -I.. -g #-DE6502_DEBUG
  4. LDFLAGS =
  5. OBJDIR = obj
  6. SRCDIR = src
  7. BINDIR = bin
  8. # nese
  9. TARGET_1 = nese
  10. LDLIBS_1 =
  11. SRC_SRCS_1 = nese.c ines.c nes.c ppu.c
  12. EXT_SRCS_1 = e6502/e6502.c
  13. SRCS_1 = $(SRC_SRCS_1:%=$(SRCDIR)/%) $(EXT_SRCS_1)
  14. OBJS_1 = $(SRCS_1:%.c=$(OBJDIR)/%.o)
  15. all: $(BINDIR)/$(TARGET_1)
  16. clean: ; rm -rf $(OBJDIR) $(BINDIR)
  17. $(BINDIR)/$(TARGET_1): $(OBJS_1)
  18. @mkdir -p $(@D)
  19. $(LD) $(LDFLAGS) $^ $(LDLIBS_1) -o $@
  20. $(OBJDIR)/%.o: %.c
  21. @mkdir -p $(@D)
  22. $(CC) $(CFLAGS) -c $< -o $@