Skip to content

Commit

Permalink
feat(makefile): create general makefile for development
Browse files Browse the repository at this point in the history
  • Loading branch information
ikr4-m committed Aug 16, 2024
1 parent 575638a commit d16e41d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
os-archs=darwin:amd64 darwin:arm64 freebsd:amd64 linux:amd64 linux:arm:7 linux:arm:5 linux:arm64 windows:amd64 windows:arm64 linux:mips64 linux:mips64le linux:mips:softfloat linux:mipsle:softfloat linux:riscv64 android:arm64

restore:
go get -C ./cmd/mdrop-client
go get -C ./cmd/mdrop-tunnel-tools
Expand All @@ -11,3 +9,8 @@ build-client: restore
build-tunnel: restore
go build -C ./cmd/mdrop-tunnel-tools -ldflags="-linkmode external -extldflags -static -w -s" -o "../../mdrop-tunnel"

build-client-general: restore
go build -C ./cmd/mdrop-client -ldflags="-extldflags -static -w -s" -o "../../mdrop"

build-tunnel-general: restore
go build -C ./cmd/mdrop-tunnel-tools -ldflags="-extldflags -static -w -s" -o "../../mdrop-tunnel"

0 comments on commit d16e41d

Please sign in to comment.