summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Burnicki <martin.burnicki@meinberg.de>2021-11-19 14:53:09 +0100
committerMartin Burnicki <martin.burnicki@meinberg.de>2021-11-19 14:53:09 +0100
commit7eedb29da12d9f914533cecf8390a33178f5855d (patch)
tree88a885da8f121fcf7e9bde16b93c684d952f11d1
parent48dc952dd92518a63f27dca9b18f7c742b6afd83 (diff)
downloadntptest-7eedb29da12d9f914533cecf8390a33178f5855d.tar.gz
ntptest-7eedb29da12d9f914533cecf8390a33178f5855d.zip
Update unix/Makefile
Fix control for verbose/non-verbose build. Add defines to support openSSL CMAC. CMAC support is not yet supported, though.
-rwxr-xr-xunix/Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/unix/Makefile b/unix/Makefile
index dc9319f..029b635 100755
--- a/unix/Makefile
+++ b/unix/Makefile
@@ -1,13 +1,15 @@
#########################################################################
#
-# $Id: Makefile 1.6 2018/07/31 16:03:44 martin REL_M $
+# $Id: Makefile 1.7 2020/04/01 16:31:11 martin REL_M $
#
# Description:
# Makefile for ntptest.
#
# -----------------------------------------------------------------------
# $Log: Makefile $
+# Revision 1.7 2020/04/01 16:31:11 martin
+# Add defines to support openSSL CMAC.
# Revision 1.6 2018/07/31 16:03:44 martin
# Conditionally support NTP auth.
# Revision 1.5 2018/07/31 12:13:11 martin
@@ -23,14 +25,17 @@
#
#########################################################################
-V ?= 0 # set to 1 to build verbosely
+TARGET = ntptest
USE_MBG_NTP_AUTH ?= 1
+# Set V to 1 to build verbosely.
+V ?= 0
+
# The lines below make the build output non-verbose by default.
# Call make with parameter "V=1" to get verbose output.
-ifeq ("$(V)","1")
+ifneq ("$(V)","0")
Q :=
QM :=
vecho = @true
@@ -40,7 +45,6 @@ else
vecho = @echo
endif
-TARGET = ntptest
MBGLIB = ../mbglib
MBGLIB_DIRS = common
@@ -67,6 +71,8 @@ LDFLAGS += -lrt
# conditionally support NTP authentication
ifneq ("$(USE_MBG_NTP_AUTH)","0")
CPPFLAGS += -D_USE_MBG_NTP_AUTH=$(USE_MBG_NTP_AUTH)
+ CPPFLAGS += -DHAVE_OPENSSL_CMAC_H
+ CPPFLAGS += -DENABLE_CMAC
OBJS += mbg_ntp_auth.o