summaryrefslogtreecommitdiff
path: root/src/spman/Makefile
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2020-12-30 19:07:31 +0000
committerJuan J. Martinez <jjm@usebox.net>2020-12-30 19:23:41 +0000
commit2682bc5d1d864341aaeb42a449db73c3ecd16d70 (patch)
tree9116764364b4ee0ce7f6037305077807b57776de /src/spman/Makefile
downloadubox-msx-lib-2682bc5d1d864341aaeb42a449db73c3ecd16d70.tar.gz
ubox-msx-lib-2682bc5d1d864341aaeb42a449db73c3ecd16d70.zip
Initial import1.0
Diffstat (limited to 'src/spman/Makefile')
-rw-r--r--src/spman/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/spman/Makefile b/src/spman/Makefile
new file mode 100644
index 0000000..b2bc5df
--- /dev/null
+++ b/src/spman/Makefile
@@ -0,0 +1,20 @@
+LIB=../../lib/spman.lib
+all: $(LIB)
+
+CC=sdcc
+AR=sdar
+CFLAGS=-mz80 --Werror -I../../include --fsigned-char --std-sdcc99 --opt-code-speed
+
+SOURCES=$(wildcard *.c)
+OBJS=$(patsubst %.c,%.rel,$(SOURCES))
+
+$(LIB): $(OBJS)
+ $(AR) -rcD $(LIB) $(OBJS)
+
+%.rel: %.c
+ $(CC) $(CFLAGS) $(LDFLAGS) -c $<
+
+.PHONY: clean
+clean:
+ rm -f $(OBJS) $(LIB)
+