2000-06-16 02:55:34 +08:00
|
|
|
#
|
2000-09-01 00:12:35 +08:00
|
|
|
# $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/Makefile,v 1.6 2000/08/31 16:09:05 petere Exp $
|
2000-06-16 02:55:34 +08:00
|
|
|
#
|
2000-06-12 12:01:52 +08:00
|
|
|
|
2000-07-09 21:14:19 +08:00
|
|
|
subdir = contrib/pg_dumplo
|
|
|
|
top_builddir = ../..
|
|
|
|
include ../../src/Makefile.global
|
2000-06-12 12:01:52 +08:00
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
OBJS = main.o lo_export.o lo_import.o utils.o
|
2000-09-01 00:12:35 +08:00
|
|
|
CFLAGS += -I$(libpq_srcdir)
|
2000-06-12 12:01:52 +08:00
|
|
|
|
2000-07-09 21:14:19 +08:00
|
|
|
all: pg_dumplo
|
2000-06-16 02:55:34 +08:00
|
|
|
|
2000-09-01 00:12:35 +08:00
|
|
|
pg_dumplo: $(OBJS) $(libpq_builddir)/libpq.a
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS) $(libpq)
|
2000-06-16 02:55:34 +08:00
|
|
|
|
2000-07-09 21:14:19 +08:00
|
|
|
install: all installdirs
|
|
|
|
$(INSTALL_PROGRAM) pg_dumplo$(X) $(bindir)
|
|
|
|
$(INSTALL_DATA) README.pg_dumplo $(docdir)/contrib
|
2000-06-16 02:55:34 +08:00
|
|
|
|
2000-07-09 21:14:19 +08:00
|
|
|
installdirs:
|
|
|
|
$(mkinstalldirs) $(bindir) $(docdir)/contrib
|
2000-06-16 02:55:34 +08:00
|
|
|
|
2000-07-09 21:14:19 +08:00
|
|
|
uninstall:
|
|
|
|
rm -f $(bindir)/pg_dumplo$(X) $(docdir)/contrib/README.pg_dumplo
|
|
|
|
|
|
|
|
clean distclean maintainer-clean:
|
|
|
|
rm -f pg_dumplo $(OBJS)
|
2000-06-16 02:55:34 +08:00
|
|
|
|
|
|
|
depend dep:
|
|
|
|
$(CC) -MM -MG $(CFLAGS) *.c > depend
|
2000-06-12 12:01:52 +08:00
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
ifeq (depend,$(wildcard depend))
|
|
|
|
include depend
|
|
|
|
endif
|