1 #-------------------------------------------------------------------------
3 # Makefile for src/bin/pgevent
5 # Copyright (c) 1996-2009, PostgreSQL Global Development Group
7 #-------------------------------------------------------------------------
9 PGFILEDESC
= "Eventlog message formatter"
11 subdir
= src
/bin
/pgevent
12 top_builddir
= ..
/..
/..
13 include $(top_builddir
)/src
/Makefile.global
15 ifeq ($(PORTNAME
), win32
)
17 OBJS
=pgevent.o pgmsgevent.o
22 install: all install-lib
24 pgevent.dll
: pgevent.def
$(OBJS
)
25 $(DLLWRAP
) --def
$< -o
$(NAME
) $(OBJS
)
27 pgmsgevent.o
: pgmsgevent.rc win32ver.rc
28 $(WINDRES
) $< -o
$@
--include-dir
=$(top_builddir
)/src
/include --include-dir
=$(top_srcdir
)/src
/include --include-dir
=$(srcdir)
33 $(INSTALL_STLIB
) $< '$(DESTDIR)$(libdir)/$<'
36 rm -f
'$(DESTDIR)$(libdir)/$(NAME)'
39 rm -f
$(OBJS
) $(NAME
) win32ver.rc