From c410f7de513390970eed91574747f93722569710 Mon Sep 17 00:00:00 2001 From: Maalvika Bhat <42943695+maalvikabhat@users.noreply.github.com> Date: Tue, 7 Apr 2020 13:12:57 -0400 Subject: [PATCH] Fixed the makefile for word_count, fixed some warnings in word_count.c --- exercises/ex08/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 exercises/ex08/Makefile diff --git a/exercises/ex08/Makefile b/exercises/ex08/Makefile new file mode 100644 index 00000000..97bf1c70 --- /dev/null +++ b/exercises/ex08/Makefile @@ -0,0 +1,7 @@ +CFLAGS=-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -lglib-2.0 + +ex_compile: ex_compile.c + cc ex_compile.c $(shell pkg-config --cflags --libs glib-2.0) -o ex_compile + +word_count: word_count.c + gcc -o word_count word_count.c -g -Wall $(CFLAGS)