aboutsummaryrefslogtreecommitdiffstats
path: root/host/Makefile
blob: 02f2a8fd3e37f8e7a066708a18144e370fcb5a02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
LDFLAGS=`pkg-config --libs libusb-1.0 libosmocore` -losmocore
CFLAGS=-Wall -g

all: simtrace2-remsim simtrace2-remsim-usb2udp simtrace2-list simtrace2-sniff

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)

simtrace2-sniff: simtrace2-sniff.o simtrace2-discovery.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 simtrace2-list simtrace2-sniff *.o