annotate Makefile @ 4:9126094c5ef0

use GTK2 as Xfce/LXDE are not yet using GTK3
author Pavol Rusnak <stick@gk2.sk>
date Thu, 06 Oct 2011 15:31:50 +0200
parents f5e03fc667f8
children e4ff04df085c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
f5e03fc667f8 initial commit
Pavol Rusnak <stick@gk2.sk>
parents:
diff changeset
1 CC=gcc
f5e03fc667f8 initial commit
Pavol Rusnak <stick@gk2.sk>
parents:
diff changeset
2 OBJS=main.o notify.o packagekit.o
4
9126094c5ef0 use GTK2 as Xfce/LXDE are not yet using GTK3
Pavol Rusnak <stick@gk2.sk>
parents: 0
diff changeset
3 CFLAGS=$(shell pkg-config --cflags packagekit-glib2 gtk+-2.0) -Wall -DI_KNOW_THE_PACKAGEKIT_GLIB2_API_IS_SUBJECT_TO_CHANGE
9126094c5ef0 use GTK2 as Xfce/LXDE are not yet using GTK3
Pavol Rusnak <stick@gk2.sk>
parents: 0
diff changeset
4 LDFLAGS=$(shell pkg-config --libs packagekit-glib2 gtk+-2.0) -lnotify
0
f5e03fc667f8 initial commit
Pavol Rusnak <stick@gk2.sk>
parents:
diff changeset
5 NAME=pk-update-icon
f5e03fc667f8 initial commit
Pavol Rusnak <stick@gk2.sk>
parents:
diff changeset
6
f5e03fc667f8 initial commit
Pavol Rusnak <stick@gk2.sk>
parents:
diff changeset
7 all: $(NAME)
f5e03fc667f8 initial commit
Pavol Rusnak <stick@gk2.sk>
parents:
diff changeset
8
f5e03fc667f8 initial commit
Pavol Rusnak <stick@gk2.sk>
parents:
diff changeset
9 $(NAME): $(OBJS)
f5e03fc667f8 initial commit
Pavol Rusnak <stick@gk2.sk>
parents:
diff changeset
10 $(CC) $(LDFLAGS) $(OBJS) -o $(NAME)
f5e03fc667f8 initial commit
Pavol Rusnak <stick@gk2.sk>
parents:
diff changeset
11
f5e03fc667f8 initial commit
Pavol Rusnak <stick@gk2.sk>
parents:
diff changeset
12 %.o: %.c
f5e03fc667f8 initial commit
Pavol Rusnak <stick@gk2.sk>
parents:
diff changeset
13 $(CC) $(CFLAGS) -c $< -o $@
f5e03fc667f8 initial commit
Pavol Rusnak <stick@gk2.sk>
parents:
diff changeset
14
f5e03fc667f8 initial commit
Pavol Rusnak <stick@gk2.sk>
parents:
diff changeset
15 clean:
f5e03fc667f8 initial commit
Pavol Rusnak <stick@gk2.sk>
parents:
diff changeset
16 rm -f $(OBJS) $(NAME)