Ticket #25796: patch-Makefile.patch
File patch-Makefile.patch, 1.7 KB (added by jsaucier@…, 12 years ago) |
---|
-
Makefile
old new 15 15 NAME=cntlm 16 16 CC=gcc 17 17 VER=`cat VERSION` 18 CFLAGS+=$(FLAGS) -std=c99 -Wall - Wno-unused-but-set-variable -pedantic -O3 -D__BSD_VISIBLE -D_ALL_SOURCE -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200112 -D_ISOC99_SOURCE -D_REENTRANT -D_BSD_SOURCE -DVERSION=\"`cat VERSION`\"18 CFLAGS+=$(FLAGS) -std=c99 -Wall -pedantic -O3 -D__BSD_VISIBLE -D_ALL_SOURCE -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200112 -D_ISOC99_SOURCE -D_REENTRANT -D_BSD_SOURCE -DVERSION=\"`cat VERSION`\" 19 19 OS=$(shell uname -s) 20 20 OSLDFLAGS=$(shell [ $(OS) = "SunOS" ] && echo "-lrt -lsocket -lnsl") 21 21 LDFLAGS:=-lpthread $(OSLDFLAGS) … … 26 26 OBJS=utils.o ntlm.o xcrypt.o config.o socket.o acl.o auth.o http.o forward.o direct.o scanner.o pages.o main.o win/resources.o 27 27 endif 28 28 29 all: $(OBJS) 30 29 31 $(NAME): configure-stamp $(OBJS) 30 32 @echo "Linking $@" 31 33 @$(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS) … … 49 51 install -M 644 -f $(MANDIR)/man1 doc/$(NAME).1; \ 50 52 install -M 600 -c $(SYSCONFDIR) doc/$(NAME).conf; \ 51 53 elif [ "`uname -s`" = "Darwin" ]; then \ 52 install - d -m 755 -s $(NAME) $(BINDIR)/$(NAME); \53 install - d -m 644 doc/$(NAME).1 $(MANDIR)/man1/$(NAME).1; \54 install -m 755 -s $(NAME) $(BINDIR)/$(NAME); \ 55 install -m 644 doc/$(NAME).1 $(MANDIR)/man1/$(NAME).1; \ 54 56 [ -f $(SYSCONFDIR)/$(NAME).conf -o -z "$(SYSCONFDIR)" ] \ 55 || install - d -m 600 doc/$(NAME).conf $(SYSCONFDIR)/$(NAME).conf; \57 || install -m 600 doc/$(NAME).conf $(SYSCONFDIR)/$(NAME).conf; \ 56 58 else \ 57 59 install -D -m 755 -s $(NAME) $(BINDIR)/$(NAME); \ 58 60 install -D -m 644 doc/$(NAME).1 $(MANDIR)/man1/$(NAME).1; \