Newer
Older
############################################################
#
# Makefile.b32 - Borland's C++ Compiler 5.X
#
# 'lib' directory
#
# Written by Jaepil Kim, pit@paradise.net.nz
############################################################
# Check if BCCDIR is set and guess if not set.
!ifndef BCCDIR
BCCDIR = $(MAKEDIR)/..
# Edit the path below to point to the base of your Zlib sources.
!ifndef ZLIB_PATH
!endif
# Edit the path below to point to the base of your OpenSSL package.
!ifndef OPENSSL_PATH
# Set libcurl static lib, dll and import lib
LIBCURL_LIB = libcurl.lib
LIBCURL_DLL = libcurl.dll
LIBCURL_IMPLIB = libcurl_imp.lib
CP = copy 2>NUL
RM = del /q /f 2>NUL
CXXFLAGS = -q -5 -O2 -w-aus -w-ccc -w-csu -w-par -w-pia -w-rch -w-inl -w-ngu -w-pro -tWM
Guenter Knauf
committed
LIBFLAGS = /C /P32
# If you build with SSL support, set WITH_SSL=1
!ifdef WITH_ZLIB
DEFINES = $(DEFINES) -DHAVE_LIBZ -DHAVE_ZLIB_H
INCDIRS = $(INCDIRS);$(ZLIB_PATH)
INCDIRS = $(INCDIRS);$(OPENSSL_PATH)/inc32;$(OPENSSL_PATH)/inc32/openssl
LINKLIB = $(LINKLIB) $(OPENSSL_PATH)/out32/ssleay32.lib $(OPENSSL_PATH)/out32/libeay32.lib
# Makefile.inc provides the CSOURCES and HHEADERS defines
!include Makefile.inc
OBJECTS = $(CSOURCES:.c=.obj)
.c.obj:
$(CXX) -c $(INCDIRS) $(CXXFLAGS) $(DEFINES) $<
Guenter Knauf
committed
$(LIB) $(LIBFLAGS) $@ @&&!
+$(**: = &^
+)
!
$(LIBCURL_DLL) $(LIBCURL_IMPLIB): $(OBJECTS) $(LINKLIB)
@-$(RM) $(LIBCURL_DLL)
@-$(RM) $(LIBCURL_IMPLIB)
$(LD) $(LDFLAGS) -e$(LIBCURL_DLL) $**
$(IMPLIB) $(LIBCURL_IMPLIB) $(LIBCURL_DLL)