Skip to content

Commit

Permalink
revert the updates on Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
nikodemas committed Nov 11, 2024
1 parent df43447 commit 76541c8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,33 @@ all: build

build:
go clean; rm -rf pkg; go build -o udp_server ${flags} udp_server.go
go build -o udp_server_monitor ${flags} udp_server_monitor.go

build_debug:
go clean; rm -rf pkg; go build -o udp_server ${flags} -gcflags="-m -m" udp_server.go
go build -o udp_server_monitor ${flags} -gcflags="-m -m" udp_server_monitor.go

build_all: build_osx build_linux build

build_osx:
go clean; rm -rf pkg udp_server_osx; GOOS=darwin go build -o udp_server ${flags} udp_server.go
GOOS=darwin go build -o udp_server_monitor ${flags} udp_server_monitor.go

build_linux:
go clean; rm -rf pkg udp_server_linux; GOOS=linux go build -o udp_server ${flags} udp_server.go
GOOS=linux go build -o udp_server_monitor ${flags} udp_server_monitor.go

build_power8:
go clean; rm -rf pkg udp_server_power8; GOARCH=ppc64le GOOS=linux go build -o udp_server ${flags} udp_server.go
GOARCH=ppc64le GOOS=linux go build -o udp_server_monitor ${flags} udp_server_monitor.go

build_arm64:
go clean; rm -rf pkg udp_server_arm64; GOARCH=arm64 GOOS=linux go build -o udp_server ${flags} udp_server.go
GOARCH=arm64 GOOS=linux go build -o udp_server_monitor ${flags} udp_server_monitor.go

build_windows:
go clean; rm -rf pkg udp_server.exe; GOARCH=amd64 GOOS=windows go build -o udp_server ${flags} udp_server.go
GOARCH=amd64 GOOS=windows go build -o udp_server_monitor ${flags} udp_server_monitor.go

install:
go install
Expand All @@ -35,4 +42,4 @@ clean:
test : test1

test1:
go test
go test

0 comments on commit 76541c8

Please sign in to comment.