From 2fbdf974338bde8576efdae40a819a76b2391033 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sun, 5 Nov 2023 11:22:55 +0000 Subject: Initial import of the open source release --- lib/cpcrslib/Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 lib/cpcrslib/Makefile (limited to 'lib/cpcrslib/Makefile') diff --git a/lib/cpcrslib/Makefile b/lib/cpcrslib/Makefile new file mode 100644 index 0000000..c440a28 --- /dev/null +++ b/lib/cpcrslib/Makefile @@ -0,0 +1,19 @@ +all: cpcrslib.lib + +AS=sdasz80 +AR=sdar + +cpcrslib_SRCS=$(wildcard cpc_*.s) +cpcrslib_OBJS=$(patsubst %.s,%.rel,$(cpcrslib_SRCS)) + +cpcrslib.lib: $(cpcrslib_OBJS) + $(AR) -rcD cpcrslib.lib $(cpcrslib_OBJS) + cp cpcrslib.lib .. + +%.rel: %.s + $(AS) -o $< + +.PHONY: clean +clean: + rm -f *.rel *.lib + -- cgit v1.2.3