Skip to content
Newer
Older
100644 63 lines (46 sloc) 1.4 KB
5f26bee @gknauf changed to use Makefile.inc.
gknauf authored
1 ############################################################
2 # $Id$
3 #
4 # Makefile.b32 - Borland's C++ Compiler 5.X
5 #
6 # 'lib' directory
7 #
8 # 'BCCDIR' has to be set up to point to the base directory
9 # of the compiler, i.e. SET BCCDIR = c:\Borland\BCC55
10 # where c:\Borland\BCC55 is the compiler is installed
11 #
12 # Requires 'Makefile.b32.resp'
13 #
14 # Written by Jaepil Kim, pit@paradise.net.nz
15 ############################################################
16
17 # Setup environment
18 CXX = bcc32
19 CP = copy
20 RM = del
21 LIB = tlib
22 TOPDIR = ..
23 CURNTDIR = .
24
25 CXXFLAGS = -5 -O2 -w-aus -w-ccc -w-csu -w-par -w-pia -w-rch -w-inl -w-ngu -w-pro -tWM
26
27 # If you build without SSL support, remove "-DUSE_SSLEAY" from the line below.
28 DEFINES = -DLIBCURL_BIGENDIAN=0 -DNDEBUG -DWIN32 -DCONSOLE -DMBCS -DUSE_SSLEAY
29 # DEFINES = -DLIBCURL_BIGENDIAN=0 -DNDEBUG -DWIN32 -DCONSOLE -DMBCS
30
31 INCDIRS = -I$(CURNTDIR);$(TOPDIR)\include
32 LINKLIB = $(BCCDIR)\lib\psdk\ws2_32.lib
33
34 LIBCURLLIB = libcurl.lib
35
36 .SUFFIXES: .c
37
38 # Makefile.inc provides the CSOURCES and HHEADERS defines
39 !include Makefile.inc
40
41 OBJECTS = $(CSOURCES:.c=.obj)
42
43 .c.obj:
44 $(CXX) -c $(INCDIRS) $(CXXFLAGS) $(DEFINES) $<
45
46 all: $(LIBCURLLIB)
47
48 clean:
49 -$(RM) $(LIBCURLLIB)
50 -$(RM) *.obj
51
52 $(LIBCURLLIB): $(LINKLIB) $(OBJECTS) Makefile.b32.resp
53 -$(RM) $(LIBCURLLIB)
54 $(LIB) $(LIBCURLLIB) @Makefile.b32.resp
55
56 getdate.c:
57 @echo Creating $@
58 @-$(RM) getdate.y
59 @$(CP) getdate.c.cvs $@
60
61
62
Something went wrong with that request. Please try again.