|
|
|
@ -21,7 +21,10 @@ ifeq "$(CFG)" "Debug" |
|
|
|
OUTDIR=Debug |
|
|
|
OUTFILE=$(OUTDIR)/argus |
|
|
|
CFG_INC= |
|
|
|
CFG_LIB=-lcurl |
|
|
|
CFG_LIB=-lpthread -lmysqlclient -lssl -lcurl -lm -lcrypto -lconfig \
|
|
|
|
-lz -lv4l1 -lv4l2 -lhidapi-libusb `pkg-config libavcodec libavdevice \
|
|
|
|
libavfilter libavformat libavutil libpostproc libswresample \
|
|
|
|
libswscale --libs` -lssl |
|
|
|
CFG_OBJ= |
|
|
|
COMMON_OBJ=$(OUTDIR)/ArgusBackend.o $(OUTDIR)/base64.o \
|
|
|
|
$(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \
|
|
|
|
@ -73,10 +76,13 @@ ALL_OBJ=$(OUTDIR)/ArgusBackend.o $(OUTDIR)/base64.o \ |
|
|
|
$(OUTDIR)/servletChannelWS.o $(OUTDIR)/servletClientHandlerWS.o \
|
|
|
|
$(OUTDIR)/servletWS.o $(OUTDIR)/ssdpAnnouncer.o \
|
|
|
|
$(OUTDIR)/Transform.o $(OUTDIR)/utm.o $(OUTDIR)/xmlParser.o \
|
|
|
|
$(OUTDIR)/zlMediaConnector.o -lcurl |
|
|
|
$(OUTDIR)/zlMediaConnector.o -lpthread -lmysqlclient -lssl -lcurl \
|
|
|
|
-lm -lcrypto -lconfig -lz -lv4l1 -lv4l2 -lhidapi-libusb `pkg-config \
|
|
|
|
libavcodec libavdevice libavfilter libavformat libavutil libpostproc \
|
|
|
|
libswresample libswscale --libs` -lssl |
|
|
|
|
|
|
|
COMPILE=g++ -c -x c++ "-DDEBUG" "-D__STDC_CONSTANT_MACROS" -g -std=c++11 -Wno-write-strings -I../../lib/include `pkg-config libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswresample libswscale --cflags` -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $< |
|
|
|
LINK=g++ -g -lpthread -lmysqlclient -lcurl -lm -lssl -lcrypto -lconfig -lz -lv4l1 -lv4l2 -lhidapi-libusb `pkg-config libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswresample libswscale --libs` -lcurl -o "$(OUTFILE)" $(ALL_OBJ) |
|
|
|
LINK=g++ -g -o "$(OUTFILE)" $(ALL_OBJ) |
|
|
|
|
|
|
|
# Pattern rules
|
|
|
|
$(OUTDIR)/%.o : ../../lib/data/protocol/%.cpp |
|
|
|
@ -146,7 +152,10 @@ ifeq "$(CFG)" "Release" |
|
|
|
OUTDIR=Release |
|
|
|
OUTFILE=$(OUTDIR)/argus |
|
|
|
CFG_INC= |
|
|
|
CFG_LIB=-lcurl |
|
|
|
CFG_LIB=-lpthread -lmysqlclient -lssl -lcurl -lm -lcrypto -lconfig \
|
|
|
|
-lz -lv4l1 -lv4l2 -lhidapi-libusb `pkg-config libavcodec libavdevice \
|
|
|
|
libavfilter libavformat libavutil libpostproc libswresample \
|
|
|
|
libswscale --libs` -lssl |
|
|
|
CFG_OBJ= |
|
|
|
COMMON_OBJ=$(OUTDIR)/ArgusBackend.o $(OUTDIR)/base64.o \
|
|
|
|
$(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \
|
|
|
|
@ -198,10 +207,13 @@ ALL_OBJ=$(OUTDIR)/ArgusBackend.o $(OUTDIR)/base64.o \ |
|
|
|
$(OUTDIR)/servletChannelWS.o $(OUTDIR)/servletClientHandlerWS.o \
|
|
|
|
$(OUTDIR)/servletWS.o $(OUTDIR)/ssdpAnnouncer.o \
|
|
|
|
$(OUTDIR)/Transform.o $(OUTDIR)/utm.o $(OUTDIR)/xmlParser.o \
|
|
|
|
$(OUTDIR)/zlMediaConnector.o -lcurl |
|
|
|
$(OUTDIR)/zlMediaConnector.o -lpthread -lmysqlclient -lssl -lcurl \
|
|
|
|
-lm -lcrypto -lconfig -lz -lv4l1 -lv4l2 -lhidapi-libusb `pkg-config \
|
|
|
|
libavcodec libavdevice libavfilter libavformat libavutil libpostproc \
|
|
|
|
libswresample libswscale --libs` -lssl |
|
|
|
|
|
|
|
COMPILE=g++ -c -x c++ "-DDEBUG" "-D__STDC_CONSTANT_MACROS" -std=c++11 -Wno-write-strings -I../../lib/include `pkg-config libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswresample libswscale --cflags` -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $< |
|
|
|
LINK=g++ -lpthread -lmysqlclient -lcurl -lm -lssl -lcrypto -lconfig -lz -lv4l1 -lv4l2 -lhidapi-libusb `pkg-config libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswresample libswscale --libs` -lcurl -o "$(OUTFILE)" $(ALL_OBJ) |
|
|
|
LINK=g++ -o "$(OUTFILE)" $(ALL_OBJ) |
|
|
|
|
|
|
|
# Pattern rules
|
|
|
|
$(OUTDIR)/%.o : ../../lib/data/protocol/%.cpp |
|
|
|
|