21 lines
391 B
Makefile
21 lines
391 B
Makefile
TARGET := ke
|
|
KE_VERSION := devel
|
|
|
|
|
|
CFLAGS := -Wall -Wextra -pedantic -Wshadow -Werror -std=c99 -g
|
|
CFLAGS += -D_DEFAULT_SOURCE -D_XOPEN_SOURCE
|
|
CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
|
|
|
LDFLAGS := -fsanitize=address
|
|
|
|
all: $(TARGET) test.txt
|
|
|
|
$(TARGET): main.c
|
|
$(CC) $(CFLAGS) -o $(TARGET) $(LDFLAGS) main.c
|
|
|
|
clean:
|
|
rm -f $(TARGET)
|
|
|
|
.PHONY: test.txt
|
|
test.txt:
|
|
cp test.txt.bak $@
|