aboutsummaryrefslogtreecommitdiff
path: root/lib/Makefile.b32
blob: 44de4c53bcc0221813133465ac6766124707e0cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
############################################################
#  Makefile.b32 - Borland's C++ Compiler 5.X
#
#  'lib' directory
#
#  Requires 'Makefile.b32.resp'
#
#  Written by Jaepil Kim, pit@paradise.net.nz
############################################################

# Setup environment
CXX	   = bcc32
RM	   = del
LIB	   = tlib
TOPDIR	   = ..
CURNTDIR   = .
CXXFLAGS   = -5 -O2 -w-aus -w-ccc -w-csu -w-par -w-pia -w-rch -w-inl -w-ngu -w-pro -tWM
DEFINES    = -DLIBCURL_BIGENDIAN=0 -DNDEBUG -DWIN32 -DCONSOLE -DMBCS
INCDIRS    = -I$(CURNTDIR);$(TOPDIR)/include/

# 'BCCDIR' has to be set up in your c:\autoexec.bat
# i.e. SET BCCDIR = c:\Borland\BCC55
# where c:\Borland\BCC55 is the compiler is installed
LINKLIB	   = $(BCCDIR)/lib/psdk/wsock32.lib
LIBCURLLIB = libcurl.lib

.SUFFIXES: .c

SOURCES	   = \
	base64.c \
	cookie.c \
	transfer.c \
	escape.c \
	formdata.c \
	ftp.c \
	http.c \
        http_chunks.c \
	ldap.c \
	dict.c \
	telnet.c \
	getdate.c \
	getenv.c \
	getpass.c \
	hostip.c \
	if2ip.c \
	mprintf.c \
	netrc.c \
	progress.c \
	sendf.c \
	speedcheck.c \
	ssluse.c \
	timeval.c \
	url.c \
	file.c \
	getinfo.c \
	version.c \
	easy.c \
	strequal.c \
	strtok.c

OBJECTS = $(SOURCES:.c=.obj)

.c.obj:
	$(CXX) -c $(INCDIRS) $(CXXFLAGS) $(DEFINES) $<

all:	$(LIBCURLLIB)

clean:
	-$(RM) $(LIBCURLLIB)
        -$(RM) *.obj

$(LIBCURLLIB):  $(LINKLIB) $(OBJECTS) Makefile.b32.resp
	-$(RM) $(LIBCURLLIB)
	$(LIB) $(LIBCURLLIB) @Makefile.b32.resp