Skip to content

Commit

Permalink
Fixed the makefile for word_count, fixed some warnings in word_count.c
Browse files Browse the repository at this point in the history
  • Loading branch information
maalvikabhat authored Apr 7, 2020
1 parent a98028f commit c410f7d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions exercises/ex08/Makefile
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit c410f7d

Please sign in to comment.