]> granicus.if.org Git - postgresql/blob - src/bin/pgevent/Makefile
Stamp copyrights for year 2011.
[postgresql] / src / bin / pgevent / Makefile
1 #-------------------------------------------------------------------------
2 #
3 # Makefile for src/bin/pgevent
4 #
5 # Copyright (c) 1996-2011, PostgreSQL Global Development Group
6 #
7 #-------------------------------------------------------------------------
8
9 PGFILEDESC = "Eventlog message formatter"
10 PGAPPICON=win32
11
12 PGFILESHLIB = 1
13 subdir = src/bin/pgevent
14 top_builddir = ../../..
15 include $(top_builddir)/src/Makefile.global
16
17 ifeq ($(PORTNAME), win32)
18
19 OBJS=pgevent.o pgmsgevent.o
20 NAME=pgevent.dll
21
22 all: $(NAME)
23
24 install: all install-lib
25
26 pgevent.dll: pgevent.def $(OBJS)
27         $(DLLWRAP) --def $< -o $(NAME) $(OBJS)
28
29 pgmsgevent.o: pgmsgevent.rc win32ver.rc
30         $(WINDRES) $< -o $@ --include-dir=$(top_builddir)/src/include --include-dir=$(top_srcdir)/src/include --include-dir=$(srcdir) --include-dir=.
31
32 all-lib: $(NAME)
33
34 install-lib: $(NAME)
35         $(INSTALL_STLIB) $< '$(DESTDIR)$(libdir)/$<'
36
37 uninstall-lib:
38         rm -f '$(DESTDIR)$(libdir)/$(NAME)'
39
40 clean distclean:
41         rm -f $(OBJS) $(NAME) win32ver.rc
42
43 clean-lib:
44         rm -f $(NAME)
45
46 endif