Skip to content

Commit

Permalink
Add armv6 and armv5 targets
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankPetrilli committed Jun 17, 2021
1 parent 64a0819 commit 2320ea9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ INPUT_FILES=livertp-static.go
LINUX_AMD64=$(EXECUTABLE)_linux_amd64-$(VERSION)
LINUX_ARM64=$(EXECUTABLE)_linux_arm64-$(VERSION)
LINUX_ARMV7=$(EXECUTABLE)_linux_armv7-$(VERSION)
LINUX_ARMV6=$(EXECUTABLE)_linux_armv6-$(VERSION)
LINUX_ARMV5=$(EXECUTABLE)_linux_armv5-$(VERSION)
LINUX_MIPSEL=$(EXECUTABLE)_linux_mipsel-$(VERSION)
WINDOWS_AMD64=$(EXECUTABLE)_windows_amd64-$(VERSION).exe

Expand All @@ -25,7 +27,7 @@ deps:
sudo apt-get update && sudo apt-get install -y gcc-aarch64-linux-gnu gcc-mingw-w64-x86-64 gcc-mipsel-linux-gnu gcc-arm-linux-gnueabihf gcc-arm-linux-gnueabi
ci: clean deps

linux: $(LINUX_ARM64) $(LINUX_ARMV7) $(LINUX_AMD64) $(LINUX_MIPSEL)
linux: $(LINUX_ARM64) $(LINUX_ARMV7) $(LINUX_ARMV6 )$(LINUX_ARMV5) $(LINUX_AMD64) $(LINUX_MIPSEL)
windows: $(WINDOWS_AMD64)

$(LINUX_AMD64): $(INPUT_FILES)
Expand All @@ -34,6 +36,10 @@ $(LINUX_ARM64): $(INPUT_FILES)
CC=aarch64-linux-gnu-gcc GOARCH=arm64 GOOS=linux CGO_ENABLED=1 go build -o $@ $(LDFLAGS) $<
$(LINUX_ARMV7): $(INPUT_FILES)
CC=arm-linux-gnueabi-gcc GOARCH=arm GOARM=7 GOOS=linux CGO_ENABLED=1 go build -o $@ $(LDFLAGS) $<
$(LINUX_ARMV6): $(INPUT_FILES)
CC=arm-linux-gnueabi-gcc GOARCH=arm GOARM=6 GOOS=linux CGO_ENABLED=1 go build -o $@ $(LDFLAGS) $<
$(LINUX_ARMV5): $(INPUT_FILES)
CC=arm-linux-gnueabi-gcc GOARCH=arm GOARM=5 GOOS=linux CGO_ENABLED=1 go build -o $@ $(LDFLAGS) $<
$(LINUX_MIPSEL): $(INPUT_FILES)
CC=mipsel-linux-gnu-gcc GOARCH=mipsle GOMIPS=softfloat GOOS=linux CGO_ENABLED=1 go build -o $@ $(LDFLAGS) $<
$(WINDOWS_AMD64): $(INPUT_FILES)
Expand Down

0 comments on commit 2320ea9

Please sign in to comment.