From ebb835f24e653bb40ea8ae6fcae920eaeff20c86 Mon Sep 17 00:00:00 2001 From: <> Date: Tue, 21 Mar 2017 15:23:29 -0700 Subject: [PATCH] Added make file. --- makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 makefile diff --git a/makefile b/makefile new file mode 100644 index 0000000..b2d222a --- /dev/null +++ b/makefile @@ -0,0 +1,18 @@ +CFLAGS= -Ofast + +all: cts tcolor + +cts: main.o + gcc colors.o sqlite3.o dbquery.o main.o -o cts + +main.o: dbquery.o main.c + gcc -c main.c -I"includes" $(CFLAGS) + +dbquery.o: colors.o includes/dbquery.c + gcc -c includes/dbquery.c $(CFLAGS) + +colors.o: includes/colors.c + gcc -c includes/colors.c $(CFLAGS) + +tcolor: includes/colors.c tcolor.c + gcc includes/colors.c tcolor.c -o tcolor -I"includes" -g \ No newline at end of file