aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index fa24083..a5fc211 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,18 @@
-TARGET=otc
+UNAME := $(shell uname)
+
+ifeq ($(UNAME), Linux)
+CC=clang --std=gnu99
+CXX=clang --std=gnu++11
+else
+CC=clang --std=c99
+CXX=clang --std=c++11
+endif
-CC=clang #--std=c99
-CXX=clang #--std=c++11
CFLAGS=-Wall -Wextra -Werror -g
LIBS=
BLDFLAGS=-O2 -g
+TARGET=otc
DEPS=main.c agenda_entry.c date.c
HEAD=agenda_entry.h date.h
OBJ=${DEPS:.c=.o}