diff Makefile @ 0:f5e03fc667f8

initial commit
author Pavol Rusnak <stick@gk2.sk>
date Mon, 26 Sep 2011 18:52:04 +0200
parents
children 9126094c5ef0
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile	Mon Sep 26 18:52:04 2011 +0200
@@ -0,0 +1,16 @@
+CC=gcc
+OBJS=main.o notify.o packagekit.o
+CFLAGS=$(shell pkg-config --cflags packagekit-glib2 gtk+-3.0) -Wall -DI_KNOW_THE_PACKAGEKIT_GLIB2_API_IS_SUBJECT_TO_CHANGE
+LDFLAGS=$(shell pkg-config --libs packagekit-glib2 gtk+-3.0) -lnotify
+NAME=pk-update-icon
+
+all: $(NAME)
+
+$(NAME): $(OBJS)
+	$(CC) $(LDFLAGS) $(OBJS) -o $(NAME)
+
+%.o: %.c
+	$(CC) $(CFLAGS) -c $< -o $@
+
+clean:
+	rm -f $(OBJS) $(NAME)