Commit c7de92cc authored by Titouan Soulard's avatar Titouan Soulard

example: follow naming convention of bridge

parent b67c4205
......@@ -4,16 +4,24 @@ LIB_FLAGS =-lc -ldl -lm -libverbs -lpthread -L./out
# Libraries after `--no-as-needed` are forcefully loaded: they are required by Amarisoft libraries
FORCE_LIB_FLAGS = -Wl,--no-as-needed -lm -lpthread
all: out/libcapulet.so out/libpotoml.so out/libtrx_rdma.so out/libtrx_play.so out/rdma_standalone out/generate_iq_samples out/trx-bridge
all: out/libcapulet.so out/libpotoml.so out/libtrx_rdma.so out/libtrx_play.so out/rdma-test out/generate-iq-samples out/trx-bridge
install: all
ln -sfr out/libcapulet.so /usr/local/lib/
ln -sfr out/libtrx_rdma.so /usr/local/lib/
ln -sfr out/libpotoml.so /usr/local/lib/
ldconfig
ln -sfr out/rdma_standalone /usr/local/bin/
ln -sfr out/rdma-test /usr/local/bin/
ln -sfr out/generate-iq-samples /usr/local/bin/
ln -sfr out/trx-bridge /usr/local/bin/
uninstall:
rm /usr/local/lib/libcapulet.so ||:
rm /usr/local/lib/libpotoml.so ||:
ldconfig
rm /usr/local/bin/rdma-test ||:
rm /usr/local/bin/generate-iq-samples ||:
rm /usr/local/bin/trx-bridge ||:
clean:
rm out/* ||:
rm **/*.o ||:
......@@ -37,10 +45,10 @@ out/libtrx_rdma.so: common/circular_buffer.lo libtrx/trx_rdma.lo
out/libtrx_play.so: common/circular_buffer.lo libtrx/trx_play.lo
gcc -shared -fPIC -DPIC -o $@ $^ $(LIB_FLAGS)
out/rdma_standalone: example/rdma_standalone.o out/libcapulet.so
out/rdma-test: example/rdma_test.o out/libcapulet.so
gcc $(CFLAGS) -o $@ $< $(LIB_FLAGS) -lcapulet
out/generate_iq_samples: example/generate_iq_samples.o
out/generate-iq-samples: example/generate_iq_samples.o
gcc $(CFLAGS) -o $@ $^ $(LIB_FLAGS)
out/trx-bridge: trx-bridge/bridge.o out/libpotoml.so
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment