1 ###########################################################
2 ### Makefile for the GNU PIC Library
4 ### Copyright (C) 2005 by Raphael Neider <rneider AT web.de>
6 ### The GNU PIC Library was originally designed and
8 ### Vangelis Rokas <vrokas@otenet.gr>
10 ### It is currently maintained by
11 ### Raphael Neider <rneider AT web.de>
13 ### This file may be distributed under the terms of the the
14 ### GNU General Public License (GPL). See COPYING for details.
19 top_builddir = @top_builddir@
20 top_srcdir = @top_srcdir@
26 include $(top_pic16builddir)/Makefile.common
28 ifeq (:,$(findstring :,$(LD) $(AS) $(LIB)))
33 @echo "gputils not found -- PIC16 library not built!"
37 SUBDIRS = debug libc libdev libio libm libsdcc startup
42 C_SRC = $(notdir $(wildcard $(srcdir)/*.c))
43 S_SRC = $(notdir $(wildcard $(srcdir)/*.S))
44 OBJS = $(C_SRC:.c=.o) $(S_SRC:.S=.o)
46 .PHONY : all clean distclean clean-intermediate install
53 $(Q)-$(RMDIR) "$(top_pic16builddir)/$(builddir)"
56 $(Q)-$(RM) config.cache config.log config.status Makefile Makefile.common pics.build
57 $(Q)find $(SUBDIRS) -name Makefile -delete
58 $(Q)-[ ! -d bin ] || $(RMDIR) bin
60 clean-intermediate : recurse
62 include $(top_srcdir)/Makefile.rules