aboutsummaryrefslogtreecommitdiff
path: root/lib/cpcrslib/Makefile
blob: c440a28b6e266457d0f26a24a65e8f89e613fdf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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