19 lines
440 B
Makefile
19 lines
440 B
Makefile
|
PREFIX=
|
||
|
CC ?= gcc
|
||
|
O ?= -O2
|
||
|
CFLAGS=-std=c99 -D_XOPEN_SOURCE=500 -D_GNU_SOURCE -D_POSIX_C_SOURCE=200809L
|
||
|
CWARN=-Wall -Wpedantic -Wextra -Wno-unknown-pragmas -Wno-missing-field-initializers\
|
||
|
-Wno-padded -Wsign-conversion -Wno-missing-noreturn -Wno-cast-qual -Wtype-limits
|
||
|
#CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||
|
G=
|
||
|
|
||
|
all: test
|
||
|
|
||
|
clean:
|
||
|
rm -f test
|
||
|
|
||
|
%: %.c btui.h
|
||
|
$(CC) $(CFLAGS) $(CWARN) $(G) $(O) $< -o $@
|
||
|
|
||
|
.PHONY: all, clean
|