projects/pk-update-icon

view Makefile @ 5:e4ff04df085c

use libnotify's pkgconfig for buildflags
author Pavol Rusnak <stick@gk2.sk>
date Thu Oct 06 15:38:49 2011 +0200 (2011-10-06)
parents 9126094c5ef0
children 7539e6e1c299
line source
1 CC=gcc
2 OBJS=main.o notify.o packagekit.o
3 CFLAGS=$(shell pkg-config --cflags gtk+-2.0 libnotify packagekit-glib2) -Wall -DI_KNOW_THE_PACKAGEKIT_GLIB2_API_IS_SUBJECT_TO_CHANGE
4 LDFLAGS=$(shell pkg-config --libs gtk+-2.0 libnotify packagekit-glib2)
5 NAME=pk-update-icon
7 all: $(NAME)
9 $(NAME): $(OBJS)
10 $(CC) $(LDFLAGS) $(OBJS) -o $(NAME)
12 %.o: %.c
13 $(CC) $(CFLAGS) -c $< -o $@
15 clean:
16 rm -f $(OBJS) $(NAME)