* src/pic/device.c (pic14_assignConfigWordValue): remember assignments to
[fw/sdcc] / device / lib / pic16 / Makefile
index ad27fa232dad638d18b110910b6a59650faa8bf6..002ef2a6e646048eb7004e42690453a5d5473bdd 100644 (file)
@@ -20,6 +20,15 @@ topsrcdir = .
 
 include $(topsrcdir)/Makefile.common
 
+ifeq (:,$(findstring :,$(LD) $(AS) $(LIB)))
+
+.PHONY : all
+
+all % : 
+       @echo "gputils not found -- PIC16 library not built!"
+
+else
+
 SUBDIRS           = debug libc libdev libio libm libsdcc startup
 builddir   = build
 installdir = bin
@@ -29,11 +38,11 @@ C_SRC = $(wildcard *.c)
 S_SRC = $(wildcard *.S)
 OBJS = $(C_SRC:.c=.o) $(S_SRC:.S=.o)
 
-.PHONY : all clean clean-intermediate recurse
+.PHONY : all clean clean-intermediate install
 
 all : install
 
-install : builddir recurse
+install : recurse
 
 clean : recurse
        $(Q)-$(RMDIR) "$(topsrcdir)/$(builddir)";
@@ -41,3 +50,5 @@ clean : recurse
 clean-intermediate : recurse
 
 include $(topsrcdir)/Makefile.rules
+
+endif