Skip to content

Commit

Permalink
Build for Linux on ARM.
Browse files Browse the repository at this point in the history
cc does not have a `-m64` option on ARM
  • Loading branch information
glennj committed Jul 3, 2024
1 parent e293660 commit 37d8383
Show file tree
Hide file tree
Showing 3 changed files with 553 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ From that folder, run `make`.
`cd projects/make`
`make`

#### Linux on ARM

`cd projects/make.arm`
`make`

### FreeBSD

The `projects/make.bsd` folder contains a `make` project.
Expand Down
64 changes: 64 additions & 0 deletions projects/make.arm/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Alternative GNU Make workspace makefile autogenerated by Premake

ifndef config
config=release_64bit
endif

ifndef verbose
SILENT = @
endif

ifeq ($(config),release_64bit)
wrenc_config = release_64bit

else ifeq ($(config),release_32bit)
wrenc_config = release_32bit

else ifeq ($(config),release_64bit-no-nan-tagging)
wrenc_config = release_64bit-no-nan-tagging

else ifeq ($(config),debug_64bit)
wrenc_config = debug_64bit

else ifeq ($(config),debug_32bit)
wrenc_config = debug_32bit

else ifeq ($(config),debug_64bit-no-nan-tagging)
wrenc_config = debug_64bit-no-nan-tagging

else
$(error "invalid configuration $(config)")
endif

PROJECTS := wrenc

.PHONY: all clean help $(PROJECTS)

all: $(PROJECTS)

wrenc:
ifneq (,$(wrenc_config))
@echo "==== Building wrenc ($(wrenc_config)) ===="
@${MAKE} --no-print-directory -C . -f wrenc.make config=$(wrenc_config)
endif

clean:
@${MAKE} --no-print-directory -C . -f wrenc.make clean

help:
@echo "Usage: make [config=name] [target]"
@echo ""
@echo "CONFIGURATIONS:"
@echo " release_64bit"
@echo " release_32bit"
@echo " release_64bit-no-nan-tagging"
@echo " debug_64bit"
@echo " debug_32bit"
@echo " debug_64bit-no-nan-tagging"
@echo ""
@echo "TARGETS:"
@echo " all (default)"
@echo " clean"
@echo " wrenc"
@echo ""
@echo "For more information, see https://github.com/premake/premake-core/wiki"
Loading

0 comments on commit 37d8383

Please sign in to comment.