aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..fa24083
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,26 @@
+TARGET=otc
+
+CC=clang #--std=c99
+CXX=clang #--std=c++11
+CFLAGS=-Wall -Wextra -Werror -g
+LIBS=
+BLDFLAGS=-O2 -g
+
+DEPS=main.c agenda_entry.c date.c
+HEAD=agenda_entry.h date.h
+OBJ=${DEPS:.c=.o}
+
+.PHONY: all clean $(TARGET)
+
+all: $(TARGET)
+
+$(OBJ): $(HEAD)
+
+%.o: %.c
+ $(CC) -o $@ -c $< $(CFLAGS)
+
+$(TARGET): $(OBJ)
+ $(CC) -o $@ $(OBJ) $(LIBS) $(BLDFLAGS)
+
+clean:
+ rm -f *.o *~ *.core $(OBJ) $(TARGET)