mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
To fix the perpetually broken makefiles in the contrib tree, I have
written a generic framework of rules that the contrib makefiles can use instead of writing their own each time. You only need to set a few variables and off you go.
This commit is contained in:
@ -1,34 +1,12 @@
|
||||
#
|
||||
# $Header: /cvsroot/pgsql/contrib/pg_logger/Attic/Makefile,v 1.1 2001/02/11 02:18:27 momjian Exp $
|
||||
#
|
||||
# $Header: /cvsroot/pgsql/contrib/pg_logger/Attic/Makefile,v 1.2 2001/09/06 10:49:30 petere Exp $
|
||||
|
||||
subdir = contrib/pg_logger
|
||||
top_builddir = ../..
|
||||
include $(top_builddir)/src/Makefile.global
|
||||
|
||||
PROGRAM = pg_logger
|
||||
OBJS = pg_logger.o
|
||||
|
||||
all: pg_logger
|
||||
DOCS = README.pg_logger
|
||||
|
||||
pg_logger: $(OBJS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) -o $@
|
||||
|
||||
install: all installdirs
|
||||
$(INSTALL_PROGRAM) pg_logger$(X) $(bindir)
|
||||
$(INSTALL_DATA) README.pg_logger $(docdir)/contrib
|
||||
|
||||
installdirs:
|
||||
$(mkinstalldirs) $(bindir) $(docdir)/contrib
|
||||
|
||||
uninstall:
|
||||
rm -f $(bindir)/pg_logger$(X) $(docdir)/contrib/README.pg_logger
|
||||
|
||||
clean distclean maintainer-clean:
|
||||
rm -f pg_logger$(X) $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM -MG $(CFLAGS) *.c > depend
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
include $(top_srcdir)/contrib/contrib-global.mk
|
||||
|
Reference in New Issue
Block a user