Files
simtrace/host/Makefile
Holger Hans Peter Freyther 5953e90599 make: Move the LDFLAGS to the end of the link line for OpenSUSE
The code does not build like this on a OpenSUSE system, it will
not find the libusb and libosmocore library.
2011-07-17 18:05:08 +02:00

14 lines
252 B
Makefile

LDFLAGS=-lusb `pkg-config --libs libosmocore` -losmocore
all: simtrace
simtrace: main.o usb_helper.o usb.o apdu_split.o
$(CC) -o $@ $^ $(LDFLAGS)
%.o: %.c
$(CC) $(CFLAGS) `pkg-config --cflags libosmocore` -o $@ -c $^
clean:
@rm -f simtrace *.o