From b60ecf2fe5ddfe506e02093286b3931873187e91 Mon Sep 17 00:00:00 2001 From: StevenWdV Date: Fri, 4 Feb 2022 01:18:12 +0100 Subject: More Makefile cleanup, support building in folder with spaces --- exports/platform.mk | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 exports/platform.mk (limited to 'exports/platform.mk') diff --git a/exports/platform.mk b/exports/platform.mk deleted file mode 100644 index cd1248b..0000000 --- a/exports/platform.mk +++ /dev/null @@ -1,33 +0,0 @@ -# Prevent executing `go env ...` multiple times for the same property -# export is needed for this and also to pass the values on to the Go compiler -ifndef GOOS -export GOOS != go env GOHOSTOS -endif -ifndef GOARCH -export GOARCH != go env GOHOSTARCH -endif - -ifeq (windows,$(GOOS)) -LIB_PREFIX = -LIB_SUFFIX = .dll -else ifeq (darwin,$(GOOS)) -LIB_PREFIX = lib -LIB_SUFFIX = .dylib -else -LIB_PREFIX = lib -LIB_SUFFIX = .so -endif - -# Library name without prefixes/suffixes -LIB_NAME = eduvpn_common -# Library file name -LIB_FILE = $(LIB_PREFIX)$(LIB_NAME)$(LIB_SUFFIX) - -# Get exports/ directory when included from a wrapper -exports_dir = $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) -# Add library to dynamic linker path for running tests -ifeq (Windows_NT,$(OS)) -export PATH := $(exports_dir)/lib/$(GOOS)/$(GOARCH):$(PATH) -else -export LD_LIBRARY_PATH := $(exports_dir)/lib/$(GOOS)/$(GOARCH):$(LD_LIBRARY_PATH) -endif -- cgit v1.2.3