5 top_builddir = @top_builddir@
11 SCC = $(TOPDIR)/bin/sdcc -mgbz80
12 SAS = $(TOPDIR)/bin/as-gbz80
14 PORTDIR = ../build/gbz80
16 OBJ = div.o mul.o putchar.o printf.o shift.o stubs.o crt0_rle.o heap.o fstubs.o
21 CFLAGS = -I$(srcdir)/../../include -I. --std-c89
23 all: $(PORTDIR)/$(LIB) crt0.o
25 $(PORTDIR)/$(LIB): $(OBJ) Makefile _dummy
26 ifeq ($(LIB_TYPE), SDCCLIB)
28 ../../../bin/sdcclib -a $@ $(OBJ)
29 else ifeq ($(LIB_TYPE), AR)
31 else ifeq ($(LIB_TYPE), RANLIB)
33 $(top_builddir)/bin/asranlib $@
36 for i in $(basename $(OBJ)); do echo $$i >>$@; done
46 rm -f *.o *.sym *.lst *~ $(CLEANSPEC) *.dump* *.asm *.lib