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.
 
 

27 lines
490 B

  1. CC = g++
  2. CFLAGS = -O2 -s -D_GNU_SOURCE -Werror -W -Wall -Wextra -ansi -pedantic
  3. LDLIBS =
  4. PREFIX =
  5. BINDIR = $(PREFIX)/usr/sbin
  6. all: forbidhosts
  7. forbidhosts: forbidhosts.o
  8. $(CC) $(CFLAGS) $(LDLIBS) forbidhosts.o -o forbidhosts
  9. forbidhosts.o: forbidhosts.cpp
  10. $(CC) $(CFLAGS) $(DEFS) -c forbidhosts.cpp
  11. install:
  12. mkdir -p $(BINDIR)
  13. cp forbidhosts $(BINDIR)
  14. @echo "All done!"
  15. uninstall:
  16. @rm -f $(BINDIR)/foridhosts
  17. @echo "All done!"
  18. clean:
  19. rm -f forbidhosts *.o
  20. @echo "All done!"