
# 
#     PostGraph -- Graph data management in PostgreSQL
# 
#     Copyright (C) 2005, 2006  Ruey-Lung Hsiao,  D.S. Parker
#     (rlhsiao@cs.ucla.edu, stott@cs.ucla.edu)
# 
#     UCLA Center for Computational Biology
#     635 Charles Young Drive South, Suite 225
#     Los Angeles, CA 90095-7332  USA
# 
#     UCLA Computer Science Dept.
#     3532 Boelter Hall
#     Los Angeles, CA 90095-1596  USA
# 
#     This library is free software; you can redistribute it and/or
#     modify it under the terms of the GNU Lesser General Public License
#     as published by the Free Software Foundation; either version 2.1 of
#     the License, or (at your option) any later version.
# 
#     This library 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 Lesser General Public License for more details.
# 
#     You should have received a copy of the GNU Lesser General Public
#     License along with this library; if not, write to the
#     Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
#     Boston, MA  02110-1301  USA
# 

MODULE_big = graph
OBJS = graph.o graph_op.o g.o
DATA_built = graph.sql
DOCS = README.graph
REGRESS = graph

EXTRA_CLEAN = graph.o graph_op.o g.o

ifdef USE_PGXS
PGXS = $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/graph
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif

ac_link='g++ -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'

g.o:	graph_op.hpp g.cpp
	g++ -O2 -Wall -Wpointer-arith -Wendif-labels -fno-strict-aliasing -fpic -D_GNU_SOURCE -c -o g.o  g.cpp
