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.
 
 
 
 

64 lines
2.1 KiB

  1. # cm-20220225 testing controlpanel messages with symbols left in
  2. #O=-s
  3. ### Program Targets ###
  4. .PHONY: all controlpanel/trafficctrl
  5. all: iptraffic trafficmon/badtrafficrpt trafficmon/dnsblacklist trafficmon/domblacklist trafficmon/impblack trafficmon/trafficmon controlpanel/trafficctrl
  6. controlpanel/trafficctrl:
  7. cd controlpanel && make trafficctrl
  8. iptraffic: iptraffic.cpp strutil.o data.o config.o cli.o miniini.o
  9. g++ $O -o $@ $@.cpp strutil.o data.o config.o cli.o miniini.o
  10. trafficmon/badtrafficrpt: trafficmon/badtrafficrpt.cpp cli.o miniini.o strutil.o trafficmon/appbase.o
  11. g++ $O -o $@ $@.cpp strutil.o cli.o miniini.o trafficmon/appbase.o -lcppdb
  12. trafficmon/dnsblacklist: trafficmon/dnsblacklist.cpp cli.o miniini.o strutil.o trafficmon/appbase.o
  13. g++ $O -o $@ $@.cpp strutil.o cli.o miniini.o trafficmon/appbase.o -lcppdb
  14. trafficmon/domblacklist: trafficmon/domblacklist.cpp cli.o miniini.o strutil.o trafficmon/appbase.o
  15. g++ $O -o $@ $@.cpp strutil.o cli.o miniini.o trafficmon/appbase.o -lcppdb
  16. trafficmon/impblack: trafficmon/impblack.cpp strutil.o cli.o miniini.o trafficmon/appbase.o
  17. g++ $O -o $@ $@.cpp strutil.o cli.o miniini.o trafficmon/appbase.o -lcppdb
  18. trafficmon/trafficmon: trafficmon/trafficmon.cpp strutil.o data.o config.o cli.o miniini.o trafficmon/appbase.o
  19. g++ $O -o $@ $@.cpp strutil.o data.o config.o cli.o miniini.o trafficmon/appbase.o -lcppdb
  20. ### Libs ###
  21. cli.o: cli.cpp cli.h
  22. g++ $O -c -o $@ cli.cpp
  23. config.o: config.cpp config.h strutil.o data.o miniini.o
  24. g++ $O -c -o $@ config.cpp
  25. data.o: data.cpp data.h strutil.o
  26. g++ $O -c -o $@ data.cpp
  27. miniini.o: miniini.cpp miniini.h strutil.o
  28. g++ $O -c -o $@ miniini.cpp
  29. strutil.o: strutil.cpp strutil.h
  30. g++ $O -c -o $@ strutil.cpp
  31. trafficmon/appbase.o: trafficmon/appbase.cpp trafficmon/appbase.h cli.o miniini.o
  32. g++ $O -c -o $@ trafficmon/appbase.cpp
  33. ### Source Maintenance ###
  34. .PHONY: clean distclean
  35. clean:
  36. rm *.o */*.o || true
  37. distclean: clean
  38. rm iptraffic trafficmon/trafficmon trafficmon/badtrafficrpt || true
  39. rm trafficmon/dnsblacklist trafficmon/domblacklist trafficmon/impblack || true
  40. rm *.deb || true
  41. cd controlpanel && make distclean