2003-05-15 18:35:30 +02:00
|
|
|
# $Header: /cvsroot/pgsql/src/makefiles/Makefile.win32,v 1.1 2003/05/15 16:35:30 momjian Exp $
|
|
|
|
|
|
|
|
# Use replacement include files for those missing on Win32
|
|
|
|
override CPPFLAGS+="-I$(top_srcdir)/src/include/port/win32_include"
|
|
|
|
|
1999-01-18 13:43:55 +01:00
|
|
|
DLLTOOL= dlltool
|
|
|
|
DLLWRAP= dllwrap
|
2001-04-04 23:15:56 +02:00
|
|
|
BE_DLLLIBS= -L$(top_builddir)/src/backend -lpostgres
|
2002-07-27 22:10:05 +02:00
|
|
|
DLLINIT = $(top_builddir)/src/utils/dllinit.o
|
2002-09-05 20:28:46 +02:00
|
|
|
|
2000-10-22 00:36:14 +02:00
|
|
|
AROPT = crs
|
|
|
|
DLSUFFIX = .dll
|
|
|
|
CFLAGS_SL =
|
|
|
|
|
1999-01-18 13:43:55 +01:00
|
|
|
%.dll: %.o
|
|
|
|
$(DLLTOOL) --export-all --output-def $*.def $<
|
2002-09-05 20:28:46 +02:00
|
|
|
$(DLLWRAP) -o $@ --def $*.def $< $(DLLINIT) $(SHLIB_LINK)
|
1999-01-18 13:43:55 +01:00
|
|
|
rm -f $*.def
|
1999-03-09 14:39:15 +01:00
|
|
|
|
2002-09-05 20:28:46 +02:00
|
|
|
ifneq (,$(findstring backend,$(subdir)))
|
|
|
|
ifeq (,$(findstring conversion_procs,$(subdir)))
|
|
|
|
override CPPFLAGS+= -DBUILDING_DLL
|
1999-03-09 14:39:15 +01:00
|
|
|
endif
|
2001-05-03 18:07:52 +02:00
|
|
|
endif
|
2001-05-25 16:28:58 +02:00
|
|
|
|
2002-09-05 20:28:46 +02:00
|
|
|
ifneq (,$(findstring ecpg/lib,$(subdir)))
|
|
|
|
override CPPFLAGS+= -DBUILDING_DLL
|
2001-09-06 04:58:33 +02:00
|
|
|
endif
|
|
|
|
|
2002-09-05 20:28:46 +02:00
|
|
|
# required by Python headers
|
|
|
|
ifneq (,$(findstring src/pl/plpython,$(subdir)))
|
2001-05-25 17:48:33 +02:00
|
|
|
override CPPFLAGS+= -DUSE_DL_IMPORT
|
|
|
|
endif
|