changed to use Makefile.inc.

This commit is contained in:
Gunter Knauf 2004-07-13 20:01:15 +00:00
parent 2be57d0833
commit 5f26bee7c8
1 changed files with 62 additions and 90 deletions

View File

@ -5,6 +5,10 @@
# #
# 'lib' directory # 'lib' directory
# #
# 'BCCDIR' has to be set up to point to the base directory
# of the compiler, i.e. SET BCCDIR = c:\Borland\BCC55
# where c:\Borland\BCC55 is the compiler is installed
#
# Requires 'Makefile.b32.resp' # Requires 'Makefile.b32.resp'
# #
# Written by Jaepil Kim, pit@paradise.net.nz # Written by Jaepil Kim, pit@paradise.net.nz
@ -12,69 +16,29 @@
# Setup environment # Setup environment
CXX = bcc32 CXX = bcc32
CP = copy
RM = del RM = del
LIB = tlib LIB = tlib
TOPDIR = .. TOPDIR = ..
CURNTDIR = . CURNTDIR = .
CXXFLAGS = -5 -O2 -w-aus -w-ccc -w-csu -w-par -w-pia -w-rch -w-inl -w-ngu \
-w-pro -tWM CXXFLAGS = -5 -O2 -w-aus -w-ccc -w-csu -w-par -w-pia -w-rch -w-inl -w-ngu -w-pro -tWM
# If you build without SSL support, remove "-DUSE_SSLEAY" from the line below. # If you build without SSL support, remove "-DUSE_SSLEAY" from the line below.
DEFINES = -DLIBCURL_BIGENDIAN=0 -DNDEBUG -DWIN32 -DCONSOLE -DMBCS \ DEFINES = -DLIBCURL_BIGENDIAN=0 -DNDEBUG -DWIN32 -DCONSOLE -DMBCS -DUSE_SSLEAY
-DUSE_SSLEAY # DEFINES = -DLIBCURL_BIGENDIAN=0 -DNDEBUG -DWIN32 -DCONSOLE -DMBCS
INCDIRS = -I$(CURNTDIR);$(TOPDIR)\include\
# 'BCCDIR' has to be set up in your c:\autoexec.bat INCDIRS = -I$(CURNTDIR);$(TOPDIR)\include
# i.e. SET BCCDIR = c:\Borland\BCC55
# where c:\Borland\BCC55 is the compiler is installed
LINKLIB = $(BCCDIR)\lib\psdk\ws2_32.lib LINKLIB = $(BCCDIR)\lib\psdk\ws2_32.lib
LIBCURLLIB = libcurl.lib LIBCURLLIB = libcurl.lib
.SUFFIXES: .c .SUFFIXES: .c
SOURCES = \ # Makefile.inc provides the CSOURCES and HHEADERS defines
base64.c \ !include Makefile.inc
md5.c \
cookie.c \
transfer.c \
escape.c \
formdata.c \
ftp.c \
http.c \
http_chunks.c \
http_digest.c \
http_ntlm.c \
ldap.c \
dict.c \
telnet.c \
getdate.c \
getenv.c \
hostip.c \
if2ip.c \
mprintf.c \
netrc.c \
progress.c \
sendf.c \
inet_pton.c \
speedcheck.c \
ssluse.c \
timeval.c \
url.c \
file.c \
getinfo.c \
version.c \
easy.c \
strequal.c \
strtok.c \
strtoofft.c \
connect.c \
hash.c \
share.c \
llist.c \
multi.c \
content_encoding.c
OBJECTS = $(SOURCES:.c=.obj) OBJECTS = $(CSOURCES:.c=.obj)
.c.obj: .c.obj:
$(CXX) -c $(INCDIRS) $(CXXFLAGS) $(DEFINES) $< $(CXX) -c $(INCDIRS) $(CXXFLAGS) $(DEFINES) $<
@ -88,3 +52,11 @@ clean:
$(LIBCURLLIB): $(LINKLIB) $(OBJECTS) Makefile.b32.resp $(LIBCURLLIB): $(LINKLIB) $(OBJECTS) Makefile.b32.resp
-$(RM) $(LIBCURLLIB) -$(RM) $(LIBCURLLIB)
$(LIB) $(LIBCURLLIB) @Makefile.b32.resp $(LIB) $(LIBCURLLIB) @Makefile.b32.resp
getdate.c:
@echo Creating $@
@-$(RM) getdate.y
@$(CP) getdate.c.cvs $@