18 lines
311 B
Makefile
18 lines
311 B
Makefile
CFLAGS=-lm -g -Wall
|
|
|
|
.PHONY := gen_data main
|
|
|
|
gen_data: build/gen_data
|
|
main: build/main
|
|
|
|
build/gen_data: src/gen_data.c
|
|
mkdir -p build
|
|
gcc -o build/gen_data src/gen_data.c $(CFLAGS) -O0
|
|
|
|
build/main: src/main.c src/json_parser.c
|
|
mkdir -p build
|
|
gcc -o build/main src/main.c $(CFLAGS) -O0
|
|
|
|
clean:
|
|
rm -r build
|