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

123456789101112131415161718192021222324252627282930313233343536373839
  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. DEPS=sdl.asm yaglitch_op.asm yaglitch_ui.asm
  23. all: $(TARGET)
  24. $(TARGET): $(OBJ)
  25. ld $(LDFLAGS) $< -o $@
  26. $(OBJ): $(SRC) $(DEPS) Makefile
  27. $(NASM) $(ASFLAGS) $<
  28. .PHONY: clean
  29. clean:
  30. -rm -fv $(TARGET) $(OBJ) $(TARGET).lst