diff options
author | Ayke van Laethem <[email protected]> | 2018-09-04 21:32:14 +0200 |
---|---|---|
committer | Ayke van Laethem <[email protected]> | 2018-09-04 21:32:56 +0200 |
commit | 92877f83710bdb041c455ef6f943e36915af5ed9 (patch) | |
tree | a5c497dc4fda75f96d877d41d0f8b5913c7944f0 /Makefile | |
parent | 83ad0b61377a0f63e1ac7bd1c79124fd2fb892f2 (diff) | |
download | tinygo-92877f83710bdb041c455ef6f943e36915af5ed9.tar.gz tinygo-92877f83710bdb041c455ef6f943e36915af5ed9.zip |
Makefile: some cleanups
Remove $(GCC) and $(LLC) which were not used anymore, and display binary
size even when building for the host.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -8,7 +8,6 @@ tgo: build/tgo # Custom LLVM toolchain. LLVM := $(shell go env GOPATH)/src/github.com/aykevl/llvm/bindings/go/llvm/workdir/llvm_build/bin/ LINK = $(LLVM)llvm-link -LLC = $(LLVM)llc LLAS = $(LLVM)llvm-as OPT = $(LLVM)opt @@ -21,13 +20,11 @@ TARGET ?= unix ifeq ($(TARGET),unix) # Regular *nix system. -GCC = gcc LD = clang SIZE = size else ifeq ($(TARGET),pca10040) # PCA10040: nRF52832 development board -GCC = arm-none-eabi-gcc LD = arm-none-eabi-ld -T arm.ld --gc-sections SIZE = arm-none-eabi-size OBJCOPY = arm-none-eabi-objcopy @@ -44,7 +41,6 @@ RUNTIME_PARTS += build/nrfx_system_nrf52.bc OBJ += build/nrfx_startup_nrf51.o # TODO nrf52, see https://bugs.llvm.org/show_bug.cgi?id=31601 else ifeq ($(TARGET),arduino) -GCC = avr-gcc AS = avr-as -mmcu=atmega328p LD = avr-ld -T avr.ld --gc-sections SIZE = avr-size @@ -126,6 +122,7 @@ build/runtime-$(TARGET)-combined.bc: $(RUNTIME_PARTS) # Generate output ELF executable. build/%: build/%.o $(OBJ) $(LD) -o $@ $^ + $(SIZE) $@ # Generate output ELF for use in objcopy (on a microcontroller). build/%.elf: build/%.o $(OBJ) |