Added content_encoding files.

This commit is contained in:
Joern Hartroth 2002-09-06 22:05:36 +00:00
parent fccf6925b1
commit b2563b9f9f
1 changed files with 92 additions and 84 deletions

View File

@ -1,84 +1,92 @@
############################################################# #############################################################
# #
## Makefile for building libcurl.a with MingW32 (GCC-2.95) and ## Makefile for building libcurl.a with MingW32 (GCC-2.95) and
## optionally OpenSSL (0.9.6) ## optionally OpenSSL (0.9.6)
## Use: make -f Makefile.m32 ## Use: make -f Makefile.m32
## ##
## Comments to: Troy Engel <tengel@sonic.net> or ## Comments to: Troy Engel <tengel@sonic.net> or
## Joern Hartroth <hartroth@acm.org> ## Joern Hartroth <hartroth@acm.org>
CC = gcc CC = gcc
AR = ar AR = ar
RANLIB = ranlib RANLIB = ranlib
STRIP = strip -g STRIP = strip -g
OPENSSL_PATH = ../../openssl-0.9.6b OPENSSL_PATH = ../../openssl-0.9.6d
ZLIB_PATH = ../../zlib-1.1.3
########################################################
## Nothing more to do below this line! ########################################################
## Nothing more to do below this line!
INCLUDES = -I. -I.. -I../include -I../src
CFLAGS = -g -O2 -DMINGW32 INCLUDES = -I. -I.. -I../include -I../src
ifdef SSL CFLAGS = -g -O2 -DMINGW32
INCLUDES += -I"$(OPENSSL_PATH)/outinc" -I"$(OPENSSL_PATH)/outinc/openssl" ifdef SSL
CFLAGS += -DUSE_SSLEAY INCLUDES += -I"$(OPENSSL_PATH)/outinc" -I"$(OPENSSL_PATH)/outinc/openssl"
DLL_LIBS = -leay32 -lssl32 -lRSAglue CFLAGS += -DUSE_SSLEAY
endif DLL_LIBS = -L$(OPENSSL_PATH)/out -leay32 -lssl32 -lRSAglue
COMPILE = $(CC) $(INCLUDES) $(CFLAGS) endif
ifdef ZLIB
libcurl_a_LIBRARIES = libcurl.a INCLUDES += -I"$(ZLIB_PATH)"
CFLAGS += -DHAVE_ZLIB
libcurl_a_SOURCES = arpa_telnet.h file.c getpass.h netrc.h timeval.c base64.c \ DLL_LIBS += -L$(ZLIB_PATH) -lz
file.h hostip.c progress.c timeval.h base64.h formdata.c hostip.h progress.h \ endif
cookie.c formdata.h http.c sendf.c cookie.h ftp.c http.h sendf.h url.c dict.c \ COMPILE = $(CC) $(INCLUDES) $(CFLAGS)
ftp.h if2ip.c speedcheck.c url.h dict.h getdate.c if2ip.h speedcheck.h \
urldata.h transfer.c getdate.h ldap.c ssluse.c version.c transfer.h getenv.c \ libcurl_a_LIBRARIES = libcurl.a
ldap.h ssluse.h escape.c getenv.h mprintf.c telnet.c escape.h getpass.c netrc.c \
telnet.h getinfo.c strequal.c strequal.h easy.c security.h \ libcurl_a_SOURCES = arpa_telnet.h file.c getpass.h netrc.h timeval.c base64.c \
security.c krb4.h krb4.c memdebug.h memdebug.c inet_ntoa_r.h http_chunks.h http_chunks.c \ file.h hostip.c progress.c timeval.h base64.h formdata.c hostip.h progress.h \
strtok.c connect.c hash.c llist.c multi.c cookie.c formdata.h http.c sendf.c cookie.h ftp.c http.h sendf.h url.c dict.c \
ftp.h if2ip.c speedcheck.c url.h dict.h getdate.c if2ip.h speedcheck.h \
libcurl_a_OBJECTS = file.o timeval.o base64.o hostip.o progress.o \ urldata.h transfer.c getdate.h ldap.c ssluse.c version.c transfer.h getenv.c \
formdata.o cookie.o http.o sendf.o ftp.o url.o dict.o if2ip.o \ ldap.h ssluse.h escape.c getenv.h mprintf.c telnet.c escape.h getpass.c netrc.c \
speedcheck.o getdate.o transfer.o ldap.o ssluse.o version.o \ telnet.h getinfo.c strequal.c strequal.h easy.c security.h \
getenv.o escape.o mprintf.o telnet.o getpass.o netrc.o getinfo.o \ security.c krb4.h krb4.c memdebug.h memdebug.c inet_ntoa_r.h http_chunks.h http_chunks.c \
strequal.o easy.o security.o krb4.o memdebug.o http_chunks.o \ strtok.c connect.c hash.c llist.c multi.c \
strtok.o connect.o hash.o llist.o multi.o content_encoding.h content_encoding.c
LIBRARIES = $(libcurl_a_LIBRARIES) libcurl_a_OBJECTS = file.o timeval.o base64.o hostip.o progress.o \
SOURCES = $(libcurl_a_SOURCES) formdata.o cookie.o http.o sendf.o ftp.o url.o dict.o if2ip.o \
OBJECTS = $(libcurl_a_OBJECTS) speedcheck.o getdate.o transfer.o ldap.o ssluse.o version.o \
getenv.o escape.o mprintf.o telnet.o getpass.o netrc.o getinfo.o \
strequal.o easy.o security.o krb4.o memdebug.o http_chunks.o \
all: libcurl.a libcurl.dll libcurldll.a strtok.o connect.o hash.o llist.o multi.o \
content_encoding.o
libcurl.a: $(libcurl_a_OBJECTS) $(libcurl_a_DEPENDENCIES)
-@erase libcurl.a LIBRARIES = $(libcurl_a_LIBRARIES)
$(AR) cru libcurl.a $(libcurl_a_OBJECTS) SOURCES = $(libcurl_a_SOURCES)
$(RANLIB) libcurl.a OBJECTS = $(libcurl_a_OBJECTS)
$(STRIP) $@
# remove the last line above to keep debug info all: libcurl.a libcurl.dll libcurldll.a
libcurl.dll libcurldll.a: libcurl.a libcurl.def dllinit.o libcurl.a: $(libcurl_a_OBJECTS) $(libcurl_a_DEPENDENCIES)
-@erase $@ -@erase libcurl.a
dllwrap --dllname $@ --output-lib libcurldll.a --export-all --def libcurl.def $(libcurl_a_LIBRARIES) dllinit.o -L$(OPENSSL_PATH)/out $(DLL_LIBS) -lwsock32 -lws2_32 -lwinmm $(AR) cru libcurl.a $(libcurl_a_OBJECTS)
$(STRIP) $@ $(RANLIB) libcurl.a
$(STRIP) $@
# remove the last line above to keep debug info
# remove the last line above to keep debug info
.c.o:
$(COMPILE) -c $< libcurl.dll libcurldll.a: libcurl.a libcurl.def dllinit.o
-@erase $@
.s.o: dllwrap --dllname $@ --output-lib libcurldll.a --export-all --def libcurl.def $(libcurl_a_LIBRARIES) dllinit.o $(DLL_LIBS) -lwsock32 -lws2_32 -lwinmm
$(COMPILE) -c $< $(STRIP) $@
.S.o: # remove the last line above to keep debug info
$(COMPILE) -c $<
.c.o:
clean: $(COMPILE) -c $<
-@erase $(libcurl_a_OBJECTS)
.s.o:
distrib: clean $(COMPILE) -c $<
-@erase $(libcurl_a_LIBRARIES) .S.o:
$(COMPILE) -c $<
clean:
-@erase $(libcurl_a_OBJECTS)
distrib: clean
-@erase $(libcurl_a_LIBRARIES)