31 lines
644 B
Makefile
31 lines
644 B
Makefile
TARGET = cli
|
|
DIRLEVEL = ..
|
|
|
|
# Possible LOGLEVEL values: dbg, info, warn, err, none
|
|
LOGLEVEL=info
|
|
|
|
# Uncomment if GnuTLS version 3.5 or later is available
|
|
# GNUTLS=1
|
|
|
|
# Uncomment this to avoid creating new processes
|
|
# NO_EXTERNAL_CMD=1
|
|
|
|
SOURCES=../http/cookiefile.cpp \
|
|
main.cpp \
|
|
../measurement/wsdownloadtask.cpp \
|
|
utils.cpp \
|
|
cliclient.cpp
|
|
|
|
ifeq ($(SERVER),1)
|
|
SOURCES += ../server/measurementserver.cpp \
|
|
../server/ticketclient.cpp
|
|
CXXFLAGS += -DRUN_SERVER
|
|
else
|
|
CLEAN += ../server/measurementserver.o ../server/ticketclient.o
|
|
endif
|
|
|
|
ifeq ($(NO_EXTERNAL_CMD),1)
|
|
CXXFLAGS += -DNO_EXTERNAL_CMD
|
|
endif
|
|
|
|
include $(DIRLEVEL)/measurement/mk.inc
|