版本:
paho.mqtt.c -1.3.1
依赖:
openssl-1.0.2s
paho.mqtt.c -1.3.1
一、修改Makefile
vim Makefile
1 2 3 4 5 6 7 8 9 10 11
| prefix = /opt/Crosscompile/buildComplete/paho.mqtt.c-1.3.1
CC = arm-linux-gnueabihf-gcc -lrt CFLAGS += -I /opt/Crosscompile/buildComplete/openssl-1.0.2s/include/ LDFLAGS += -L /opt/Crosscompile/buildComplete/openssl-1.0.2s/lib/
install: build mkdir -p $(DESTDIR)${bindir} mkdir -p $(DESTDIR)${libdir} mkdir -p $(DESTDIR)${man1dir} mkdir -p $(DESTDIR)${man3dir}
|
二、执行make和make install
1 2 3
| make make html make install
|