Emulator core geared towards emulating ZZT and Super ZZT.
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.

Makefile 673B

123456789101112131415161718192021222324252627282930313233343536
  1. OBJDIR = obj
  2. RESDIR = res
  3. SRCDIR = src
  4. BUILDDIR = build
  5. CC = gcc
  6. CFLAGS = -g -O2 -flto -std=c11 -Wall
  7. LDFLAGS = -g -O2
  8. LIBS = -lGL -lSDL2 -lSDL2main -lpng
  9. TARGET = $(BUILDDIR)/zeta86
  10. OBJS = $(OBJDIR)/8x14.o \
  11. \
  12. $(OBJDIR)/cpu.o \
  13. $(OBJDIR)/zzt.o \
  14. $(OBJDIR)/asset_loader.o \
  15. $(OBJDIR)/audio_stream.o \
  16. \
  17. $(OBJDIR)/posix_vfs.o \
  18. $(OBJDIR)/frontend_sdl.o \
  19. $(OBJDIR)/render_software.o \
  20. $(OBJDIR)/screenshot_writer.o
  21. all: $(TARGET)
  22. $(TARGET): $(OBJS)
  23. $(CC) -o $@ $(LDFLAGS) $(LIBS) $(OBJS)
  24. $(OBJDIR)/%.o: $(SRCDIR)/%.c
  25. $(CC) $(CFLAGS) -c -o $@ $<
  26. $(OBJDIR)/8x14.o: $(OBJDIR)/8x14.c
  27. $(CC) -g -c -o $@ $<
  28. $(OBJDIR)/8x14.c: $(RESDIR)/8x14.bin
  29. xxd -i $< > $@