From 7388c270069c2d1418539bca1d2789a6d468ecc2 Mon Sep 17 00:00:00 2001 From: Jacques Comeaux Date: Mon, 20 May 2024 23:19:14 -0500 Subject: Make shared object for setup routines --- setup/Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 setup/Makefile (limited to 'setup/Makefile') diff --git a/setup/Makefile b/setup/Makefile new file mode 100644 index 0000000..5b6dbe7 --- /dev/null +++ b/setup/Makefile @@ -0,0 +1,14 @@ +all: build + +build: setup.so + +objects = xosc.o clocks.o gpio.o uart.o + +setup.so: $(objects) + arm-none-eabi-ld -r -T combine.ld -o setup.so $(objects) + +$(objects): %.o: %.s + arm-none-eabi-as -o $@ $< + +clean: + rm setup.so *.o -- cgit v1.2.3