Umorna -- Tiny game written to test 'chads' library, it uses assets from itch.io...
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.

34 lines
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}