Skip to content

Commit

Permalink
Added dependency for Heap-Layers to source code to ensure clone prece…
Browse files Browse the repository at this point in the history
…des build.
  • Loading branch information
emeryberger committed Jan 20, 2022
1 parent 1d08836 commit 640949f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,20 @@ DIEHARDER_TARGET := libdieharder

TARGET ?= libdiehard

# WIN_INCLUDES = /I. /Iinclude /Iinclude/layers /Iinclude/util /Iinclude/math /Iinclude/static /Iinclude/rng /Iinclude/hoard /Iinclude/superblocks /IHeap-Layers

INCLUDES = -I. -Iinclude -Iinclude/layers -Iinclude/util -Iinclude/math -Iinclude/static -Iinclude/rng -Iinclude/hoard -Iinclude/superblocks -IHeap-Layers

# -IHeap-Layers/arch-specific -IHeap-Layers/wrappers -IHeap-Layers/utility -IHeap-Layers/locks -IHeap-Layers/threads -IHeap-Layers/heaps/buildingblock -IHeap-Layers/heaps/threads -IHeap-Layers/heaps/utility -IHeap-Layers/heaps/general -IHeap-Layers/heaps/combining -IHeap-Layers/heaps/objectrep -IHeap-Layers/heaps/top -IHeap-Layers/heaps/debug -IHeap-Layers/heaps/special


ifeq ($(TARGET),libdieharder)
INCLUDE := $(INCLUDES) -DDIEHARD_DIEHARDER=1
else
INCLUDE := $(INCLUDES) -DDIEHARD_DIEHARDER=0
endif

UNIX_SRC = Heap-Layers/wrappers/gnuwrapper.cpp source/libdieharder.cpp
# UNIX_SRC = Heap-Layers/wrappers/gnuwrapper-hooks.cpp source/libdieharder.cpp
MACOS_SRC = Heap-Layers/wrappers/macwrapper.cpp source/libdieharder.cpp

$(MACOS_SRC): Heap-Layers
$(UNIX_SRC): Heap-Layers

DEPS = Heap-Layers $(MACOS_SRC) $(UNIX_SRC)

Heap-Layers:
Expand Down

0 comments on commit 640949f

Please sign in to comment.