1998-08-11 10:32:00 +08:00
|
|
|
#
|
2000-06-19 21:54:50 +08:00
|
|
|
# $Header: /cvsroot/pgsql/contrib/findoidjoins/Attic/Makefile,v 1.7 2000/06/19 13:53:22 momjian Exp $
|
1998-08-11 10:32:00 +08:00
|
|
|
#
|
2000-01-23 07:05:14 +08:00
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
TOPDIR=../..
|
1998-08-11 10:32:00 +08:00
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
include ../Makefile.global
|
1998-08-11 10:32:00 +08:00
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
NAME = findoidjoins
|
1998-08-11 10:32:00 +08:00
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
PROGRAM = $(NAME)
|
|
|
|
OBJS = $(NAME).o
|
2000-06-19 21:54:50 +08:00
|
|
|
DOCS = README.$(NAME)
|
2000-06-16 02:55:34 +08:00
|
|
|
SQLS =
|
|
|
|
BINS = $(PROGRAM) make_oidjoins_check
|
|
|
|
EXAMPLES=
|
|
|
|
MODS =
|
|
|
|
|
|
|
|
CFLAGS += -I$(LIBPGEASYDIR) -I$(LIBPQDIR)
|
|
|
|
|
|
|
|
OTHER_CLEAN =
|
|
|
|
|
|
|
|
|
|
|
|
all: $(PROGRAM)
|
|
|
|
|
|
|
|
$(PROGRAM): $(OBJS) $(LIBPGEASYDIR)/libpgeasy.a
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBPGEASY)
|
1998-08-11 10:32:00 +08:00
|
|
|
|
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
install: install_doc nstall_bin
|
|
|
|
|
|
|
|
install_doc:
|
|
|
|
for inst_file in $(DOCS); do \
|
2000-06-19 21:54:50 +08:00
|
|
|
$(INSTALL) $(INSTL_LIB_OPTS) $$inst_file $(CONTRIB_DOCDIR); \
|
2000-06-16 02:55:34 +08:00
|
|
|
done
|
|
|
|
|
|
|
|
install_bin:
|
|
|
|
for inst_file in $(BINS); do \
|
|
|
|
$(INSTALL) $(INSTL_EXE_OPTS) $$inst_file $(CONTRIB_BINDIR); \
|
|
|
|
done
|
|
|
|
|
|
|
|
depend dep:
|
|
|
|
$(CC) -MM -MG $(CFLAGS) *.c > depend
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) *~ $(OBJS) $(MODS) $(PROGRAM) depend $(OTHER_CLEAN) core log
|
|
|
|
|
|
|
|
ifeq (depend,$(wildcard depend))
|
|
|
|
include depend
|
|
|
|
endif
|