21 lines
526 B
Makefile
21 lines
526 B
Makefile
CFLAGS+= -I/usr/local/include
|
|
LDFLAGS+= -g
|
|
DLLTOOL= dlltool
|
|
DLLWRAP= dllwrap
|
|
DLLLIBS=-L/usr/local/lib -L$(libdir) -L$(top_builddir)/src/backend -lpostgres -lcygipc -lcygwin -lcrypt -lkernel32
|
|
X=.exe
|
|
MK_NO_LORDER=true
|
|
MAKE_DLL=true
|
|
#MAKE_DLL=false
|
|
SHLIB_LINK=$(DLLLIBS)
|
|
|
|
%.dll: %.o
|
|
$(DLLTOOL) --export-all --output-def $*.def $<
|
|
$(DLLWRAP) -o $@ --def $*.def $< $(top_builddir)/src/utils/dllinit.o $(DLLLIBS)
|
|
rm -f $*.def
|
|
|
|
curdir:=$(shell pwd)
|
|
ifeq ($(findstring backend,$(curdir)), backend)
|
|
CFLAGS+= -DBUILDING_DLL=1
|
|
endif
|