diff --git a/Makefile b/Makefile index 9c3cafa..db2cf58 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,12 @@ CC = gcc LIB = -lbluetooth -lnotify -INC = -I /usr/include/glib-2.0 -I /usr/lib/glib-2.0/include -I /usr/include/gdk-pixbuf-2.0 +INC = $(shell pkg-config --cflags gdk-pixbuf-2.0) BASE = lampify INST = /usr/local/bin/ CFLAG = -Wall -Ofast all: - $(CC) $(CFLAG) $(INC) $(LIB) -o $(BASE) $(BASE).c + $(CC) $(BASE).c $(CFLAG) $(INC) $(LIB) -o $(BASE) clean: rm -f $(BASE)