dvorak_typing_practice/Makefile

30 lines
550 B
Makefile
Raw Permalink Normal View History

2023-12-14 08:00:08 +00:00
ifdef RELEASE
CXX_FLAGS = -Wall -Wextra -Wpedantic -O3 -DNDEBUG
else
CXX_FLAGS = -Wall -Wextra -Wpedantic -Og -g
endif
OBJDIR = objects
2023-12-14 09:47:42 +00:00
HEADERS = src/screen.h
SOURCES = src/main.cc \
src/screen.cc
2023-12-14 08:00:08 +00:00
OBJECTS = $(addprefix ${OBJDIR}/,$(subst .cc,.o,${SOURCES}))
all: dvorak_typing_practice
dvorak_typing_practice: ${OBJECTS}
${CXX} ${CXX_FLAGS} -o dvorak_typing_practice $^ -lraylib
2023-12-14 09:47:42 +00:00
${OBJDIR}/%.o: %.cc ${HEADERS}
2023-12-14 08:00:08 +00:00
@mkdir -p $$(dirname $@)
${CXX} ${CXX_FLAGS} -c -o $@ $<
.PHONY: clean
clean:
rm -rf ${OBJDIR}
rm -f dvorak_typing_practice