#-------------------------------------------------------------------------
#
# Makefile for src/bin/pgevent
#
# Copyright (c) 1996-2004, PostgreSQL Global Development Group
#
#-------------------------------------------------------------------------

subdir = src/bin/pgevent
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global

OBJS=pgevent.o pgmsgevent.o
NAME=pgevent.dll

all: $(NAME)

install: all install-lib

pgevent.dll: $(OBJS) pgevent.def
	dllwrap --def pgevent.def -o $(NAME) $(OBJS)
	
pgmsgevent.o: pgmsgevent.rc
	windres pgmsgevent.rc -o pgmsgevent.o

all-lib: $(NAME)

install-lib: $(NAME)
	$(INSTALL_STLIB) $< $(DESTDIR)$(libdir)/$<
	
uninstall-lib:
	rm -f $(DESTDIR)$(libdir)/$(NAME)

clean:
	rm -f $(OBJS) $(NAME)

clean-lib:
	rm -f $(NAME)
