mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-23 16:58:33 +03:00
simtrace2-remsim: Improve support for many interfaces + devices
Rather than using the first available interface on the first available device, we now have a "simtrace2-list" program that lists all compatible interfaces on all configurations of all devices on the system
This commit is contained in:
@@ -1,16 +1,19 @@
|
||||
LDFLAGS=`pkg-config --libs libusb-1.0 libosmocore` -losmocore
|
||||
CFLAGS=-Wall -g
|
||||
|
||||
all: simtrace2-remsim simtrace2-remsim-usb2udp
|
||||
all: simtrace2-remsim simtrace2-remsim-usb2udp simtrace2-list
|
||||
|
||||
simtrace2-remsim: simtrace2-remsim.o apdu_dispatch.o simtrace2-discovery.o
|
||||
simtrace2-remsim: simtrace2-remsim.o apdu_dispatch.o simtrace2-discovery.o libusb_util.o
|
||||
$(CC) -o $@ $^ $(LDFLAGS) -losmosim
|
||||
|
||||
simtrace2-remsim-usb2udp: usb2udp.o simtrace2-discovery.o
|
||||
$(CC) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
simtrace2-list: simtrace2_usb.o libusb_util.o
|
||||
$(CC) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) `pkg-config --cflags libusb-1.0 libosmocore` -o $@ -c $^
|
||||
|
||||
clean:
|
||||
@rm -f simtrace2-remsim simtrace2-remsim-usb2udp *.o
|
||||
@rm -f simtrace2-remsim simtrace2-remsim-usb2udp simtrace2-list *.o
|
||||
|
||||
Reference in New Issue
Block a user