24 lines
409 B
Makefile
24 lines
409 B
Makefile
|
cc = clang
|
||
|
|
||
|
cflags = -g -O0 -pthread \
|
||
|
-Wall \
|
||
|
-Wshadow \
|
||
|
-Wno-pragma-once-outside-header \
|
||
|
-Wpointer-arith \
|
||
|
-Wstrict-prototypes \
|
||
|
-Wmissing-prototypes \
|
||
|
-Wfloat-equal \
|
||
|
-Werror=implicit-function-declaration
|
||
|
|
||
|
srcs = $(wildcard src/**/*.c test/*.c)
|
||
|
hdrs = $(wildcard **/*.h)
|
||
|
|
||
|
test_bin = axtest
|
||
|
|
||
|
all: ${test_bin}
|
||
|
|
||
|
${test_bin}: ${srcs} ${hdrs}
|
||
|
${cc} ${cflags} ${srcs} -o ${test_bin}
|
||
|
|
||
|
.PHONY: all
|