The Poor Man's (or Woman's) Intrusion Detection System
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.
 
 

29 lines
474 B

  1. iptraffic: iptraffic.cpp strutil.o data.o config.o cli.o
  2. g++ -o $@ $@.cpp strutil.o data.o config.o cli.o
  3. config.o: config.cpp config.h strutil.o data.o
  4. g++ -c -o $@ config.cpp
  5. data.o: data.cpp data.h strutil.o
  6. g++ -c -o $@ data.cpp
  7. cli.o: cli.cpp cli.h
  8. g++ -c -o $@ cli.cpp
  9. strutil.o: strutil.cpp strutil.h
  10. g++ -c -o $@ strutil.cpp
  11. .PHONY: run
  12. run: iptraffic
  13. ./iptraffic
  14. .PHONY: clean distclean
  15. clean:
  16. rm *.o || true
  17. distclean: clean
  18. rm iptraffic || true