@@ -29,15 +29,28 @@ endif
29
29
endif
30
30
31
31
32
+ # On Windows, we don't link directly with the Tcl library; see below
32
33
ifneq ($(PORTNAME ) , win32)
33
-
34
34
SHLIB_LINK = $(TCL_LIB_SPEC ) $(TCL_LIBS ) -lc
35
+ endif
36
+
37
+
38
+ NAME = pltcl
39
+
40
+ OBJS = pltcl.o
35
41
36
- else # win32
42
+ DATA = pltcl.control pltcl--1.0.sql pltcl--unpackaged--1.0.sql \
43
+ pltclu.control pltclu--1.0.sql pltclu--unpackaged--1.0.sql
44
+
45
+ REGRESS_OPTS = --dbname=$(PL_TESTDB ) --load-extension=pltcl
46
+ REGRESS = pltcl_setup pltcl_queries
47
+ # where to find psql for running the tests
48
+ PSQLDIR = $(bindir )
37
49
38
50
# Tcl on win32 ships with import libraries only for Microsoft Visual C++,
39
51
# which are not compatible with mingw gcc. Therefore we need to build a
40
52
# new import library to link with.
53
+ ifeq ($(PORTNAME ) , win32)
41
54
42
55
tclwithver = $(subst -l,,$(filter -l% , $(TCL_LIB_SPEC ) ) )
43
56
TCLDLL = $(subst -L,,$(filter -L% , $(TCL_LIB_SPEC ) ) ) /$(tclwithver ) .dll
@@ -53,18 +66,6 @@ $(tclwithver).def: $(TCLDLL)
53
66
endif # win32
54
67
55
68
56
- NAME = pltcl
57
-
58
- OBJS = pltcl.o
59
-
60
- DATA = pltcl.control pltcl--1.0.sql pltcl--unpackaged--1.0.sql \
61
- pltclu.control pltclu--1.0.sql pltclu--unpackaged--1.0.sql
62
-
63
- REGRESS_OPTS = --dbname=$(PL_TESTDB ) --load-extension=pltcl
64
- REGRESS = pltcl_setup pltcl_queries
65
- # where to find psql for running the tests
66
- PSQLDIR = $(bindir )
67
-
68
69
include $(top_srcdir ) /src/Makefile.shlib
69
70
70
71
ifeq ($(TCL_SHARED_BUILD ) , 1)
0 commit comments