aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2018-04-24 14:11:01 -0400
committerClyne Sullivan <tullivan99@gmail.com>2018-04-24 14:11:01 -0400
commitc47485371ac69797b487f9549368fab62859de78 (patch)
treef10077a503379ada25c9f57622d9edd319c9c63d /Makefile
parent5df5c67397e2800182e5016ab89bbd17e4e67a5b (diff)
file cleanup, better text, documentation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 1 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 07af411..777c75f 100644
--- a/Makefile
+++ b/Makefile
@@ -21,9 +21,6 @@
CROSS = arm-none-eabi-
CC = gcc
AS = as
-AR = tools/rba
-OBJCOPY = objcopy
-STRIP = strip
MCUFLAGS = -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16
AFLAGS = $(MCUFLAGS)
@@ -42,15 +39,10 @@ OFILES = $(patsubst src/%.c, $(OUTDIR)/%.o, $(CFILES)) \
$(patsubst src/%.s, $(OUTDIR)/%.asm.o, $(AFILES))
OUT = out/main.elf
-INITRD = initrd.img
all: $(OUT)
-$(OUT): $(OFILES) initrd/* libinterp.a
- @echo " INITRD " $(INITRD)
- @rm -f $(INITRD)
- @$(AR) $(INITRD) initrd/*
- @$(CROSS)$(OBJCOPY) -B arm -I binary -O elf32-littlearm $(INITRD) out/initrd.img.o
+$(OUT): $(OFILES)
@echo " LINK " $(OUT)
@$(CROSS)$(CC) $(CFLAGS) $(LFLAGS) out/*.o -o $(OUT) -L. -linterp -lm