From 62ae1c2acbc2b2a6e8c786238fab5198dc00f105 Mon Sep 17 00:00:00 2001 From: John Jones Date: Fri, 22 Oct 2021 13:17:59 -0500 Subject: [PATCH] Rebuild libcc.so when dependencies change --- src/cc/Makefile_custom | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/cc/Makefile_custom b/src/cc/Makefile_custom index 79219ec96c1..364f9f4a121 100755 --- a/src/cc/Makefile_custom +++ b/src/cc/Makefile_custom @@ -10,9 +10,9 @@ RELEASEFLAGS = -O2 -D NDEBUG -combine -fwhole-program $(info $(OS)) OS := $(shell uname -s) $(info $(OS)) -TARGET = customcc.so -TARGET_DARWIN = customcc.dylib -TARGET_WIN = customcc.dll +TARGET = ../libcc.so +TARGET_DARWIN = ../libcc.dylib +TARGET_WIN = ../libcc.dll SOURCES = cclib.cpp #HEADERS = $(shell echo ../cryptoconditions/include/*.h) -I/usr/local/Cellar/gcc\@8/8.3.0/include/c++/8.3.0/ @@ -22,16 +22,13 @@ $(TARGET): $(SOURCES) $(info Building cclib to src/) ifeq ($(OS),Darwin) $(CC_DARWIN) $(CFLAGS_DARWIN) $(DEBUGFLAGS) -o $(TARGET_DARWIN) -c $(SOURCES) - cp $(TARGET_DARWIN) ../libcc.dylib else ifeq ($(HOST),x86_64-w64-mingw32) $(info WINDOWS) $(CC_WIN) $(CFLAGS_WIN) $(DEBUGFLAGS) -o $(TARGET_WIN) -c $(SOURCES) - cp $(TARGET_WIN) ../libcc.dll #else ifeq ($(WIN_HOST),True) - todo: pass ENV var from build.sh if WIN host else $(info LINUX) $(CC) $(CFLAGS) $(DEBUGFLAGS) -o $(TARGET) -c $(SOURCES) - cp $(TARGET) ../libcc.so endif clean: