18 lines
339 B
Makefile
18 lines
339 B
Makefile
CFLAGS=-lm -g -Wall -Walloc-size-larger-than=-1
|
|
|
|
.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) -O2
|
|
|
|
build/main: src/main.c src/json_parser.c
|
|
mkdir -p build
|
|
gcc -o build/main src/main.c $(CFLAGS) -O2
|
|
|
|
clean:
|
|
rm -r build
|