summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 0bdfd44..3fe334f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,14 @@
CC = gcc
-CFLAGS = -g -Wall -Wpedantic
+CFLAGS = -g -Wall -Wpedantic -std=c89
TARGET = parc
-BASENM = buffer piece-table
+BASENM = piece-table
SRC = $(addsuffix .c, $(addprefix src/, $(BASENM)) )
OBJDIR = out
OBJ = $(addsuffix .o, $(addprefix $(OBJDIR)/, $(BASENM)))
HEADERS = $(wildcard src/*.h)
-TEST := buffer\
- piece-table-print\
+TEST := piece-table-print\
piece-table-delete\
piece-table-insert
TEST_FILES = $(addprefix tests/, $(TEST))
@@ -34,6 +33,7 @@ $(TEST_FILES): $(TARGET) $(TEST_SOURCES) $(HEADERS)
@$(CC) $(CFLAGS) -o $@ $(addsuffix .c, $@) $(OBJ)
@if ./$@ ; then echo "PASS: $@";else echo "FAIL: $@ exit value: $$?"; fi
+check: test
test: $(TEST_FILES)
-.PHONY: clean all test
+.PHONY: clean all test check