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/spman/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/spman/Makefile (limited to 'src/spman/Makefile') 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) + -- cgit v1.2.3