shithub: scc

ref: 61f5fa44e9f8b7ce6ee4cd5bd71c10845287960d
dir: /tests/ld/execute/Makefile/

View raw version
AS = z80-unknown-coff-as
AR = ../../../bin/ar
LD = ../../../bin/ld
RL = ../../../bin/ranlib

OBJS   = f1.o f2.o
OBJLIB = f3.o

all test: a.out

a.out: $(OBJS) f.a
	$(LD) $(OBJS) f.a

f.a: $(OBJLIB)
	$(AR) -rv $@ $?
	$(RL) $@
	rm $?

clean:
	rm -f *.o *.a a.out