host: Use the pkg-config to find libosmocore headers and libs

This commit is contained in:
Holger Hans Peter Freyther 2011-07-12 23:28:57 +02:00
parent 2177808358
commit b259b72200
1 changed files with 2 additions and 2 deletions

View File

@ -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: