Linux x86_64 implementation of libglitch : https://github.com/erlehmann/libglitch.git
x86-64
nasm
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 492B

12345678910111213141516171819202122232425262728
  1. DEBUG=0
  2. TARGET=yaglitch
  3. NASM=nasm
  4. ifeq ($(DEBUG), 0)
  5. ASFLAGS=-felf64
  6. LDFLAGS=-s -melf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -lSDL
  7. else
  8. ASFLAGS=-felf64 -g -F dwarf -l $(TARGET).lst
  9. LDFLAGS=-g -melf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -lSDL
  10. endif
  11. OBJ=$(TARGET).o
  12. SRC=$(TARGET).asm
  13. all: $(TARGET)
  14. $(TARGET): $(OBJ)
  15. ld $(LDFLAGS) $< -o $@
  16. $(OBJ): $(SRC) sdl.asm Makefile
  17. $(NASM) $(ASFLAGS) $<
  18. .PHONY: clean
  19. clean:
  20. -rm -fv $(TARGET) $(OBJ) $(TARGET).lst