Umorna -- Tiny game written to test 'chads' library, it uses assets from itch.io...
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

34 wiersze
565B

  1. .PHONY: all debug release clean
  2. CFLAGS := -std=gnu17 -pedantic -Wall -Wextra ${CFLAGS}
  3. LDLIBS :=
  4. sources := source/engine.c \
  5. source/game.c \
  6. source/main.c \
  7. source/menu.c \
  8. source/render.c \
  9. source/source.c \
  10. source/system.c
  11. obj = ${sources:.c=.o}
  12. dep = ${sources:.c=.d}
  13. .c.o:
  14. $(CC) -MD -MP $(CFLAGS) -c $< -o $@
  15. all: debug
  16. debug: CFLAGS += -g
  17. release: CFLAGS += -O3
  18. debug release: umorna
  19. umorna: $(obj)
  20. $(CC) $(LDLIBS) $< -o $@
  21. clean:
  22. rm -f umorna ${obj} ${dep}
  23. -include ${dep}