2003-10-25 20:19:07 -04:00
|
|
|
## Compiler, linker, and lib stuff
|
|
|
|
## Makefile for use with MinGW GCC/Win32 executable.
|
|
|
|
##
|
|
|
|
## ----------------------------------------------------
|
|
|
|
## USAGE:
|
|
|
|
## You can type either
|
|
|
|
## mingw32-make
|
|
|
|
## to build wget.exe without SSL support or
|
|
|
|
## mingw32-make SSL=1
|
|
|
|
## to build wget.exe with SSL support.
|
|
|
|
##
|
|
|
|
## ----------------------------------------------------
|
|
|
|
## NOTE: If you plan to build WGET.EXE with SSL support,
|
|
|
|
## please check the value of OPENSSL_PATH in this file
|
|
|
|
## and correct it if it is not the OpenSSL installed directory.
|
|
|
|
|
|
|
|
CC=gcc
|
|
|
|
LDFLAGS= -s
|
|
|
|
CFLAGS= -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I.
|
|
|
|
|
|
|
|
## variables
|
|
|
|
LIBS= -lwsock32
|
|
|
|
OBJ_EXT=.o
|
|
|
|
OBJS=cmpt${OBJ_EXT} convert${OBJ_EXT} connect${OBJ_EXT} ftp${OBJ_EXT} ftp-basic${OBJ_EXT} \
|
2003-11-21 03:48:45 -05:00
|
|
|
ftp-ls${OBJ_EXT} ftp-opie${OBJ_EXT} getopt${OBJ_EXT} host${OBJ_EXT} html-parse${OBJ_EXT} html-url${OBJ_EXT} \
|
2003-11-20 20:48:11 -05:00
|
|
|
http${OBJ_EXT} init${OBJ_EXT} log${OBJ_EXT} main${OBJ_EXT} gnu-md5${OBJ_EXT} netrc${OBJ_EXT} \
|
2003-10-25 20:19:07 -04:00
|
|
|
safe-ctype${OBJ_EXT} hash${OBJ_EXT} progress${OBJ_EXT} gen-md5${OBJ_EXT} cookies${OBJ_EXT} \
|
2005-04-08 05:19:39 -04:00
|
|
|
ptimer${OBJ_EXT} recur${OBJ_EXT} res${OBJ_EXT} retr${OBJ_EXT} url${OBJ_EXT} utils${OBJ_EXT} \
|
2005-04-05 14:46:44 -04:00
|
|
|
version${OBJ_EXT} xmalloc${OBJ_EXT} mswindows${OBJ_EXT}
|
2003-10-25 20:19:07 -04:00
|
|
|
|
|
|
|
ifdef SSL
|
|
|
|
## OPENSSL_PATH is the OpenSSL installed directory
|
|
|
|
OPENSSL_PATH = ../../openssl-0.9.7c
|
|
|
|
CFLAGS += -I${OPENSSL_PATH}/outinc -DHAVE_SSL
|
|
|
|
LIBS += -L${OPENSSL_PATH}/out -leay32 -lssl32
|
2005-04-08 05:19:39 -04:00
|
|
|
OBJS += gen_sslfunc${OBJ_EXT} http-ntlm${OBJ_EXT}
|
2003-10-25 20:19:07 -04:00
|
|
|
endif
|
|
|
|
|
|
|
|
all: wget.exe
|
|
|
|
|
|
|
|
wget.exe: $(OBJS)
|
|
|
|
${CC} ${LDFLAGS} -o $@ ${OBJS} ${LIBS}
|
|
|
|
|
|
|
|
o = ${OBJ_EXT}
|
|
|
|
|
|
|
|
include ../windows/wget.dep
|