comparison misc/GNUmakefile @ 6855:c2c13f1f47fd

Win32: added a variable to specify compiler. This allows to set a different one from command line when needed. For example, to configure nginx with gcc as a compiler one could use "make -f misc/GNUmakefile win32 CC=gcc".
author Maxim Dounin <mdounin@mdounin.ru>
date Sat, 24 Dec 2016 18:01:14 +0300
parents e78705391830
children 8acc44141e44
comparison
equal deleted inserted replaced
6854:75e7d55214bd 6855:c2c13f1f47fd
2 VER = $(shell grep 'define NGINX_VERSION' src/core/nginx.h \ 2 VER = $(shell grep 'define NGINX_VERSION' src/core/nginx.h \
3 | sed -e 's/^.*"\(.*\)".*/\1/') 3 | sed -e 's/^.*"\(.*\)".*/\1/')
4 NGINX = nginx-$(VER) 4 NGINX = nginx-$(VER)
5 TEMP = tmp 5 TEMP = tmp
6 6
7 CC = cl
7 OBJS = objs.msvc8 8 OBJS = objs.msvc8
8 OPENSSL = openssl-1.0.2j 9 OPENSSL = openssl-1.0.2j
9 ZLIB = zlib-1.2.8 10 ZLIB = zlib-1.2.8
10 PCRE = pcre-8.39 11 PCRE = pcre-8.39
11 12
45 $(MAKE) -f misc/GNUmakefile release 46 $(MAKE) -f misc/GNUmakefile release
46 47
47 48
48 win32: 49 win32:
49 ./auto/configure \ 50 ./auto/configure \
50 --with-cc=cl \ 51 --with-cc=$(CC) \
51 --builddir=$(OBJS) \ 52 --builddir=$(OBJS) \
52 --with-debug \ 53 --with-debug \
53 --prefix= \ 54 --prefix= \
54 --conf-path=conf/nginx.conf \ 55 --conf-path=conf/nginx.conf \
55 --pid-path=logs/nginx.pid \ 56 --pid-path=logs/nginx.pid \