From c3b0fa04a663fe233765b83d3be41a42aa08c25d Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Mon, 3 May 2021 08:21:10 +0100 Subject: Initial import for public release --- lib/cpcrslib/Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 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..83a9d7c --- /dev/null +++ b/lib/cpcrslib/Makefile @@ -0,0 +1,23 @@ +all: cpcrslib.lib cpcwyzlib.lib + +AS=sdasz80 +AR=sdcclib +cpcrslib_SRCS=$(wildcard cpc_*.s) +cpcrslib_OBJS=$(patsubst %.s,%.rel,$(cpcrslib_SRCS)) +cpcwyzlib_OBJS=Wyz.rel + +cpcrslib.lib: $(cpcrslib_OBJS) + $(AR) -a cpcrslib.lib $(cpcrslib_OBJS) + cp cpcrslib.lib .. + +cpcwyzlib.lib: $(cpcwyzlib_OBJS) + $(AR) -a cpcwyzlib.lib $(cpcwyzlib_OBJS) + cp cpcwyzlib.lib .. + +%.rel: %.s + $(AS) -o $< + +.PHONY: clean +clean: + rm -f *.rel *.lib + -- cgit v1.2.3