mirror of
https://gitea.osmocom.org/sim-card/simtrace.git
synced 2026-03-16 21:28:36 +03:00
host: Use the pkg-config to find libosmocore headers and libs
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
LDFLAGS=-lusb -losmocore
|
||||
LDFLAGS=-lusb `pkg-config --libs libosmocore` -losmocore
|
||||
|
||||
all: simtrace
|
||||
|
||||
@@ -6,7 +6,7 @@ simtrace: main.o usb_helper.o usb.o apdu_split.o
|
||||
$(CC) $(LDFLAGS) -o $@ $^
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -o $@ -c $^
|
||||
$(CC) $(CFLAGS) `pkg-config --cflags libosmocore` -o $@ -c $^
|
||||
|
||||
|
||||
clean:
|
||||
|
||||
Reference in New Issue
Block a user