
# Makefile for GtkScare.
# If GtkScare does not compile, check whether the includes and library
# paths are set correctly for your system in the makefile. If not,
# correct them and use appropriate paths
#
# GtkScare Copyright Pallav Nawani
# Scare runner itself is copyright Simon Baldwin
#

SOURCES = callbacks.c callbacks.h debug_callbacks.c debug_callbacks.h interface.c  interface.h  main.c  support.c support.h gtkscare.h gtkscare.c gtkscare_image.h config.c config.h

OBJECTFILES = callbacks.o interface.o main.o support.o gtkscare.o debug_callbacks.o config.o

# edit these if necessary
LIBPATH = `pkg-config --libs gtk+-2.0`
INCPATH = `pkg-config --cflags gtk+-2.0`

# You will likely not need to edit anything below this line.
LIBRARIES = -lz
CFLAGS = -O3 -Wall -Wunused
PROGRAM = gtkscare
COMPILE = $(CC) $(CFLAGS)
LINK = $(CC) -o $(PROGRAM) $(CFLAGS)
CC = gcc


.SUFFIXES:
.SUFFIXES: .S .c .cc .o .s
.s.o:
	$(COMPILE) -c $< $(INCPATH)
.S.o:
	$(COMPILE) -c $< $(INCPATH)
.cc.o:
	$(COMPILE) -c $< $(INCPATH)
.c.o:
	$(COMPILE) -c $< $(INCPATH)


all: gtkscare

gtkscare: $(OBJECTFILES)
	$(LINK) ../*.o $(OBJECTFILES) $(INCPATH) $(LIBPATH) $(LIBRARIES)

clean:
	rm -f *.o $(PROGRAM)


