Ticket #25796: patch-Makefile.patch

File patch-Makefile.patch, 1.7 KB (added by jsaucier@…, 12 years ago)
  • Makefile

    old new  
    1515NAME=cntlm
    1616CC=gcc
    1717VER=`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`\"
     18CFLAGS+=$(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`\"
    1919OS=$(shell uname -s)
    2020OSLDFLAGS=$(shell [ $(OS) = "SunOS" ] && echo "-lrt -lsocket -lnsl")
    2121LDFLAGS:=-lpthread $(OSLDFLAGS)
     
    2626        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
    2727endif
    2828
     29all: $(OBJS)
     30
    2931$(NAME): configure-stamp $(OBJS)
    3032        @echo "Linking $@"
    3133        @$(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS)
     
    4951                install -M 644 -f $(MANDIR)/man1 doc/$(NAME).1; \
    5052                install -M 600 -c $(SYSCONFDIR) doc/$(NAME).conf; \
    5153        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; \
    5456                [ -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; \
    5658        else \
    5759                install -D -m 755 -s $(NAME) $(BINDIR)/$(NAME); \
    5860                install -D -m 644 doc/$(NAME).1 $(MANDIR)/man1/$(NAME).1; \