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 741B

1234567891011121314151617181920212223242526272829303132333435363738
  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
  7. #LDFLAGS=-s -melf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -lSDL2
  8. else
  9. ASFLAGS=-felf64 -g -F dwarf -l $(TARGET).lst
  10. #LDFLAGS=-g -melf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -lSDL
  11. LDFLAGS=-g -melf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2
  12. endif
  13. ifeq ($(SDL), 2)
  14. LDFLAGS += -lSDL2
  15. ASFLAGS += -DSDL2=1
  16. else
  17. LDFLAGS += -lSDL
  18. ASFLAGS += -DSDL1=1
  19. endif
  20. OBJ=$(TARGET).o
  21. SRC=$(TARGET).asm
  22. all: $(TARGET)
  23. $(TARGET): $(OBJ)
  24. ld $(LDFLAGS) $< -o $@
  25. $(OBJ): $(SRC) sdl.asm Makefile
  26. $(NASM) $(ASFLAGS) $<
  27. .PHONY: clean
  28. clean:
  29. -rm -fv $(TARGET) $(OBJ) $(TARGET).lst