From 2682bc5d1d864341aaeb42a449db73c3ecd16d70 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Wed, 30 Dec 2020 19:07:31 +0000 Subject: Initial import --- src/ubox/Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/ubox/Makefile (limited to 'src/ubox/Makefile') diff --git a/src/ubox/Makefile b/src/ubox/Makefile new file mode 100644 index 0000000..a597090 --- /dev/null +++ b/src/ubox/Makefile @@ -0,0 +1,19 @@ +LIB=../../lib/ubox.lib +all: $(LIB) + +AS=sdasz80 +AR=sdar + +SOURCES=$(wildcard ubox_*.z80) +OBJS=$(patsubst %.z80,%.rel,$(SOURCES)) + +$(LIB): $(OBJS) + $(AR) -rcD $(LIB) $(OBJS) + +%.rel: %.z80 + $(AS) -o $< + +.PHONY: clean +clean: + rm -f $(OBJS) $(LIB) + -- cgit v1.2.3