extern char *tzname[];
# endif
#else
-#if !defined(__GNUC__) && !defined(tzname)
+#if !defined(WIN32) || (defined(__MINGW32__) && !defined(tzname))
char *tzname[] = { "" , "" };
#endif
#endif
CCLIBDIR = $(CCHOME)\lib
#
+# specify space-separated list of extra directories to look for libraries
+#
+EXTRALIBDIRS =
+
+#
# set this to your email address (perl will guess a value from
# from your loginname and your hostname, which may not be right)
#EMAIL =
"libs=$(LIBFILES)" \
"incpath=$(CCINCDIR)" \
"libperl=$(PERLIMPLIB)" \
- "libpth=$(CCLIBDIR)" \
+ "libpth=$(CCLIBDIR) $(EXTRALIBDIRS)" \
"libc=$(LIBC)" \
"make=nmake" \
"static_ext=$(STATIC_EXT)" \
CCLIBDIR *= $(CCHOME)\lib
#
+# specify space-separated list of extra directories to look for libraries
+#
+EXTRALIBDIRS *=
+
+#
# set this to point to cmd.exe (only needed if you use some
# alternate shell that doesn't grok cmd.exe style commands)
#SHELL *= g:\winnt\system32\cmd.exe
CFLAGS = -w -d -tWM -tWD $(INCLUDES) $(DEFINES) $(LOCDEFS) \
$(PCHFLAGS) $(OPTIMIZE)
-LINK_FLAGS = $(LINK_DBG) -L$(CCLIBDIR)
+LINK_FLAGS = $(LINK_DBG) -L$(CCLIBDIR) $(EXTRALIBDIRS:^"-L")
OBJOUT_FLAG = -o
EXEOUT_FLAG = -e
LIBOUT_FLAG =
.ELIF "$(CCTYPE)" == "GCC"
-CC = gcc
-LINK32 = gcc
+CC = gcc -pipe
+LINK32 = gcc -pipe
LIB32 = ar rc
IMPLIB = dlltool
.ENDIF
CFLAGS = $(INCLUDES) $(DEFINES) $(LOCDEFS) $(OPTIMIZE)
-LINK_FLAGS = $(LINK_DBG) -L$(CCLIBDIR)
+LINK_FLAGS = $(LINK_DBG) -L$(CCLIBDIR) $(EXTRALIBDIRS:^"-L")
OBJOUT_FLAG = -o
EXEOUT_FLAG = -o
LIBOUT_FLAG =
"libs=$(LIBFILES:f)" \
"incpath=$(CCINCDIR)" \
"libperl=$(PERLIMPLIB:f)" \
- "libpth=$(strip $(CCLIBDIR) $(LIBFILES:d))" \
+ "libpth=$(strip $(CCLIBDIR) $(EXTRALIBDIRS) $(LIBFILES:d))" \
"libc=$(LIBC)" \
"make=dmake" \
"_o=$(o)" "obj_ext=$(o)" \