首页 > 其他分享 >makefile for exe

makefile for exe

时间:2022-12-01 17:00:57浏览次数:39  
标签:exe TARGET lib makefile SendThread2 .. ROOT hdr


CC = g++
DBG = -Wall -D__LINUX__ -DUTIL_DEBUG

ifndef DEBUG_SET
DEBUG_SET= -g
endif


IFLAGS =-I .\
-I ../hdr/ \
-I ../hdr/protobuf/ \
-I ../hdr/zmq/ \
-I ../hdr/audio/ \
-I ../hdr/opencv/ \
-I ../hdr/opencv2/ \
-I ../hdr/tiny/ \
-L ../lib/protobuf/\
-L ../lib/zmq/\
-I $(LOG4J_ROOT)/include \
-I ${ACE_ROOT}\

INDEX_ROOT=..
LIBS = -L .\
-L ../lib/\
-L ../lib/zmq/\
-L ../lib/protobuf/\
-L ../lib/opencv2.6/\
-L $(LOG4J_ROOT)/lib \
-L ${ACE_ROOT}/lib\
-lpthread\
-lzmq\
-llog4cxx \
-lACE \
-lprotobuf\
-lSKP_SILK_SDK\
-lcrypto\
-lFCEncode \

LINK = -Wl,-rpath \
-Wl,-rpath=../lib/\


TARGET=XXX
all:$(TARGET)

OBJS=ReadConf.o\
ConfParse.o\
ThreadObject.o\
ZMQ_PipeSocket.o\
SocketSend.o\
RecvThread.o\
SendThread2_Image.o\
SendThread2_Audio.o\
SendThread2_Video.o\
RecordSetThread.o\
AudioThread.o\
StatThread.o\
ConnectThread.o\
LoadThread.o\
AES.o\
MediaTools.o\
BASE64.o\
Machine.o\
Company.o\
tinystr.o\
tinyxml.o\
tinyxmlerror.o\
tinyxmlparser.o\
SendThread1.o\
Queues.o\
main.o\

$(TARGET):$(OBJS)
$(CC) -fPIC -o ./$(TARGET) $(OBJS) $(LIBS) $(LINK)
mkdir -p ../bin
cp -f $(TARGET) ../bin/


.cpp.o:
$(CC) $(DBG) $(DEBUG_SET) $(IFLAGS) -fPIC -c $<

clean:
rm *.o -fr
rm -f XX


标签:exe,TARGET,lib,makefile,SendThread2,..,ROOT,hdr
From: https://blog.51cto.com/u_15899033/5902980

相关文章