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.
20 lines
400 B
20 lines
400 B
basic_flags := -std=c99 -Wall -Wpedantic -Wextra
|
|
debug_flags := -DDEBUG -O0 -ggdb -feliminate-unused-debug-symbols
|
|
library_flags := -lncurses
|
|
source_files := main.c
|
|
|
|
all: debug
|
|
|
|
build:
|
|
mkdir $@
|
|
|
|
build/debug build/release: | build
|
|
mkdir $@
|
|
|
|
.PHONY: debug
|
|
debug: | build/debug
|
|
cc $(basic_flags) $(debug_flags) $(source_files) -o build/debug/acro $(library_flags)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf build
|
|
|