gbdk-releases/sdcc/device/lib/gbz80/Makefile

28 lines
455 B
Makefile
Raw Permalink Normal View History

2015-01-10 16:25:06 +01:00
# libc/z80 Makefile
TOPDIR = ../../..
2015-01-10 16:25:09 +01:00
SCC = $(TOPDIR)/bin/sdcc -mgbz80
SAS = $(TOPDIR)/bin/as-gbz80
2015-01-10 16:25:06 +01:00
2015-01-10 16:25:09 +01:00
OBJ = div.o mul.o putchar.o printf.o shift.o stubs.o crt0_rle.o
LIB = gbz80.lib
2015-01-10 16:25:06 +01:00
CC = $(SCC)
AS = $(SAS)
2015-01-10 16:25:09 +01:00
CFLAGS = -I../../include -I.
2015-01-10 16:25:06 +01:00
all: $(LIB) crt0.o
$(LIB): $(OBJ) Makefile _dummy
rm -f $(LIB)
for i in $(OBJ); do echo $$i >> $(LIB); done
2015-01-10 16:25:09 +01:00
.c.o:
$(CC) $(CFLAGS) -c $<
2015-01-10 16:25:06 +01:00
_dummy:
clean:
2015-01-10 16:25:09 +01:00
rm -f *.o *.sym *.lst *~ $(CLEANSPEC) *.dump* *.asm *.lib