mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-23 15:02:27 +00:00
38 lines
845 B
Makefile
Executable File
38 lines
845 B
Makefile
Executable File
OBJS= dna.o server.o client.o peers.o ciphers.o responses.o packetformats.o dataformats.o \
|
|
hlrdata.o srandomdev.o simulate.o batman.o overlay.o export.o gateway.o
|
|
HDRS= Makefile mphlr.h
|
|
LDFLAGS= @LDFLAGS@
|
|
DEFS= @DEFS@
|
|
|
|
all: dna
|
|
|
|
%.o: %.c $(HDRS)
|
|
$(CC) $(DEFS) -Os -g -Wall -c $<
|
|
|
|
dna: $(OBJS)
|
|
$(CC) -Os -g -Wall -o dna $(OBJS) $(LDFLAGS)
|
|
|
|
testserver: dna
|
|
clear
|
|
rm hlr.dat
|
|
./dna -vvv -S 1 -f hlr.dat
|
|
|
|
testcreate: dna
|
|
clear
|
|
./dna -vvv -d 0427679796 -C
|
|
@touch testcreate
|
|
|
|
testget: dna testcreate
|
|
clear
|
|
./dna -vvv -d 0427679796 -R dids | tee testget
|
|
|
|
testset: dna testget
|
|
clear
|
|
# Try writing a value to a variable
|
|
echo "short value" >shortvalue.txt
|
|
./dna -vvv -s `cat testget | cut -f2 -d: | tail -1` -i 0 -W note=@shortvalue.txt
|
|
|
|
testbigset: testget
|
|
clear
|
|
./dna -vvv -s `cat testget | cut -f2 -d: | tail -1` -i 0 -W note=@411.txt
|