Library: Fix Z80 breakage from 6809 fixes
authorAlan Cox <alan@linux.intel.com>
Sat, 21 Oct 2017 23:01:59 +0000 (00:01 +0100)
committerAlan Cox <alan@linux.intel.com>
Sat, 21 Oct 2017 23:01:59 +0000 (00:01 +0100)
ifeq in Makefiles is subtle and quick to anger....

Also check z80 not sdcc.

Library/Makefile

index 14a0f32..5fe63b3 100644 (file)
@@ -35,8 +35,9 @@ tools/binman: tools/binman.c
 tools/liberror: tools/liberror.c
        $(CC) $(CFLAGS) -o $@ $<
 
+
 install:
-ifeq ( $(CROSS_CC), "sdcc" )
+ifeq ($(USERCPU),z80)
        mkdir -p /opt/fcc/bin /opt/fcc/lib /opt/fcc/include
        mkdir -p /opt/fcc/include/6502 /opt/fcc/include/arpa
        mkdir -p /opt/fcc/include/msp430x /opt/fcc/include/netinet