aboutsummaryrefslogtreecommitdiff
path: root/lib/cpcrslib/Makefile
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2021-05-03 08:21:10 +0100
committerJuan J. Martinez <jjm@usebox.net>2021-05-03 10:00:00 +0100
commitc3b0fa04a663fe233765b83d3be41a42aa08c25d (patch)
tree0befda349001ef6ce306b39378f9c70ad917363e /lib/cpcrslib/Makefile
downloadreturn-of-traxtor-cpc-c3b0fa04a663fe233765b83d3be41a42aa08c25d.tar.gz
return-of-traxtor-cpc-c3b0fa04a663fe233765b83d3be41a42aa08c25d.zip
Initial import for public releaseHEADmain
Diffstat (limited to 'lib/cpcrslib/Makefile')
-rw-r--r--lib/cpcrslib/Makefile23
1 files changed, 23 insertions, 0 deletions
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
+