~ubuntu-branches/ubuntu/precise/wget/precise-proposed

« back to all changes in this revision

Viewing changes to windows/Makefile.src.mingw

  • Committer: Bazaar Package Importer
  • Author(s): Noèl Köthe
  • Date: 2005-06-26 16:46:25 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050626164625-jjcde8hyztx7xq7o
Tags: 1.10-2
* wget-fix_error--save-headers patch from upstream
  (closes: Bug#314728)
* don't pattern-match server redirects patch from upstream
  (closes: Bug#163243)
* correct de.po typos
  (closes: Bug#313883)
* wget-E_html_behind_file_counting fix problem with adding the
  numbers after the html extension
* updated Standards-Version: to 3.6.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## Compiler, linker, and lib stuff
 
2
## Makefile for use with MinGW GCC/Win32 executable.
 
3
##
 
4
## ----------------------------------------------------
 
5
## USAGE:
 
6
##   You can type either
 
7
##       mingw32-make
 
8
##   to build wget.exe without SSL support or
 
9
##       mingw32-make SSL=1
 
10
##   to build wget.exe with SSL support.
 
11
##
 
12
## ----------------------------------------------------
 
13
## NOTE: If you plan to build WGET.EXE with SSL support,
 
14
##       please check the value of OPENSSL_PATH in this file
 
15
##       and correct it if it is not the OpenSSL installed directory.
 
16
 
 
17
CC=gcc
 
18
LDFLAGS= -s
 
19
CFLAGS= -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I.
 
20
 
 
21
## variables
 
22
LIBS= -lwsock32
 
23
OBJ_EXT=.o
 
24
OBJS=cmpt${OBJ_EXT} convert${OBJ_EXT} connect${OBJ_EXT} ftp${OBJ_EXT} ftp-basic${OBJ_EXT}  \
 
25
      ftp-ls${OBJ_EXT} ftp-opie${OBJ_EXT} getopt${OBJ_EXT} host${OBJ_EXT} html-parse${OBJ_EXT} html-url${OBJ_EXT} \
 
26
      http${OBJ_EXT} init${OBJ_EXT} log${OBJ_EXT} main${OBJ_EXT} gnu-md5${OBJ_EXT} netrc${OBJ_EXT} \
 
27
      safe-ctype${OBJ_EXT} hash${OBJ_EXT} progress${OBJ_EXT} gen-md5${OBJ_EXT} cookies${OBJ_EXT} \
 
28
      ptimer${OBJ_EXT} recur${OBJ_EXT} res${OBJ_EXT} retr${OBJ_EXT} url${OBJ_EXT} utils${OBJ_EXT} \
 
29
      version${OBJ_EXT} xmalloc${OBJ_EXT} mswindows${OBJ_EXT} 
 
30
 
 
31
ifdef SSL
 
32
    ## OPENSSL_PATH is the OpenSSL installed directory
 
33
    OPENSSL_PATH = ../../openssl-0.9.7c
 
34
    CFLAGS += -I${OPENSSL_PATH}/outinc -DHAVE_SSL
 
35
    LIBS += -L${OPENSSL_PATH}/out -leay32 -lssl32
 
36
    OBJS += openssl${OBJ_EXT} http-ntlm${OBJ_EXT}
 
37
endif
 
38
 
 
39
all: wget.exe
 
40
 
 
41
wget.exe: $(OBJS)
 
42
        ${CC} ${LDFLAGS} -o $@ ${OBJS} ${LIBS}
 
43
 
 
44
o = ${OBJ_EXT}
 
45
 
 
46
include ../windows/wget.dep