Kagera Session Manager
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 line
487B

  1. CC = gcc
  2. CFLAGS = -O2 -s -D_GNU_SOURCE
  3. LDLIBS = -lcrypt
  4. PREFIX =
  5. BINDIR = $(PREFIX)/usr/sbin
  6. all: sessmgr
  7. @echo "All done!"
  8. sessmgr: sessmgr.o sha256.o
  9. $(CC) $(CFLAGS) $(LDLIBS) sessmgr.o sha256.o -o sessmgr
  10. sessmgr.o: sessmgr.c
  11. $(CC) $(CFLAGS) -c sessmgr.c
  12. sha256.o: sha256.c
  13. $(CC) $(CFLAGS) -c sha256.c
  14. install:
  15. mkdir -p $(BINDIR)
  16. cp sessmgr $(BINDIR)
  17. @echo "All done!"
  18. uninstall:
  19. rm -f $(BINDIR)/sessmgr
  20. @echo "All done!"
  21. clean:
  22. rm -f sessmgr *.o
  23. @echo "All done!"