Skip to content
Snippets Groups Projects
Commit 097761bc authored by clohr's avatar clohr
Browse files

port 1236

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/C/branches/version-0.7@2884 b32b6428-25c9-4566-ad07-03861ab6144f
parent 2fe56052
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ proper: clean uninstall
-rm -f $(PROG) xaal-$(PROG).service
test: all
LD_LIBRARY_PATH=. ./$(PROG) -a 224.0.29.200 -p 1234 -s my_secret
LD_LIBRARY_PATH=. ./$(PROG) -a 224.0.29.200 -p 1236 -s my_secret
.PHONY: all clean proper test install uninstall svnignore
......
......@@ -32,7 +32,7 @@ test: all
@echo " " You can test $(PROGS)
@echo " " First, do: export LD_LIBRARY_PATH+=:.
@echo " " Then, eg.:
@/bin/echo -e "" $(foreach i,$(PROGS)," ./$(i) -a 224.0.29.200 -p 1234 -s my_secret\n")
@/bin/echo -e "" $(foreach i,$(PROGS)," ./$(i) -a 224.0.29.200 -p 1236 -s my_secret\n")
Makefile.dep: $(PROGS:=.c)
......
......@@ -33,13 +33,13 @@ test: all
@echo " " You can test $(DEMOS)
@echo " " First, do: export LD_LIBRARY_PATH+=:.
@echo " " Then, eg.:
@/bin/echo -e "" $(foreach i,$(DEMOS)," ./$(i) -a 224.0.29.200 -p 1234 -s my_secret\n")
@/bin/echo -e "" $(foreach i,$(DEMOS)," ./$(i) -a 224.0.29.200 -p 1236 -s my_secret\n")
DEMO2 = thermoPC dummyLamp dumper dummyDimmer dummyShutter lampCommander
test2: $(DEMO2)
xfce4-terminal -e true $(foreach i,$(DEMO2),--tab -e "$(SHELL) -c \"LD_LIBRARY_PATH+=:. ./$(i) -a 224.0.29.200 -p 1234 -s my_secret\"" -T $(i))
xfce4-terminal -e true $(foreach i,$(DEMO2),--tab -e "$(SHELL) -c \"LD_LIBRARY_PATH+=:. ./$(i) -a 224.0.29.200 -p 1236 -s my_secret\"" -T $(i))
Makefile.dep: $(DEMOS:=.c)
......
......@@ -15,10 +15,10 @@ proper: clean uninstall
-rm -f $(PROG) xaal-$(PROG).service
test: $(PROG)
-LD_LIBRARY_PATH+=:. ./$(PROG) -a 224.0.29.200 -p 1234 -s my_secret -i ./via_upnpav.sh
-LD_LIBRARY_PATH+=:. ./$(PROG) -a 224.0.29.200 -p 1236 -s my_secret -i ./via_upnpav.sh
test2: $(PROG)
-LD_LIBRARY_PATH+=:. ./$(PROG) -a 224.0.29.200 -p 1234 -s my_secret -i ./via_phone.tcl
-LD_LIBRARY_PATH+=:. ./$(PROG) -a 224.0.29.200 -p 1236 -s my_secret -i ./via_phone.tcl
test3: $(PROG)
-LD_LIBRARY_PATH+=:. ./$(PROG) -a 224.0.29.200 -p 1235 -s xaal -i ./via_tts.sh
......
......@@ -16,7 +16,7 @@ proper: clean
test: $(PROG)
-rm -f ./generic-sender.pipe
-LD_LIBRARY_PATH+=:. ./generic-sender -a 224.0.29.200 -p 1234 -s my_secret -P ./generic-sender.pipe -D motion_sensor.basic &
-LD_LIBRARY_PATH+=:. ./generic-sender -a 224.0.29.200 -p 1236 -s my_secret -P ./generic-sender.pipe -D motion_sensor.basic &
-trap 'killall generic-sender' SIGINT; motion -c ./motion.conf
Makefile.dep: $(PROG).c
......
......@@ -43,7 +43,7 @@ test: all
@echo " " You can test $(DEMOS)
@echo " " First, do: export LD_LIBRARY_PATH+=:.
@echo " " Then, eg.:
@/bin/echo -e "" $(foreach i,$(DEMOS)," ./$(i) -a 224.0.29.200 -p 1234 -s my_secret\n")
@/bin/echo -e "" $(foreach i,$(DEMOS)," ./$(i) -a 224.0.29.200 -p 1236 -s my_secret\n")
Makefile.dep: lib$(LIB).c $(DEMOS:=.c) $(DEMO).c
$(CC) $(CFLAGS) -MM $^ > $@
......
......@@ -15,7 +15,7 @@ proper: clean
-rm -f $(PROG)
test: $(PROG)
./$(PROG) -a 224.0.29.200 -p 1234 -s my_secret
./$(PROG) -a 224.0.29.200 -p 1236 -s my_secret
Makefile.dep: $(PROG).c
$(CC) $(CFLAGS) -MM $^ > $@
......
......@@ -11,7 +11,7 @@ proper: clean uninstall
-rm -f $(PROG) xaal-$(PROG).service
test: all
./$(PROG) -a 224.0.29.200 -p 1234 -r 1235
./$(PROG) -a 224.0.29.200 -p 1236 -r 1235
.PHONY: all clean proper test install uninstall svnignore
......
......@@ -26,7 +26,7 @@ proper: clean uninstall
test: splsensor splog
-killall splsensor
-LD_LIBRARY_PATH+=:. trap 'killall splsensor' SIGINT; ./splsensor -a 224.0.29.200 -p 1234 -s my_secret $(SPLARGS) & ./splog -a 224.0.29.200 -p 1234 -s my_secret
-LD_LIBRARY_PATH+=:. trap 'killall splsensor' SIGINT; ./splsensor -a 224.0.29.200 -p 1236 -s my_secret $(SPLARGS) & ./splog -a 224.0.29.200 -p 1236 -s my_secret
Makefile.dep: splsensor.c beep.c spl.c
$(CC) $(CFLAGS) -MM $^ > $@
......
......@@ -15,7 +15,7 @@ proper: clean uninstall
-rm -f $(PROG) xaal-$(PROG).service
test: $(PROG)
-LD_LIBRARY_PATH+=:. ./$(PROG) -a 224.0.29.200 -p 1234 -s my_secret
-LD_LIBRARY_PATH+=:. ./$(PROG) -a 224.0.29.200 -p 1236 -s my_secret
Makefile.dep: $(PROG).c
$(CC) $(CFLAGS) -MM $^ > $@
......
......@@ -27,14 +27,14 @@ test:
@echo make test_file
test_tcp: $(PROG)
LD_LIBRARY_PATH+=:. ./$(PROG) -S floor1.enstb.org -P 5000 -a 224.0.29.200 -p 1235 -s xaal
# LD_LIBRARY_PATH+=:. ./$(PROG) -S 192.168.5.5 -P 5000 -a 224.0.29.200 -p 1234 -s my_secret
LD_LIBRARY_PATH+=:. ./$(PROG) -S floor1.enstb.org -P 5000 -a 224.0.29.200 -p 1236 -s xaal
# LD_LIBRARY_PATH+=:. ./$(PROG) -S 192.168.5.5 -P 5000 -a 224.0.29.200 -p 1236 -s my_secret
test_usb: $(PROG)
LD_LIBRARY_PATH+=:. ./$(PROG) -D /dev/ttyUSB0 -a 224.0.29.200 -p 1234 -s my_secret
LD_LIBRARY_PATH+=:. ./$(PROG) -D /dev/ttyUSB0 -a 224.0.29.200 -p 1236 -s my_secret
test_file: $(PROG)
export LD_LIBRARY_PATH=:. ; pv -L 80 -q ./floor_alert.dump | ./$(PROG) -F - -a 224.0.29.200 -p 1234 -s my_secret
export LD_LIBRARY_PATH=:. ; pv -L 80 -q ./floor_alert.dump | ./$(PROG) -F - -a 224.0.29.200 -p 1236 -s my_secret
Makefile.dep: $(PROG).c
$(CC) $(CFLAGS) -MM $^ > $@
......
......@@ -13,7 +13,7 @@ all: $(PROG)
$(PROG): $(OBJS)
test: $(PROG)
LD_LIBRARY_PATH+=:. ./$(PROG) -a 224.0.29.200 -p 1234 -s my_secret
LD_LIBRARY_PATH+=:. ./$(PROG) -a 224.0.29.200 -p 1236 -s my_secret
clean:
-rm -f $(OBJS) *~
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment