kalasag.org

kalasag.org

Git

This blob has been accessed 2,317 times via Git panel.

  1. # Makefile for Kalasag
  2. #
  3. # STEALTH MODE: Only works on Linux systems right now.
  4. #
  5. # The snprintf included with the package is for use with NEXTSTEP only,
  6. # (Thanks Timothy <tjl@luomat.org>) although it may work elsewhere.
  7. # We've not tried it under any other OS to date. It shouldn't be needed
  8. # by any modern OS.
  9. #
  10. # Others have used the snprintf from:
  11. #
  12. # http://www.ijs.si/software/snprintf/
  13. #
  14. # We've not tried this yet but others have had good success. Our only
  15. # piece of advice for those running an OS without built in snprintf()
  16. # is to upgrade. :)
  17. #
  18. #
  19. # Generic compiler (usually linked to gcc on most platforms)
  20. CC = cc
  21.  
  22. # GNU..
  23. #CC = gcc
  24.  
  25. # Normal systems flags
  26. CFLAGS = -O3 -funroll-loops -fomit-frame-pointer -Wall
  27.  
  28. # Debug mode for kalasag
  29. #CFLAGS = -Wall -g -DNODAEMON -DDEBUG
  30. #CFLAGS = -Wall -g -DNODAEMON
  31. #CFLAGS = -Wall -g -DDEBUG
  32.  
  33. # Profiler mode for kalasag
  34. #CFLAGS = -pg -O -Wall -DNODAEMON
  35. #LIBS = /usr/lib/libefence.a
  36.  
  37. INSTALLDIR = /opt
  38. CHILDDIR=/kalasag
  39.  
  40. all:
  41.                 @echo "Usage: make <systype>"
  42.                 @echo "<systype> is one of: linux, debian-linux, bsd, solaris, hpux, hpux-gcc,"
  43.                 @echo "freebsd, osx, openbsd, netbsd, bsdi, aix, osf, irix, generic"
  44.                 @echo ""
  45.                 @echo "This code requires snprintf()/vsnprintf() system calls"
  46.                 @echo "to work. If you run a modern OS it should work on"
  47.                 @echo "your system with 'make generic'. If you get it to"
  48.                 @echo "work on an unlisted OS please write us with the"
  49.                 @echo "changes."
  50.                 @echo ""
  51.                 @echo "Install: make install"
  52.                 @echo ""
  53.                 @echo "NOTE: This will install the package in this"
  54.                 @echo "      directory: $(INSTALLDIR)"
  55.                 @echo ""
  56.                 @echo "Edit the makefile if you wish to change these paths."
  57.                 @echo "Any existing files will be overwritten."
  58.                 @echo ""
  59.  
  60. clean:         
  61.                 /bin/rm ./kalasag
  62.  
  63. uninstall:     
  64.                 /bin/rm $(INSTALLDIR)$(CHILDDIR)/*
  65.                 /bin/rmdir $(INSTALLDIR)$(CHILDDIR)
  66.  
  67. install:       
  68.                 @echo "Creating directory $(INSTALLDIR)"
  69.                 @if [ ! -d $(INSTALLDIR) ]; then /bin/mkdir $(INSTALLDIR); fi
  70.                 @echo "Setting directory permissions"
  71.                 @echo "Creating kalasag directory $(INSTALLDIR)$(CHILDDIR)"
  72.                 @if [ ! -d $(INSTALLDIR)$(CHILDDIR) ]; then /bin/mkdir $(INSTALLDIR)$(CHILDDIR); fi
  73.                 @echo "Setting directory permissions"
  74.                 chmod 700 $(INSTALLDIR)$(CHILDDIR)
  75.                 @echo "Copying files"
  76.                 cp ./kalasag.conf $(INSTALLDIR)$(CHILDDIR)
  77.                 cp ./kalasag.ignore $(INSTALLDIR)$(CHILDDIR)
  78.                 cp ./kalasag $(INSTALLDIR)$(CHILDDIR)
  79.                 @echo "Setting permissions"
  80.                 chmod 600 $(INSTALLDIR)$(CHILDDIR)/kalasag.ignore
  81.                 chmod 600 $(INSTALLDIR)$(CHILDDIR)/kalasag.conf
  82.                 chmod 700 $(INSTALLDIR)$(CHILDDIR)/kalasag
  83.                 @echo ""
  84.                 @echo ""
  85.                 @echo "Edit $(INSTALLDIR)$(CHILDDIR)/kalasag.conf and change"
  86.                 @echo "your settings if you haven't already. (route, etc)"
  87.                 @echo ""
  88.  
  89. linux:         
  90.                 SYSTYPE=linux
  91.                 @echo "Making $(SYSTYPE)"
  92.                 $(CC) $(CFLAGS) -DLINUX -DSUPPORT_STEALTH -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c $(LIBS)
  93.  
  94. linux-x86_64:          
  95.                 SYSTYPE=linux
  96.                 @echo "Making $(SYSTYPE)"
  97.                 $(CC) $(CFLAGS) -m64 -DLINUX -DSUPPORT_STEALTH -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c $(LIBS)
  98.  
  99. debian-linux:          
  100.                 SYSTYPE=debian-linux
  101.                 @echo "Making $(SYSTYPE)"
  102.                 $(CC) $(CFLAGS) -DLINUX -DDEBIAN -DSUPPORT_STEALTH -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c $(LIBS)
  103.  
  104.  
  105. bsd:           
  106.                 SYSTYPE=bsd
  107.                 @echo "Making $(SYSTYPE)"
  108.                 $(CC) $(CFLAGS) -DBSD44 -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c
  109.  
  110.  
  111. openbsd:               
  112.                 SYSTYPE=openbsd
  113.                 @echo "Making $(SYSTYPE)"
  114.                 $(CC) $(CFLAGS) -DBSD44 -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c
  115.  
  116.  
  117. freebsd:               
  118.                 SYSTYPE=freebsd
  119.                 @echo "Making $(SYSTYPE)"
  120.                 $(CC) $(CFLAGS) -DBSD44 -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c
  121.  
  122. osx:           
  123.                 SYSTYPE=osx
  124.                 @echo "Making $(SYSTYPE)"
  125.                 $(CC) $(CFLAGS) -DBSD44 -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c
  126.  
  127.  
  128. netbsd:        
  129.                 SYSTYPE=netbsd
  130.                 @echo "Making $(SYSTYPE)"
  131.                 $(CC) $(CFLAGS) -DBSD44 -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c
  132.  
  133.  
  134. bsdi:          
  135.                 SYSTYPE=bsdi
  136.                 @echo "Making $(SYSTYPE)"
  137.                 $(CC) $(CFLAGS) -DBSD44 -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c
  138.  
  139.  
  140. generic:               
  141.                 SYSTYPE=generic
  142.                 @echo "Making $(SYSTYPE)"
  143.                 $(CC) $(CFLAGS) -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c
  144.  
  145.  
  146. hpux:          
  147.                 SYSTYPE=hpux
  148.                 @echo "Making $(SYSTYPE)"
  149.                 $(CC) -Ae -DHPUX -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c
  150.  
  151.  
  152. hpux-gcc:
  153.                 SYSTYPE=hpux-gcc
  154.                 @echo "Making $(SYSTYPE)"
  155.                 $(CC) $(CFLAGS) -DHPUX -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c
  156.  
  157.  
  158. solaris:               
  159.                 SYSTYPE=solaris
  160.                 @echo "Making $(SYSTYPE)"
  161.                 $(CC) -lnsl -lsocket -lresolv -lc -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c
  162.  
  163.  
  164. aix:           
  165.                 SYSTYPE=aix
  166.                 @echo "Making $(SYSTYPE)"
  167.                 $(CC) $(CFLAGS) -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c
  168.  
  169.  
  170. osf:
  171.                 SYSTYPE=osf
  172.                 @echo "Making $(SYSTYPE)"
  173.                 $(CC) $(CFLAGS) -taso -ldb -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c
  174.  
  175.  
  176. irix:
  177.                 SYSTYPE=irix
  178.                 @echo "Making $(SYSTYPE)"
  179.                 $(CC) $(CFLAGS) -O -n32 -mips3 -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c
  180.  
  181.  
  182. # NeXTSTEP Users. NeXT used to work, but we changed the log function and
  183. # it now uses vsnprintf() to format strings. This means that this
  184. # version does not work under NeXTSTEP until we can find a workable
  185. # vsnprintf() call to put in the program. Sorry. If you have some good
  186. # vsnprintf() code to use under NeXT please send it to us and we'll
  187. # include it on the next update.
  188. #next:         
  189. #               SYSTYPE=next
  190. #               @echo "Making $(SYSTYPE)"
  191. #               $(CC) $(CFLAGS) -DNEXT -DHAS_NO_SNPRINTF -posix -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c
  192.  
filedropkalasag.git-1c9f013.tar.bz2 new
20.95 KB
32 downloads
filedropkalasag.git-1c9f013.zip
25.81 KB
10 downloads
filedropkalasag.git-3ca3612.tar.bz2
20.80 KB
33 downloads
filedropkalasag.git-3ca3612.zip
25.66 KB
10 downloads
filedropkalasag.git-2ffeaa6.tar.bz2
20.80 KB
38 downloads
filedropkalasag.git-2ffeaa6.zip
25.65 KB
12 downloads
filedropkalasag.git-2834a11.tar.bz2
20.84 KB
36 downloads
filedropkalasag.git-2834a11.zip
25.72 KB
13 downloads
filedropkalasag.git-afd7b31.tar.bz2
20.84 KB
34 downloads
filedropkalasag.git-afd7b31.zip
25.71 KB
12 downloads
filedropkalasag.git-97c89e1.tar.bz2
20.82 KB
33 downloads
filedropkalasag.git-97c89e1.zip
25.68 KB
12 downloads
filedropkalasag.git-1141d13.tar.bz2
20.65 KB
36 downloads
filedropkalasag.git-1141d13.zip
25.37 KB
11 downloads
filedropkalasag.git-ee3c17b.tar.bz2
20.65 KB
32 downloads
filedropkalasag.git-ee3c17b.zip
25.34 KB
11 downloads
filedropkalasag.git-4032c54.tar.bz2
20.63 KB
30 downloads
filedropkalasag.git-4032c54.zip
25.13 KB
9 downloads
filedropkalasag.git-e51a2a6.tar.bz2
20.65 KB
340 downloads
filedropkalasag.git-e51a2a6.zip
25.13 KB
200 downloads
filedropkalasag.git-599c93a.tar.bz2
20.63 KB
328 downloads
filedropkalasag.git-599c93a.zip
25.11 KB
1,537 downloads
filedropkalasag.git-acdc640.tar.bz2
20.63 KB
319 downloads
filedropkalasag.git-acdc640.zip
25.10 KB
221 downloads