2 # You can tweak these three variables to make things install where you
3 # like, but do not touch more unless you know what you are doing. ;)
5 SYSCONFDIR=/usr/local/etc
12 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
13 CFLAGS=$(FLAGS) -O3 -D_POSIX_C_SOURCE=200112 -D_ISOC99_SOURCE -D_REENTRANT -DVERSION=\"`cat VERSION`\"
18 $(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS)
21 if [ -z "$(SYSCONFDIR)" ]; then \
22 $(CC) $(CFLAGS) -c main.c -o $@; \
24 $(CC) $(CFLAGS) -DSYSCONFDIR=\"$(SYSCONFDIR)\" -c main.c -o $@; \
28 if [ -f /usr/bin/oslevel ]; then \
29 install -M 0755 -S -f $(BINDIR) $(NAME); \
30 install -M 0644 -f $(MANDIR)/man1 doc/$(NAME).1; \
31 install -M 0600 -c $(SYSCONFDIR) doc/$(NAME).conf; \
33 install -D -m 0755 -s $(NAME) $(BINDIR)/$(NAME); \
34 install -D -m 0644 doc/$(NAME).1 $(MANDIR)/man1/$(NAME).1; \
35 [ -f $(SYSCONFDIR)/$(NAME).conf -o -z "$(SYSCONFDIR)" ] \
36 || install -D -m 0600 doc/$(NAME).conf $(SYSCONFDIR)/$(NAME).conf; \
40 rm -f $(BINDIR)/$(NAME) $(MANDIR)/man1/$(NAME).1 2>/dev/null || true
43 @rm -f *.o cntlm cntlm.exe configure-stamp build-stamp config/config.h 2>/dev/null
44 @rm -f cntlm-install win/cyg* win/cntlm* 2>/dev/null
45 @rm -f config/endian config/gethostname config/strdup config/socklen_t config/*.exe
46 @if [ -h Makefile ]; then rm -f Makefile; mv Makefile.gcc Makefile; fi
49 @rm -f *.deb *.rpm *.tgz *.tar.gz *.tar.bz2 tags ctags pid 2>/dev/null