Skip to content

Commit

Permalink
Merge pull request #306 from spacemeshos/Makefile-improvements
Browse files Browse the repository at this point in the history
Cleanup Makefiles
  • Loading branch information
fasmat authored Sep 25, 2024
2 parents 9aaf3a0 + 7320942 commit 9ba39d0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
export CGO_ENABLED := 1
include Makefile.Inc

# Set the correct extension for the executable based on the OS
# and set the correct ulimit command for the OS
ifeq ($(OS),Windows_NT)
EXE := .exe
else
ULIMIT := ulimit -n 4096;
endif

GOLANGCI_LINT_VERSION := v1.59.0
GOTESTSUM_VERSION := v1.12.0
MOCKGEN_VERSION := v0.4.0
Expand Down
2 changes: 0 additions & 2 deletions Makefile.Inc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ endif
ifeq ($(GOOS),windows)
platform := windows
export PATH := $(PATH):$(PROJ_DIR)build
EXE := .exe
CGO_LDFLAGS := $(CGO_LDFLAGS) -Wl,-Bstatic -lpthread -Wl,-Bdynamic
else
TEMP := /tmp
Expand All @@ -39,7 +38,6 @@ else
platform := macos
endif
CGO_LDFLAGS := $(CGO_LDFLAGS) -Wl,-rpath,@loader_path
ULIMIT := ulimit -n 9999;
else
ifeq ($(GOARCH),arm64)
platform := linux-arm64
Expand Down

0 comments on commit 9ba39d0

Please sign in to comment.