📄 makefile
字号:
#--------------------------------------------------------------------CC = gccAR = ar cruCFLAGS = -Wall -D_REENTRANT -D_GNU_SOURCE -g -fPICSOFLAGS = -sharedLDFLAGS = -lstdc++ -lpthread -lresolvLINKER = $(CC)LINT = lint -cRM = /bin/rm -fMASSL_INCL = -I$(HOME)/matrixssl-1-8-3-open/MASSL_LIB = -L$(HOME)/matrixssl-1-8-3-open/src -lmatrixsslLIBEVENT_LIB = -L$(HOME)/libevent -leventSPSERVER_INCL = -I../spserverSPSERVER_LIB = -L../spserver -lspserverCFLAGS += $(MASSL_INCL) $(SPSERVER_INCL)LDFLAGS += $(MASSL_LIB) $(SPSERVER_LIB) $(LIBEVENT_LIB)#--------------------------------------------------------------------LIBOBJS = sslSocket.o spmatrixssl.oTARGET = libspmatrixssl.so \ testechos#--------------------------------------------------------------------all: $(TARGET)libspmatrixssl.so: $(LIBOBJS) $(LINKER) $(SOFLAGS) $^ -o $@testechos: testechos.o $(LINKER) $(LDFLAGS) $^ -L. -lspmatrixssl -o $@clean: @( $(RM) *.o vgcore.* core core.* $(TARGET) )#--------------------------------------------------------------------# make rule%.o : %.c $(CC) $(CFLAGS) -c $^ -o $@ %.o : %.cpp $(CC) $(CFLAGS) -c $^ -o $@
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -