Reorder gcc parameters

Linker unable to resolve libusb functions because of parameter ordering. Reordering this way will help create the undefined symbols first, which will subsequently resolve when seeing libusb-1.0.a
This commit is contained in:
hpotaraju 2018-08-22 15:52:31 -07:00 committed by GitHub
parent c745c2dab9
commit 2f77f9925a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,7 @@ CFLAGS = -g -O2 -Wall -lusb-1.0 -I/usr/include/libusb-1.0
all: pcsensor
pcsensor: pcsensor.c
${CC} ${CFLAGS} -DUNIT_TEST -o $@ $^
${CC} $^ ${CFLAGS} -DUNIT_TEST -o $@
clean:
rm -f pcsensor *.o