aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index ac99cf1..8a71ad6 100644
--- a/Makefile
+++ b/Makefile
@@ -6,16 +6,17 @@ CC=clang --std=gnu99
CC=clang --std=c99
.endif
-CFLAGS=-Wall -Wextra -Werror -g
+CFLAGS=-Wall -Wextra -Werror -Weverything -pedantic
LIBS=
-BLDFLAGS=-O2 -g
+BLDFLAGS=-g
+RELFLAGS=-O2
TARGET=otc
DEPS=main.c agenda_entry.c date.c
HEAD=agenda_entry.h date.h
OBJ=${DEPS:.c=.o}
-.PHONY: all clean $(TARGET)
+.PHONY: all clean release $(TARGET)
all: $(TARGET)
@@ -27,5 +28,8 @@ $(OBJ): $(HEAD)
$(TARGET): $(OBJ)
$(CC) -o $@ $(OBJ) $(LIBS) $(BLDFLAGS)
+release: $(OBJ)
+ $(CC) -o $(TARGET) $(OBJ) $(LIBS) $(RELFLAGS)
+
clean:
rm -f *.o *~ *.core $(OBJ) $(TARGET)