aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpowergold1 <lstaut@hotmail.de>2016-09-19 02:55:14 +0200
committerpowergold1 <lstaut@hotmail.de>2016-09-19 02:55:14 +0200
commit5661a0746389556c2645024d7215a48c7ce72412 (patch)
treefe1a9781a33b3a549ff7c753003ec20283de9eec
parent901698d6fa5fae38c1804643570c9b81fb83f6d7 (diff)
downloadttfe-5661a0746389556c2645024d7215a48c7ce72412.tar.xz
added makefile
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..8e38bbe
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+CC=clang
+FLAGS=-g -Wall -pedantic -Wextra -Wconversion\
+ -Waggregate-return -Wcast-align -Wcast-qual -Wchar-subscripts\
+ -Wdisabled-optimization -Wimplicit -Wimport -Winline\
+ -Winit-self -Wlong-long -Wmissing-braces\
+ -Wmissing-field-initializers -Wparentheses -Wunreachable-code\
+ -Wunused -Wunused-value -Wunused-variable -Wwrite-strings
+
+OBJS=$(SOURCES:.c=.o)
+SOURCES=$(wildcard *.c)
+EXEC=ttfe
+
+all: $(OBJS)
+ $(CC) $(FLAGS) $(OBJS) -o $(EXEC)
+
+%.o: %.c
+ $(CC) -c $(FLAGS) $< -o $@
+
+
+clean:
+ rm -rf *.o
+ rm $(EXEC)