kalasag.org

kalasag.org

Git

This blob has been accessed 342 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, linux-x86_64, 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/systemctl stop kalasag.service
  65.                 /bin/systemctl disable kalasag.service
  66.                 /bin/rm /usr/lib/systemd/system/kalasag.service
  67.                 /bin/rm $(INSTALLDIR)$(CHILDDIR)/*
  68.                 /bin/rmdir $(INSTALLDIR)$(CHILDDIR)
  69.  
  70. install:       
  71.                 @if [ ! -d $(INSTALLDIR)$(CHILDDIR) ]; then mkdir -p $(INSTALLDIR)$(CHILDDIR); fi
  72.                 @chmod 700 $(INSTALLDIR)$(CHILDDIR)
  73.                 @cp ./kalasag.conf $(INSTALLDIR)$(CHILDDIR)
  74.                 @cp ./kalasag.ignore $(INSTALLDIR)$(CHILDDIR)
  75.                 @cp ./kalasag $(INSTALLDIR)$(CHILDDIR)
  76.                 @if [ -d /usr/lib/systemd/system ]; then cp ./kalasag.service /usr/lib/systemd/system/; systemctl enable kalasag.service; fi
  77.                 @chmod 600 $(INSTALLDIR)$(CHILDDIR)/kalasag.ignore
  78.                 @chmod 600 $(INSTALLDIR)$(CHILDDIR)/kalasag.conf
  79.                 @chmod 700 $(INSTALLDIR)$(CHILDDIR)/kalasag
  80.                 @echo ""
  81.                 @echo 'Issue "systemctl restart kalasag.service" after editing $(INSTALLDIR)$(CHILDDIR)/kalasag.conf.'
  82.                 @echo ""
  83.  
  84. linux:         
  85.                 SYSTYPE=linux
  86.                 @echo "Making $(SYSTYPE)"
  87.                 $(CC) $(CFLAGS) -DLINUX -DSUPPORT_STEALTH -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c $(LIBS)
  88.  
  89. linux-x86_64:          
  90.                 SYSTYPE=linux
  91.                 @echo "Making $(SYSTYPE)"
  92.                 $(CC) $(CFLAGS) -m64 -DLINUX -DSUPPORT_STEALTH -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c $(LIBS)
  93.  
  94. debian-linux:          
  95.                 SYSTYPE=debian-linux
  96.                 @echo "Making $(SYSTYPE)"
  97.                 $(CC) $(CFLAGS) -DLINUX -DDEBIAN -DSUPPORT_STEALTH -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c $(LIBS)
  98.  
  99.  
  100. bsd:           
  101.                 SYSTYPE=bsd
  102.                 @echo "Making $(SYSTYPE)"
  103.                 $(CC) $(CFLAGS) -DBSD44 -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c
  104.  
  105.  
  106. openbsd:               
  107.                 SYSTYPE=openbsd
  108.                 @echo "Making $(SYSTYPE)"
  109.                 $(CC) $(CFLAGS) -DBSD44 -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c
  110.  
  111.  
  112. freebsd:               
  113.                 SYSTYPE=freebsd
  114.                 @echo "Making $(SYSTYPE)"
  115.                 $(CC) $(CFLAGS) -DBSD44 -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c
  116.  
  117. osx:           
  118.                 SYSTYPE=osx
  119.                 @echo "Making $(SYSTYPE)"
  120.                 $(CC) $(CFLAGS) -DBSD44 -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c
  121.  
  122.  
  123. netbsd:        
  124.                 SYSTYPE=netbsd
  125.                 @echo "Making $(SYSTYPE)"
  126.                 $(CC) $(CFLAGS) -DBSD44 -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c
  127.  
  128.  
  129. bsdi:          
  130.                 SYSTYPE=bsdi
  131.                 @echo "Making $(SYSTYPE)"
  132.                 $(CC) $(CFLAGS) -DBSD44 -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c
  133.  
  134.  
  135. generic:               
  136.                 SYSTYPE=generic
  137.                 @echo "Making $(SYSTYPE)"
  138.                 $(CC) $(CFLAGS) -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c
  139.  
  140.  
  141. hpux:          
  142.                 SYSTYPE=hpux
  143.                 @echo "Making $(SYSTYPE)"
  144.                 $(CC) -Ae -DHPUX -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c
  145.  
  146.  
  147. hpux-gcc:
  148.                 SYSTYPE=hpux-gcc
  149.                 @echo "Making $(SYSTYPE)"
  150.                 $(CC) $(CFLAGS) -DHPUX -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c
  151.  
  152.  
  153. solaris:               
  154.                 SYSTYPE=solaris
  155.                 @echo "Making $(SYSTYPE)"
  156.                 $(CC) -lnsl -lsocket -lresolv -lc -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c
  157.  
  158.  
  159. aix:           
  160.                 SYSTYPE=aix
  161.                 @echo "Making $(SYSTYPE)"
  162.                 $(CC) $(CFLAGS) -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c
  163.  
  164.  
  165. osf:
  166.                 SYSTYPE=osf
  167.                 @echo "Making $(SYSTYPE)"
  168.                 $(CC) $(CFLAGS) -taso -ldb -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c
  169.  
  170.  
  171. irix:
  172.                 SYSTYPE=irix
  173.                 @echo "Making $(SYSTYPE)"
  174.                 $(CC) $(CFLAGS) -O -n32 -mips3 -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c
  175.  
  176.  
  177. # NeXTSTEP Users. NeXT used to work, but we changed the log function and
  178. # it now uses vsnprintf() to format strings. This means that this
  179. # version does not work under NeXTSTEP until we can find a workable
  180. # vsnprintf() call to put in the program. Sorry. If you have some good
  181. # vsnprintf() code to use under NeXT please send it to us and we'll
  182. # include it on the next update.
  183. #next:         
  184. #               SYSTYPE=next
  185. #               @echo "Making $(SYSTYPE)"
  186. #               $(CC) $(CFLAGS) -DNEXT -DHAS_NO_SNPRINTF -posix -o ./kalasag ./kalasag.c ./kalasag_io.c ./kalasag_util.c
  187.  
filedropkalasag.git-1c9f013.tar.bz2 new
20.95 KB
1 download
filedropkalasag.git-1c9f013.zip
25.81 KB
1 download
filedropkalasag.git-3ca3612.tar.bz2
20.80 KB
1 download
filedropkalasag.git-3ca3612.zip
25.66 KB
1 download
filedropkalasag.git-2ffeaa6.tar.bz2
20.80 KB
1 download
filedropkalasag.git-2ffeaa6.zip
25.65 KB
1 download
filedropkalasag.git-2834a11.tar.bz2
20.84 KB
1 download
filedropkalasag.git-2834a11.zip
25.72 KB
1 download
filedropkalasag.git-afd7b31.tar.bz2
20.84 KB
1 download
filedropkalasag.git-afd7b31.zip
25.71 KB
1 download
filedropkalasag.git-97c89e1.tar.bz2
20.82 KB
1 download
filedropkalasag.git-97c89e1.zip
25.68 KB
1 download
filedropkalasag.git-1141d13.tar.bz2
20.65 KB
1 download
filedropkalasag.git-1141d13.zip
25.37 KB
1 download
filedropkalasag.git-ee3c17b.tar.bz2
20.65 KB
1 download
filedropkalasag.git-ee3c17b.zip
25.34 KB
1 download
filedropkalasag.git-4032c54.tar.bz2
20.63 KB
1 download
filedropkalasag.git-4032c54.zip
25.13 KB
1 download
filedropkalasag.git-e51a2a6.tar.bz2
20.65 KB
306 downloads
filedropkalasag.git-e51a2a6.zip
25.13 KB
190 downloads
filedropkalasag.git-599c93a.tar.bz2
20.63 KB
296 downloads
filedropkalasag.git-599c93a.zip
25.11 KB
1,521 downloads
filedropkalasag.git-acdc640.tar.bz2
20.63 KB
287 downloads
filedropkalasag.git-acdc640.zip
25.10 KB
207 downloads