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.std < prev    next >
Makefile  |  1999-04-15  |  2KB  |  60 lines

  1. #
  2. # Makefile for webalizer - a web server logfile analysis thingie
  3. #
  4. # (c)1997-1999 by Bradford L. Barrett (brad@mrunix.net)
  5. # Distributed under the GNU GPL. See "README" and "Copyright"
  6. # files supplied with this distribution for more information.
  7. #
  8. # This works on a Slackware 3.6 system, and should work out
  9. # of the box on other GCC based systems.  Tweek the values
  10. # below for your environment if needed before running make.
  11.  
  12. # Use these for SCO (and maybe others)
  13. #BINDIR = /usr/bin
  14. #MANDIR = /usr/man/man1
  15. #CC     = cc
  16. #CFLAGS = -b elf
  17. #LIBS   = -lgd -lm
  18.  
  19. # These for Linux (most GCC based systems)
  20. BINDIR = /usr/local/bin
  21. MANDIR = /usr/local/man/man1
  22. CC     = gcc
  23. CFLAGS = -O2 -Wall -fsigned-char
  24. LIBS   = -lgd -lm
  25.  
  26. # where are the GD header files?
  27. GDLIB  = /usr/local/include/gd
  28.  
  29. # Shouldn't have to touch below here!
  30.  
  31. all: webalizer
  32.  
  33. webalizer: webalizer.o webalizer.h graphs.o graphs.h ctry.h
  34.     $(CC) ${CFLAGS} -o webalizer webalizer.o graphs.o ${LIBS}
  35.  
  36. webalizer.o: webalizer.c webalizer.h webalizer_lang.h ctry.h
  37.     $(CC) ${CFLAGS} -c webalizer.c
  38.  
  39. graphs.o: graphs.c graphs.h webalizer_lang.h
  40.     $(CC) ${CFLAGS} -I${GDLIB} -c graphs.c
  41.  
  42. clean:
  43.     rm -f *.o webalizer
  44.     rm -f  usage*.gif daily*.gif hourly*.gif ctry*.gif
  45.     rm -f *.html *.hist core
  46.  
  47. distclean: clean
  48.     rm -f webalizer.conf *.tar *.tgz *.Z
  49.     rm -f webalizer-static
  50.  
  51. install: all
  52.     cp webalizer.1 ${MANDIR}/webalizer.1
  53.     cp webalizer   ${BINDIR}/webalizer
  54.     cp sample.conf /etc/webalizer.conf.sample
  55.  
  56. uninstall:
  57.     rm -f ${MANDIR}/webalizer.1
  58.     rm -f ${BINDIR}/webalizer
  59.     rm -f /etc/webalizer.conf.sample
  60.