lib: only install fcc libs if using sdcc
authorBrett Gordon <beretta42@gmail.com>
Sun, 15 Oct 2017 00:12:46 +0000 (20:12 -0400)
committerBrett Gordon <beretta42@gmail.com>
Sun, 15 Oct 2017 00:12:46 +0000 (20:12 -0400)
Library/Makefile

index 23cff4e..14a0f32 100644 (file)
@@ -36,6 +36,7 @@ tools/liberror: tools/liberror.c
        $(CC) $(CFLAGS) -o $@ $<
 
 install:
+ifeq ( $(CROSS_CC), "sdcc" )
        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
@@ -48,3 +49,4 @@ install:
        install -m 0644 include/netinet/*.h /opt/fcc/include/netinet
        install -m 0644 include/sys/*.h /opt/fcc/include/sys
        install -m 0644 ../Kernel/include/userstructs.h /opt/fcc/include/sys/
+endif
\ No newline at end of file