1999-01-18 13:43:55 +01:00
|
|
|
CFLAGS+= -I/usr/local/include
|
|
|
|
LDFLAGS+= -g
|
|
|
|
DLLTOOL= dlltool
|
|
|
|
DLLWRAP= dllwrap
|
|
|
|
DLLLIBS=-L/usr/local/lib -L$(LIBDIR) -L$(SRCDIR)/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 $< $(SRCDIR)/utils/dllinit.o $(DLLLIBS)
|
|
|
|
rm -f $*.def
|
1999-03-09 14:39:15 +01:00
|
|
|
|
|
|
|
curdir:=$(shell pwd)
|
|
|
|
ifeq ($(findstring backend,$(curdir)), backend)
|
|
|
|
CFLAGS+= -DBUILDING_DLL=1
|
|
|
|
endif
|