CC = bcc32
LINK32 = tlink32
-LIB32 = tlib
+LIB32 = tlib /P128
IMPLIB = implib -c
#
LINK_FLAGS = $(LINK_DBG) -L$(CCLIBDIR)
OBJOUT_FLAG = -o
EXEOUT_FLAG = -e
+LIBOUT_FLAG =
.ELIF "$(CCTYPE)" == "GCC"
CC = gcc -pipe
LINK32 = gcc -pipe
-LIB32 = ar
+LIB32 = ar rc
IMPLIB = dlltool
o = .o
LINK_FLAGS = $(LINK_DBG) -L$(CCLIBDIR)
OBJOUT_FLAG = -o
EXEOUT_FLAG = -o
+LIBOUT_FLAG =
.ELSE
LINK_FLAGS = -nologo $(LINK_DBG) -machine:$(PROCESSOR_ARCHITECTURE)
OBJOUT_FLAG = -Fo
EXEOUT_FLAG = -Fe
+LIBOUT_FLAG = /out:
.ENDIF
cd $(EXTDIR)\$(*B) && $(XSUBPP) dl_win32.xs > $(*B).c
$(XCOPY) $(EXTDIR)\$(*B)\dlutils.c .
-!IF "$(OBJECT)" == "-DPERL_OBJECT"
+.IF "$(OBJECT)" == "-DPERL_OBJECT"
+
PerlCAPI.cpp : $(MINIPERL)
$(MINIPERL) GenCAPI.pl $(COREDIR)
PerlCAPI$(o) : PerlCAPI.cpp
+.IF "$(CCTYPE)" == "BORLAND"
+ $(CC) $(CFLAGS_O) -c $(OBJOUT_FLAG)PerlCAPI$(o) PerlCAPI.cpp
+.ELIF "$(CCTYPE)" == "GCC"
+ $(CC) $(CFLAGS_O) -c $(OBJOUT_FLAG)PerlCAPI$(o) PerlCAPI.cpp
+.ELSE
$(CC) $(CFLAGS_O) -MT -UPERLDLL -DWIN95FIX -c \
$(OBJOUT_FLAG)PerlCAPI$(o) PerlCAPI.cpp
+.ENDIF
$(CAPILIB) : PerlCAPI.cpp PerlCAPI$(o)
- lib /OUT:$(CAPILIB) PerlCAPI$(o)
-!ENDIF
+.IF "$(CCTYPE)" == "BORLAND"
+ $(LIB32) $(LIBOUT_FLAG)$(CAPILIB) +PerlCAPI$(o)
+.ELSE
+ $(LIB32) $(LIBOUT_FLAG)$(CAPILIB) PerlCAPI$(o)
+.ENDIF
+
+.ENDIF
$(EXTDIR)\DynaLoader\dl_win32.xs: dl_win32.xs
copy dl_win32.xs $(EXTDIR)\DynaLoader\dl_win32.xs