Files
ngrok-c/Makefile.openssl
Punk 5da550284e fix openssl & replace polarssl
fix openssl & replace polarssl by mbedtls static build on tomatoware
2021-09-01 02:23:12 +08:00

22 lines
656 B
Makefile

CC?=gcc
CXX?=g++
CFLAGS+=-fexceptions -DOPENSSL=1 -O2
CXXFLAGS=-fexceptions -DOPENSSL=1 -O2
LIBS=param.o sendmsg.o openssldl.o cJSON.o udp.o base64.o global.o nonblocking.o opensslbio.o ngrok.o main.o
all:: ngrokc $(LIBS)
ngrokc: $(LIBS)
$(CXX) -s $(LIBS) -o ngrokc -lssl -lcrypto -ldl -lz
sendmsg.o: sendmsg.h
param.o: param.h
openssldl.o: openssldl.h
udp.o: udp.h
base64.o: base64.h
global.o: global.h
cJSON.o: cJSON.h
nonblocking.o: nonblocking.h
opensslbio.o: sslbio.h
ngrok.o: ngrok.h
main.o: global.h udp.h base64.h sendmsg.h param.h openssldl.h sslbio.h ngrok.h cJSON.h bytestool.h nonblocking.h
clean:
rm -f $(LIBS) ngrokc