blob: 469656e60078fc6f5d0360da6ac6e40b82b79947 [file] [edit]
ASM_SOURCES := main.s
# This is to appease Makefile.rules, there is no main.c.
C_SOURCES := main.c
ASM_OBJS := $(ASM_SOURCES:.s=.o)
# Do not automatically add the in-tree libcxx paths (we're not going to use
# the system stdlib either).
USE_SYSTEM_STDLIB := 1
LD_EXTRAS := -target arm-unknown-linux-gnueabihf \
-fuse-ld=lld \
-nostdlib \
-static \
-Wl,-e,_start
include Makefile.rules
%.o: %.s
$(CC) $(CFLAGS) -target arm-unknown-linux-gnueabihf -c -x assembler $< -o $@