mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00

This allow builders to control which make program to use and let make take care of changing the working directory.
47 lines
867 B
Makefile
47 lines
867 B
Makefile
all: protocol opensnitch_daemon gui
|
|
|
|
install:
|
|
@$(MAKE) -C daemon install
|
|
@$(MAKE) -C ui install
|
|
|
|
protocol:
|
|
@$(MAKE) -C proto
|
|
|
|
opensnitch_daemon:
|
|
@$(MAKE) -C daemon
|
|
|
|
gui:
|
|
@$(MAKE) -C ui
|
|
|
|
clean:
|
|
@$(MAKE) -C daemon clean
|
|
@$(MAKE) -C proto clean
|
|
@$(MAKE) -C ui clean
|
|
|
|
run:
|
|
cd ui && pip3 install --upgrade . && cd ..
|
|
opensnitch-ui --socket unix:///tmp/osui.sock &
|
|
./daemon/opensnitchd -rules-path /etc/opensnitchd/rules -ui-socket unix:///tmp/osui.sock -cpu-profile cpu.profile -mem-profile mem.profile
|
|
|
|
test:
|
|
clear
|
|
$(MAKE) clean
|
|
clear
|
|
mkdir -p rules
|
|
$(MAKE)
|
|
clear
|
|
$(MAKE) run
|
|
|
|
adblocker:
|
|
clear
|
|
$(MAKE) clean
|
|
clear
|
|
$(MAKE)
|
|
clear
|
|
python make_ads_rules.py
|
|
clear
|
|
cd ui && pip3 install --upgrade . && cd ..
|
|
opensnitch-ui --socket unix:///tmp/osui.sock &
|
|
./daemon/opensnitchd -rules-path /etc/opensnitchd/rules -ui-socket unix:///tmp/osui.sock
|
|
|
|
|