home *** CD-ROM | disk | FTP | other *** search
/ ftp.uv.es / 2014.11.ftp.uv.es.tar / ftp.uv.es / mirror / softcatala / linux / .in.webalizer-1.30-02-src.tar.gz. / .in.webalizer-1.30-02-src.tar.gz / webalizer-1.30-02 / Makefile.in < prev    next >
Makefile  |  1999-06-29  |  2KB  |  69 lines

  1. #
  2. # Makefile for webalizer - a web server log analysis program
  3. #
  4. # Copyright (C) 1997-1999  Bradford L. Barrett (brad@mrunix.net)
  5. #
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2 of the License, or
  9. # (at your option) any later version, and provided that the above
  10. # copyright and permission notice is included with all distributed
  11. # copies of this or derived software.
  12. #
  13. # This program is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. # GNU General Public License for more details (file "COPYING").
  17. #
  18.  
  19. prefix  = @prefix@
  20. exec_prefix = @exec_prefix@
  21.  
  22. BINDIR = @bindir@
  23. MANDIR = @mandir@/man1
  24. CC     = @CC@
  25. CFLAGS = @CFLAGS@
  26. LIBS   = @LIBS@
  27. DEFS   = @DEFS@
  28. LDFLAGS= @LDFLAGS@
  29. INSTALL= @INSTALL@
  30. INSTALL_PROGRAM=@INSTALL_PROGRAM@
  31. INSTALL_DATA=@INSTALL_DATA@
  32.  
  33. # where are the GD header files?
  34. GDLIB  = @GDLIB@
  35.  
  36. # Shouldn't have to touch below here!
  37.  
  38. all: webalizer
  39.  
  40. webalizer: webalizer.o webalizer.h graphs.o graphs.h ctry.h webalizer_lang.h
  41.     $(CC) ${LDFLAGS} -o webalizer webalizer.o graphs.o ${LIBS}
  42.  
  43. webalizer.o: webalizer.c webalizer.h webalizer_lang.h ctry.h
  44.     $(CC) ${CFLAGS} ${DEFS} -c webalizer.c
  45.  
  46. graphs.o: graphs.c graphs.h webalizer_lang.h
  47.     $(CC) ${CFLAGS} ${DEFS} -I${GDLIB} -c graphs.c
  48.  
  49. clean:
  50.     rm -f webalizer *.o usage*.gif daily*.gif hourly*.gif ctry*.gif
  51.     rm -f *.html *.hist *.current core
  52.  
  53. distclean: clean
  54.     rm -f webalizer.conf *.tar *.tgz *.Z
  55.     rm -f Makefile webalizer_lang.h config.cache config.log config.status
  56.     @LN_S@ lang/webalizer_lang.@DEFAULT_LANG@ webalizer_lang.h
  57.  
  58. install: all
  59.     $(INSTALL_PROGRAM) webalizer ${BINDIR}/webalizer
  60.     $(INSTALL_DATA) webalizer.1 ${MANDIR}/webalizer.1
  61.     $(INSTALL_DATA) sample.conf /etc/webalizer.conf.sample
  62.  
  63. uninstall:
  64.     rm -f ${MANDIR}/webalizer.1
  65.     rm -f ${BINDIR}/webalizer
  66.     rm -f /etc/webalizer.conf.sample
  67.     rm -f webalizer_lang.h
  68.     @LN_S@ lang/webalizer_lang.@DEFAULT_LANG@ webalizer_lang.h
  69.