#    pgfe 
#
#    Copyright(C) 2002 Adam Siegel
#
#    This program is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 2 of the License, or
#    (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.

EXE = pgfe 
CFLAGS = -g -c
CC = gcc

INCPATH = -I. `gtk-config --cflags` 
LIBPATH = 
LIBS = `gtk-config --libs` -lpq

OBJS = \
	main.o \
	support.o \
	interface.o \
	callbacks.o \

$(EXE): $(OBJS)
	$(CC) $(OBJS) $(LIBPATH) $(LIBS) -o $(EXE)

%.o: %.c
	$(CC) $(CFLAGS) $(INCPATH) $<

clean:
	rm -rf $(OBJS) $(EXE) core *~ *.bak

install:
	cp $(EXE) /usr/local/bin


