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.
|
- .PHONY: all debug release clean
-
- CFLAGS := -std=gnu17 -pedantic -Wall -Wextra ${CFLAGS}
- LDLIBS :=
-
- sources := source/engine.c \
- source/game.c \
- source/main.c \
- source/menu.c \
- source/render.c \
- source/source.c \
- source/system.c
-
- obj = ${sources:.c=.o}
- dep = ${sources:.c=.d}
-
- .c.o:
- $(CC) -MD -MP $(CFLAGS) -c $< -o $@
-
- all: debug
-
- debug: CFLAGS += -g
- release: CFLAGS += -O3
-
- debug release: umorna
-
- umorna: $(obj)
- $(CC) $(LDLIBS) $< -o $@
-
- clean:
- rm -f umorna ${obj} ${dep}
-
- -include ${dep}
|