Mercurial > projects > pk-update-icon
annotate Makefile @ 6:7539e6e1c299
fix desktop file and arguments order in Makefile
author | Pavol Rusnak <stick@gk2.sk> |
---|---|
date | Thu, 06 Oct 2011 16:02:19 +0200 |
parents | e4ff04df085c |
children | 56a7ed833d0a |
rev | line source |
---|---|
0 | 1 CC=gcc |
2 OBJS=main.o notify.o packagekit.o | |
5
e4ff04df085c
use libnotify's pkgconfig for buildflags
Pavol Rusnak <stick@gk2.sk>
parents:
4
diff
changeset
|
3 CFLAGS=$(shell pkg-config --cflags gtk+-2.0 libnotify packagekit-glib2) -Wall -DI_KNOW_THE_PACKAGEKIT_GLIB2_API_IS_SUBJECT_TO_CHANGE |
e4ff04df085c
use libnotify's pkgconfig for buildflags
Pavol Rusnak <stick@gk2.sk>
parents:
4
diff
changeset
|
4 LDFLAGS=$(shell pkg-config --libs gtk+-2.0 libnotify packagekit-glib2) |
0 | 5 NAME=pk-update-icon |
6 | |
7 all: $(NAME) | |
8 | |
9 $(NAME): $(OBJS) | |
6
7539e6e1c299
fix desktop file and arguments order in Makefile
Pavol Rusnak <stick@gk2.sk>
parents:
5
diff
changeset
|
10 $(CC) $(OBJS) $(LDFLAGS) -o $(NAME) |
0 | 11 |
12 %.o: %.c | |
6
7539e6e1c299
fix desktop file and arguments order in Makefile
Pavol Rusnak <stick@gk2.sk>
parents:
5
diff
changeset
|
13 $(CC) -c $< $(CFLAGS) -o $@ |
0 | 14 |
15 clean: | |
16 rm -f $(OBJS) $(NAME) |