Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@ RTLIBS =
OPTIONS_USER =
endif

ifeq ($(UNAME), Darwin)
OPENSSL_PREFIX := $(shell brew --prefix openssl)
INCLUDE_SYS = -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include
LIBS = -L $(OPENSSL_PREFIX)/lib -lssl -lcrypto
RTLIBS =
OPTIONS_USER =
INCLUDE_USER ?= -I $(OPENSSL_PREFIX)/include
endif


INCLUDE = $(INCLUDE_USER) $(INCLUDE_SYS)

OPTIONS = $(OPTIONS_USER) -lpthread
Expand Down Expand Up @@ -83,7 +93,7 @@ ${OBJDIR}/%.${OBJ} : */src/%.c

${EXEC}: $(OBJECTS)
echo Building executable file: $@...
cd ${LMS_HASH_DIR} && $(MAKE) ${LMS_LIB}
cd ${LMS_HASH_DIR} && $(MAKE) ${LMS_LIB} CFLAGS="$(INCLUDE)"
${CXX} $(CXXFLAGS) $(LDFLAGS) $(OPTIONS_USER) -o $@ $(OBJECTS) ${LMS_HASH_DIR}/${LMS_LIB} $(OPTIONS)$(LIBS)

execs: ${EXEC}
Expand Down
2 changes: 2 additions & 0 deletions utils/src/cdo-alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#ifndef __APPLE__
#include <malloc.h>
#endif
#include <string.h>
#include "cdo-alloc.h"

Expand Down
2 changes: 2 additions & 0 deletions utils/src/cdo-npi.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
#include <stdlib.h>
#include <stdint.h>
#include <errno.h>
#ifndef __APPLE__
#include <malloc.h>
#endif
#include <string.h>
#include <assert.h>
#include <inttypes.h>
Expand Down