mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-18 18:44:06 +08:00
49 lines
859 B
Makefile
49 lines
859 B
Makefile
#
|
|
# $Header: /cvsroot/pgsql/contrib/vacuumlo/Makefile,v 1.3 2000/06/15 18:55:31 momjian Exp $
|
|
#
|
|
|
|
TOPDIR=../..
|
|
|
|
include ../Makefile.global
|
|
|
|
NAME = vacuumlo
|
|
|
|
PROGRAM = $(NAME)
|
|
OBJS = $(NAME).o
|
|
DOCS = $(NAME).doc
|
|
SQLS =
|
|
BINS = $(PROGRAM)
|
|
EXAMPLES=
|
|
MODS =
|
|
|
|
CFLAGS += -I$(LIBPQDIR)
|
|
|
|
OTHER_CLEAN =
|
|
|
|
all: $(PROGRAM)
|
|
|
|
$(PROGRAM): $(OBJS) $(LIBPGEASYDIR)/libpgeasy.a
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBPGEASY)
|
|
|
|
install: install_doc install_bin
|
|
|
|
install_doc:
|
|
for inst_file in $(DOCS); do \
|
|
$(INSTALL) $(INSTL_LIB_OPTS) $$inst_file $(CONTRIB_DOCDIR); \
|
|
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
|