# 
# This file is a demo designed for Internet Tablet '2008 Summer School
#
# This code example is licensed under a MIT-style license
# Copyright (c) 2008 PetrSU Centre of Mobile and Wireless Systems
#
      
CC = gcc -Wall

pkg_packages := gtk+-2.0

targets = gtk-first

PKG_CFLAGS := $(shell pkg-config --cflags $(pkg_packages))
PKG_LDFLAGS := $(shell pkg-config --libs $(pkg_packages))

.PHONY: all
all : $(targets)

gtk-first : gtk-first.o
	$(CC) gtk-first.o -o gtk-first $(PKG_LDFLAGS)

gtk-first.o : gtk-first.c
	$(CC) -c gtk-first.c -o gtk-first.o $(PKG_CFLAGS)

.PHONY: clean
clean:
	rm -f $(targets) *.o
