aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.b32
blob: afadd4b9e9481e5991a36cad6e4398cb0e1fdffc (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
############################################################
#  Makefile.b32 - Borland's C++ Compiler 5.X
#
#  'src' directory
#
#  Written by Jaepil Kim, pit@paradise.net.nz
############################################################

# Set program's name
PROGNAME  = curl.exe

# Setup environment
CXX       = bcc32
CXXFLAGS  = -5 -O2 -WC -w-par -w-csu -w-aus
RM        = del
TOPDIR    = ..
DEFINES   = -DNDEBUG -DLIBCURL_BIGENDIAN=0 -DWIN32 -D_CONSOLE -D_MBCS
LD	  = bcc32
LDFLAGS	  = -lap -e$(PROGNAME)
INCDIRS   = -I$(TOPDIR)/include
LIBCURLLIB= $(TOPDIR)/lib/libcurl.lib

# '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


PROGRAMS  = \
	curl.exe 

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

all: $(PROGRAMS)

curl.exe: $(LIBCURLLIB) $(LINKLIB) hugehelp.obj writeout.obj urlglob.obj main.obj
	$(LD) $(LDFLAGS) hugehelp.obj writeout.obj urlglob.obj main.obj $(LIBCURLLIB) $(LINKLIB)

clean:
	$(RM) *.obj
        $(RM) *.exe
        $(RM) *.tds