* device/lib/pic/libdev/Makefile.in: build device-specific
[fw/sdcc] / device / lib / pic / libdev / Makefile.in
index 451b2398d3457961a1eb7c59036d443b49cae8b0..dfb2d27b9fab28c2a4151b232624e30025d2f36e 100644 (file)
@@ -12,7 +12,7 @@ RMDIR = @RMDIR@
 
 CPPFLAGS = -I$(srcdir)/../../../include/pic
 
-C_SRC = $(notdir $(wildcard $(srcdir)/pic16*.c))
+C_SRC = $(notdir $(wildcard $(srcdir)/pic1*.c))
 OBJS = $(C_SRC:.c=.o)
 LIBS = $(addprefix $(INSTALL_DIR)/,$(OBJS:.o=.lib))
 
@@ -22,23 +22,29 @@ ifeq (0,1)
 # useful while fixing .inc files
 GPUTILS = /opt/modules/gputils-0.13.3/share/gputils
 pic%.c : $(GPUTILS)/header/p%.inc
-       -$(SDCC_BASE)/support/scripts/inc2h.pl $* $(GPUTILS) \
-       > $(SDCC_BASE)/device/include/pic/pic$*.h
+       -$(SDCC_BASE)/support/scripts/inc2h.pl $* $(GPUTILS);
+       -mv pic$*.h $(SDCC_BASE)/device/include/pic/pic$*.h;
 endif
 
 pic%.o : pic%.c
-       -$(CC) $(CPPFLAGS) $(CFLAGS) -mpic14 -p$* -o "$@" -c "$<"
+ifndef SILENT
+       @echo "[  CC   ] ==> $(patsubst $(top_builddir)/%,%,$@)"
+endif
+       @-$(CC) -mpic14 -p$* $(CPPFLAGS) $(CFLAGS) -o "$@" -c "$<"
 
 $(INSTALL_DIR)/%.lib : %.o
-       -$(LIB) -c "$@" "$<";
+       @-$(LIB) -c "$@" "$<";
 
 install : all
 
 clean : clean-intermediate
-       $(Q)-$(RM) *.asm
-       $(Q)-$(RM) $(OBJS) $(LIBS)
-       $(Q)-$(RMDIR) ../build/libdev
+       @-$(RM) *.asm
+       @-$(RM) $(OBJS) $(LIBS)
+       @-$(RMDIR) ../build/libdev
+
+distclean: clean
+       @-$(RM) Makefile
 
 clean-intermediate :
-       $(Q)-$(RM) *.lst *.d *.adb
+       @-$(RM) *.lst *.d *.adb