# For Debian packaging
DESTDIR =

# where to install this program
PREFIX = $(DESTDIR)/usr/X11R6

# no user serviceable parts below this line
# optimization cflags
CFLAGS = -O2 -Wall `pkg-config gtk+-2.0 --cflags` -lX11 -lm ${EXTRA}
# profiling cflags
# CFLAGS=-ansi -pedantic -Wall -pg -O3 `gtk-config --cflags` ${EXTRA} -DPRO
# test coverage cflags
# CFLAGS=-fprofile-arcs -ftest-coverage -Wall -ansi -pedantic -g `gtk-config --cflags` ${EXTRA} -DPRO


CC = gcc
SHELL = sh
OBJS = fishmon.o
LIBS = `pkg-config gtk+-2.0 --libs`
INSTALL = -m 755

all: wmfishtime

wmfishtime: $(OBJS)
	$(CC) $(CFLAGS) -o wmfishtime $(OBJS) $(LIBS)

clean:
	rm -rf wmfishtime *.o *.bb* *.gcov gmon.* *.da *~ .xvpics

# You're going to have to be root to do this!
install:
	install $(INSTALL) wmfishtime $(PREFIX)/bin
	install $(INSTALL) wmfishtime.1 $(PREFIX)/man/man1
